Module is.codion.swing.common.ui
Interface ControlPanelBuilder<C extends JComponent,B extends ControlPanelBuilder<C,B>>
- All Superinterfaces:
ComponentBuilder<Void,C, B>
- All Known Subinterfaces:
ButtonPanelBuilder,ToolBarBuilder
public interface ControlPanelBuilder<C extends JComponent,B extends ControlPanelBuilder<C,B>>
extends ComponentBuilder<Void,C,B>
Builds panels with controls.
-
Field Summary
Fields inherited from interface is.codion.swing.common.ui.component.builder.ComponentBuilder
TRANSFER_FOCUS_ON_ENTER -
Method Summary
Modifier and TypeMethodDescriptionbuttonBuilder(ButtonBuilder<?, ?, ?> buttonBuilder) Adds all actions from the givenControlsinstanceorientation(int orientation) Adds a separatortoggleButtonBuilder(ToggleButtonBuilder<?, ?> toggleButtonBuilder) OverridestoggleButtonType(ToggleButtonType).toggleButtonType(ToggleButtonType toggleButtonType) Specifies how toggle controls are presented on this control panel.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
-
Method Details
-
orientation
- Parameters:
orientation- the panel orientation, defaultSwingConstants.HORIZONTAL- Returns:
- this builder instance
-
action
- Parameters:
action- the action to add- Returns:
- this builder instance
-
controls
Adds all actions from the givenControlsinstance- Parameters:
controls- the Controls instance- Returns:
- this builder instance
-
separator
B separator()Adds a separator- Returns:
- this builder instance
-
toggleButtonType
Specifies how toggle controls are presented on this control panel. The default isToggleButtonType.BUTTON.- Parameters:
toggleButtonType- the toggle button type- Returns:
- this builder instance
-
buttonBuilder
- Parameters:
buttonBuilder- the button builder to use when creating buttons- Returns:
- this builder instance
-
toggleButtonBuilder
OverridestoggleButtonType(ToggleButtonType).- Parameters:
toggleButtonBuilder- the toggle button builder to use when creating toggle buttons- Returns:
- this builder instance
-