Module is.codion.swing.common.ui
Interface ButtonPanelBuilder
- All Superinterfaces:
ComponentBuilder<Void,
,JPanel, ButtonPanelBuilder> ControlPanelBuilder<JPanel,
ButtonPanelBuilder>
Builds a JPanel with buttons.
-
Field Summary
Fields inherited from interface is.codion.swing.common.ui.component.builder.ComponentBuilder
TRANSFER_FOCUS_ON_ENTER
-
Method Summary
Modifier and TypeMethodDescriptionstatic ButtonPanelBuilder
builder()
static ButtonPanelBuilder
static ButtonPanelBuilder
builder
(Controls.Builder controlsBuilder) static ButtonPanelBuilder
buttonGap
(int buttonGap) Default isLayouts.GAP
.buttonsFocusable
(boolean buttonsFocusable) preferredButtonSize
(Dimension preferredButtonSize) Methods inherited from interface is.codion.swing.common.ui.component.builder.ComponentBuilder
background, border, build, build, buildValue, clear, clientProperty, componentListener, componentOrientation, enabled, enabled, focusable, focusListener, font, foreground, initialValue, keyEvent, keyListener, label, linkedValue, linkedValue, maximumHeight, maximumSize, maximumWidth, minimumHeight, minimumSize, minimumWidth, mouseListener, mouseMotionListener, mouseWheelListener, onBuild, onSetVisible, opaque, popupMenu, popupMenuControl, popupMenuControls, preferredHeight, preferredSize, preferredWidth, propertyChangeListener, propertyChangeListener, scrollPane, toolTipText, transferFocusOnEnter, transferHandler, validator, visible
Methods inherited from interface is.codion.swing.common.ui.component.button.ControlPanelBuilder
action, buttonBuilder, controls, orientation, separator, toggleButtonBuilder, toggleButtonType
-
Method Details
-
buttonsFocusable
Overridden byControlPanelBuilder.buttonBuilder(ButtonBuilder)
andControlPanelBuilder.toggleButtonBuilder(ToggleButtonBuilder)
.- Parameters:
buttonsFocusable
- whether the buttons should be focusable, default isfalse
- Returns:
- this builder instance
-
preferredButtonSize
Overridden byControlPanelBuilder.buttonBuilder(ButtonBuilder)
andControlPanelBuilder.toggleButtonBuilder(ToggleButtonBuilder)
.- Parameters:
preferredButtonSize
- the preferred button size- Returns:
- this builder instance
-
buttonGap
Default isLayouts.GAP
.- Parameters:
buttonGap
- the gap between buttons in pixels- Returns:
- this builder instance
-
builder
- Returns:
- a new button panel builder
-
builder
- Parameters:
actions
- the actions- Returns:
- a new button panel builder
-
builder
- Parameters:
controls
- the controls- Returns:
- a new button panel builder
-
builder
- Parameters:
controlsBuilder
- the controls builder- Returns:
- a new button panel builder
-