Module is.codion.swing.common.ui
Interface ButtonPanelBuilder
- All Superinterfaces:
ComponentBuilder<JPanel,,ButtonPanelBuilder> ControlPanelBuilder<JPanel,,ButtonPanelBuilder> Supplier<JPanel>
Builds a JPanel with buttons.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ButtonPanelBuilderbuilder()buttonGap(int buttonGap) Default isLayouts.GAP.buttonGroup(@Nullable ButtonGroup buttonGroup) Note that components added viaControlPanelBuilder.add(javax.swing.JComponent)are not added to the button group.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
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
-
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 true.- Parameters:
fixedButtonSize- true if the button grid sizing should be fixed- Returns:
- this builder instance
-
buttonGroup
Note that components added viaControlPanelBuilder.add(javax.swing.JComponent)are not added to the button group.- Parameters:
buttonGroup- the button group to add the buttons based on the controls to- Returns:
- this builder instance
-
builder
- Returns:
- a new button panel builder
-