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
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
enabledDetailStates
(EntityPanel.PanelState... panelStates) Sets the enabled detail panel states, with the first being the initial one.includeControls
(boolean includeControls) initialDetailState
(EntityPanel.PanelState initialState) DefaultEntityPanel.PanelState.EMBEDDED
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.WINDOW
IllegalArgumentException
- in case the given state is not enabled- See Also:
-
enabledDetailStates
Sets the enabled detail panel states, with the first being the initial one. Note thatEntityPanel.PanelState.WINDOW
is 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 nopanelStates
are 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:
controlId
- the control idkeyStroke
- the keyStroke to assign to the given control- Returns:
- this builder instance
-
build
TabbedDetailLayout build()- Returns:
- a new
TabbedDetailLayout
instance based on this builder
-