Module is.codion.swing.framework.ui
Package is.codion.swing.framework.ui
Class EntityPanel.DetailPanels
java.lang.Object
is.codion.swing.framework.ui.EntityPanel.DetailPanels
- Enclosing class:
EntityPanel
Manages the detail panels for a
EntityPanel
-
Method Summary
Modifier and TypeMethodDescriptionactive()
Returns the detail panels which models have an active link to this panels model.void
add
(EntityPanel... detailPanels) Adds the given detail panels and sets this panel as their parent paneladded()
get()
Returns all detail panels.get
(EntityType entityType) Returns the first detail panel found based on the givenentityType
-
Method Details
-
add
Adds the given detail panels and sets this panel as their parent panel- Parameters:
detailPanels
- the detail panels- Throws:
IllegalStateException
- if the panel has already been initializedIllegalArgumentException
- if this panel already contains a given detail panel
-
get
Returns all detail panels.- Returns:
- the detail panels
-
get
Returns the first detail panel found based on the givenentityType
- Parameters:
entityType
- the entityType of the detail panel to retrieve- Returns:
- the detail panel of the given type
- Throws:
IllegalArgumentException
- in case a panel based on the given entityType was not found
-
active
Returns the detail panels which models have an active link to this panels model.- Returns:
- the currently linked detail EntityPanels, if any
- See Also:
-
added
- Returns:
- an
Observer
notified when a detail panel is added to this panel - See Also:
-