java.lang.Object
is.codion.swing.framework.ui.EntityPanel.Settings
- Enclosing class:
- EntityPanel
Contains configuration settings for a
EntityPanel
which must be set before the panel is initialized.-
Method Summary
Modifier and TypeMethodDescriptioncontrolComponentConstraints
(String controlComponentConstraints) Sets the layout constraints to use for the control panelincludeControls
(boolean includeControls) includeToggleEditPanelControl
(boolean includeToggleEditPanelControl) keyStroke
(EntityPanel.KeyboardShortcut shortcut) toolbarControls
(boolean toolbarControls) useKeyboardNavigation
(boolean useKeyboardNavigation)
-
Method Details
-
toolbarControls
- Parameters:
toolbarControls
- true if the edit controls should be on a toolbar instead of a button panel- Returns:
- this Settings instance
- Throws:
IllegalStateException
- if the panel has been initialized- See Also:
-
controlComponentConstraints
Sets the layout constraints to use for the control panelThe default layout is as follows (BorderLayout.WEST): __________________________________ | edit panel |control| | (EntityEditPanel) | panel | } editControlPanel |________________________|_______| With (BorderLayout.SOUTH): __________________________ | edit | | panel | |________________________| } editControlPanel | control panel | |________________________| etc.
- Parameters:
controlComponentConstraints
- the controls component layout constraints (BorderLayout constraints)- Returns:
- this Settings instance
- Throws:
IllegalStateException
- if the panel has been initializedIllegalArgumentException
- in case the given constraint is not one of BorderLayout.SOUTH, NORTH, EAST or WEST
-
includeToggleEditPanelControl
- Parameters:
includeToggleEditPanelControl
- true if a control for toggling the edit panel should be included- Returns:
- this Settings instance
- Throws:
IllegalStateException
- if the panel has been initialized
-
includeControls
- Parameters:
includeControls
- true if the edit an table panel controls should be included- Returns:
- this Settings instance
- Throws:
IllegalStateException
- if the panel has been initialized
-
keyStroke
- Parameters:
shortcut
- the keyboard shortcut key- Returns:
- the Value controlling the keyStroke for the given keyboard shortcut key
-