Module is.codion.swing.common.ui
Interface ToolBarBuilder
- All Superinterfaces:
ComponentBuilder<JToolBar,,ToolBarBuilder> ControlPanelBuilder<JToolBar,,ToolBarBuilder> Supplier<JToolBar>
A builder for a
JToolBar.-
Method Summary
Modifier and TypeMethodDescriptionborderPainted(boolean borderPainted) The look and feel default is used if not specified.static ToolBarBuilderbuilder()floatable(boolean floatable) The look and feel default is used if not specified.glue()Adds glue, horizontal or vertical depending on the toolbar orientation, for example to align the subsequent items to the right of a horizontal toolbar.rollover(boolean rollover) The look and feel default,ToolBar.isRollover, is used if not specified.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, visibleMethods inherited from interface is.codion.swing.common.ui.component.button.ControlPanelBuilder
action, add, add, buttons, buttonsFocusable, checkBoxes, control, control, controls, controls, includeButtonText, orientation, preferredButtonSize, radioButtons, separator, toggleButtons, toggleButtonType
-
Method Details
-
floatable
The look and feel default is used if not specified.- Parameters:
floatable- true if the toolbar should be floatable- Returns:
- this builder instance
- See Also:
-
rollover
The look and feel default,ToolBar.isRollover, is used if not specified.- Parameters:
rollover- true if rollover should be enabled- Returns:
- this builder instance
- See Also:
-
borderPainted
The look and feel default is used if not specified.- Parameters:
borderPainted- true if the border should be painted- Returns:
- this builder instance
- See Also:
-
glue
ToolBarBuilder glue()Adds glue, horizontal or vertical depending on the toolbar orientation, for example to align the subsequent items to the right of a horizontal toolbar.- Returns:
- this builder instance
- See Also:
-
builder
- Returns:
- a new
ToolBarBuilder
-