Module is.codion.swing.common.ui
Interface ButtonPanelBuilder
- All Superinterfaces:
ComponentBuilder<Void,
,JPanel, ButtonPanelBuilder> ControlPanelBuilder<JPanel,
ButtonPanelBuilder>
Builds a JPanel with buttons.
-
Nested Class Summary
Nested classes/interfaces inherited from interface is.codion.swing.common.ui.component.button.ControlPanelBuilder
ControlPanelBuilder.ControlsStep<C extends JComponent,
B extends ControlPanelBuilder<C, B>> -
Field Summary
Fields inherited from interface is.codion.swing.common.ui.component.builder.ComponentBuilder
COMPONENT_VALUE
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
buttonGap
(int buttonGap) Default isLayouts.GAP
.buttonGroup
(@Nullable ButtonGroup buttonGroup) fixedButtonSize
(boolean fixedButtonSize) Specifies whether the button grid sizing should be fixed according to the largest button or flexible.Methods inherited from interface is.codion.swing.common.ui.component.builder.ComponentBuilder
background, border, build, build, buildValue, buildValue, clientProperty, componentListener, componentOrientation, consumer, enabled, enabled, focusable, focusCycleRoot, focusListener, font, foreground, keyEvent, keyListener, label, link, link, listener, maximumHeight, maximumSize, maximumWidth, minimumHeight, minimumSize, minimumWidth, modifiedIndicator, modifiedIndicatorFactory, mouseListener, mouseMotionListener, mouseWheelListener, name, onBuild, onBuildValue, onSetVisible, opaque, popupMenu, popupMenuControl, popupMenuControls, preferredHeight, preferredSize, preferredWidth, propertyChangeListener, propertyChangeListener, scrollPane, toolTipText, toolTipText, transferFocusOnEnter, transferFocusOnEnter, transferHandler, validator, validIndicator, validIndicator, validIndicatorFactory, value, visible
Methods inherited from interface is.codion.swing.common.ui.component.button.ControlPanelBuilder
button, buttonsFocusable, checkBox, includeButtonText, orientation, preferredButtonSize, radioButton, toggleButton, toggleButtonType
-
Method Details
-
buttonGap
Default isLayouts.GAP
.- Parameters:
buttonGap
- the gap between buttons in pixels- Returns:
- this builder instance
-
fixedButtonSize
Specifies whether the button grid sizing should be fixed according to the largest button or flexible. Default false.- Parameters:
fixedButtonSize
- true if the button grid sizing should be fixed- Returns:
- this builder instance
-
buttonGroup
- Parameters:
buttonGroup
- the button group to add all buttons to- Returns:
- this builder instance
-
builder
- Returns:
- a new button panel builder
-