Module is.codion.swing.common.ui
Interface SplitPaneBuilder
- All Superinterfaces:
ComponentBuilder<JSplitPane,,SplitPaneBuilder> Supplier<JSplitPane>
A builder for JSplitPane.
-
Method Summary
Modifier and TypeMethodDescriptionbottomComponent(Supplier<? extends JComponent> bottomComponent) bottomComponent(@Nullable JComponent bottomComponent) static SplitPaneBuilderbuilder()continuousLayout(boolean continuousLayout) The look and feel default,SplitPane.continuousLayout, is used if not specified.dividerLocation(double dividerLocation) Sets the divider location as a proportion of the split pane size, once it has a size, sinceJSplitPane.setDividerLocation(double)has no effect before that.dividerLocation(int dividerLocation) dividerSize(int dividerSize) leftComponent(Supplier<? extends JComponent> leftComponent) leftComponent(@Nullable JComponent leftComponent) oneTouchExpandable(boolean oneTouchExpandable) orientation(int orientation) resizeWeight(double resizeWeight) rightComponent(Supplier<? extends JComponent> rightComponent) rightComponent(@Nullable JComponent rightComponent) topComponent(Supplier<? extends JComponent> topComponent) topComponent(@Nullable JComponent topComponent) Methods inherited from interface is.codion.swing.common.ui.component.builder.ComponentBuilder
ancestorListener, background, border, build, build, clientProperty, componentListener, componentOrientation, enabled, enabled, focusable, focusable, focusCycleRoot, focusListener, font, font, foreground, get, hierarchyListener, keyEvent, keyListener, label, label, label, maximumHeight, maximumSize, maximumWidth, minimumHeight, minimumSize, minimumWidth, mouseListener, mouseMotionListener, mouseWheelListener, name, onBuild, onSetVisible, opaque, popupControl, popupControls, popupControls, popupMenu, preferredHeight, preferredSize, preferredWidth, propertyChangeListener, propertyChangeListener, scrollPane, toolTipText, toolTipText, transferFocusOnEnter, transferFocusOnEnter, transferHandler, visible, visible
-
Method Details
-
orientation
- Parameters:
orientation- the orientation- Returns:
- this builder instance
- See Also:
-
oneTouchExpandable
- Parameters:
oneTouchExpandable- one touch expandable- Returns:
- this builder instance
- See Also:
-
leftComponent
- Parameters:
leftComponent- the left component- Returns:
- this builder instance
- See Also:
-
leftComponent
- Parameters:
leftComponent- the left component- Returns:
- this builder instance
- See Also:
-
rightComponent
- Parameters:
rightComponent- the right component- Returns:
- this builder instance
- See Also:
-
rightComponent
- Parameters:
rightComponent- the right component- Returns:
- this builder instance
- See Also:
-
topComponent
- Parameters:
topComponent- the top component- Returns:
- this builder instance
- See Also:
-
topComponent
- Parameters:
topComponent- the top component- Returns:
- this builder instance
- See Also:
-
bottomComponent
- Parameters:
bottomComponent- the bottom component- Returns:
- this builder instance
- See Also:
-
bottomComponent
- Parameters:
bottomComponent- the bottom component- Returns:
- this builder instance
- See Also:
-
resizeWeight
- Parameters:
resizeWeight- the resize weight- Returns:
- this builder instance
- See Also:
-
continuousLayout
The look and feel default,SplitPane.continuousLayout, is used if not specified.- Parameters:
continuousLayout- the value of the continuousLayout- Returns:
- this builder instance
- See Also:
-
dividerSize
- Parameters:
dividerSize- the divider size- Returns:
- this builder instance
- See Also:
-
dividerLocation
- Parameters:
dividerLocation- the divider location- Returns:
- this builder instance
- See Also:
-
dividerLocation
Sets the divider location as a proportion of the split pane size, once it has a size, sinceJSplitPane.setDividerLocation(double)has no effect before that.- Parameters:
dividerLocation- the proportional divider location, between 0 and 1- Returns:
- this builder instance
- Throws:
IllegalArgumentException- in case the location is not between 0 and 1- See Also:
-
builder
- Returns:
- a new
SplitPaneBuilderinstance
-