Module is.codion.swing.framework.ui
Package is.codion.swing.framework.ui
Interface EntityPanel.DetailController
- Enclosing class:
EntityPanel
public static interface EntityPanel.DetailController
Controls the detail panels for a EntityPanel instance.
Provides a way to change the
EntityPanel.PanelState and to
respond to detail panel activation.-
Method Summary
Modifier and TypeMethodDescriptiondefault voidactivate(EntityPanel detailPanel) Called when the detail panel is activated.default voiddisplay(EntityPanel detailPanel) Called when the given detail panel should be displayed, responsible for making sure it becomes visible.default Value<EntityPanel.PanelState> panelState(EntityPanel detailPanel) Note that the detail panel state may be shared between detail panels, as they may be displayed in a shared window.
-
Method Details
-
panelState
Note that the detail panel state may be shared between detail panels, as they may be displayed in a shared window.- Parameters:
detailPanel- the detail panel- Returns:
- the
Valuecontrolling the state of the given detail panel
-
display
Called when the given detail panel should be displayed, responsible for making sure it becomes visible.- Parameters:
detailPanel- the detail panel to display
-
activate
Called when the detail panel is activated.- Parameters:
detailPanel- the detail panel to activate
-