Module is.codion.swing.framework.ui
Package is.codion.swing.framework.ui
Interface TabbedDetailLayout.Builder
- Enclosing class:
TabbedDetailLayout
public static interface TabbedDetailLayout.Builder
Builds a
TabbedDetailLayout.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuild()enabledDetailStates(EntityPanel.PanelState... panelStates) Sets the enabled detail panel states.includeControls(boolean includeControls) initialDetailState(EntityPanel.PanelState initialState) DefaultEntityPanel.PanelState.EMBEDDEDkeyStroke(ControlKey<?> controlKey, KeyStroke keyStroke) splitPaneResizeWeight(double splitPaneResizeWeight) windowType(EntityPanel.WindowType windowType)
-
Method Details
-
initialDetailState
DefaultEntityPanel.PanelState.EMBEDDED- Parameters:
initialState- the initial detail panel state- Returns:
- this builder instance
- Throws:
IllegalArgumentException- in case the given state isEntityPanel.PanelState.WINDOWIllegalArgumentException- in case the given state is not enabled- See Also:
-
enabledDetailStates
Sets the enabled detail panel states. Note thatEntityPanel.PanelState.WINDOWis not supported as the initial state.- Parameters:
panelStates- the enabled detail panel states- Returns:
- this builder instance
- Throws:
IllegalArgumentException- in case the given states do not include the initial stateIllegalArgumentException- in case nopanelStatesare specified
-
windowType
- Parameters:
windowType- the window type to use- Returns:
- this builder instance
-
splitPaneResizeWeight
- Parameters:
splitPaneResizeWeight- the detail panel split pane size weight- Returns:
- this builder instance
-
includeControls
- Parameters:
includeControls- true if detail panel controls should be available- Returns:
- this builder instance
-
keyStroke
- Parameters:
controlKey- the control keykeyStroke- the keyStroke to assign to the given control- Returns:
- this builder instance
-
build
TabbedDetailLayout build()- Returns:
- a new
TabbedDetailLayoutinstance based on this builder
-