Module is.codion.swing.common.ui
Interface ControlPanelBuilder<C extends JComponent,B extends ControlPanelBuilder<C,B>>
- All Superinterfaces:
ComponentBuilder<C,,B> Supplier<C>
- All Known Subinterfaces:
ButtonPanelBuilder,ToolBarBuilder
public interface ControlPanelBuilder<C extends JComponent,B extends ControlPanelBuilder<C,B>>
extends ComponentBuilder<C,B>
Builds panels with controls.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceControlPanelBuilder.ControlsStep<C extends JComponent,B extends ControlPanelBuilder<C, B>> Provides aControlPanelBuilder -
Method Summary
Modifier and TypeMethodDescriptionbutton(Consumer<ButtonBuilder<?, ?, ?>> builder) Provides a way to configure theButtonBuilderused by thisControlPanelBuilder.buttonsFocusable(boolean buttonsFocusable) checkBox(Consumer<CheckBoxBuilder> builder) Provides a way to configure theCheckBoxBuilderused by thisControlPanelBuilder.includeButtonText(boolean includeButtonText) orientation(int orientation) preferredButtonSize(@Nullable Dimension preferredButtonSize) radioButton(Consumer<RadioButtonBuilder> builder) Provides a way to configure theRadioButtonBuilderused by thisControlPanelBuilder.toggleButton(Consumer<ToggleButtonBuilder<?, ?>> builder) Provides a way to configure theToggleButtonBuilderused by thisControlPanelBuilder.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, clientProperty, componentListener, componentOrientation, enabled, enabled, focusable, focusable, focusCycleRoot, focusListener, font, font, foreground, get, keyEvent, keyListener, label, label, maximumHeight, maximumSize, maximumWidth, minimumHeight, minimumSize, minimumWidth, mouseListener, mouseMotionListener, mouseWheelListener, name, onBuild, onSetVisible, opaque, popupMenu, popupMenuControl, popupMenuControls, preferredHeight, preferredSize, preferredWidth, propertyChangeListener, propertyChangeListener, scrollPane, toolTipText, toolTipText, transferFocusOnEnter, transferFocusOnEnter, transferHandler, visible, visible
-
Method Details
-
orientation
- Parameters:
orientation- the panel orientation, defaultSwingConstants.HORIZONTAL- Returns:
- this builder instance
-
includeButtonText
- Parameters:
includeButtonText- true if buttons should include text- Returns:
- this builder instance
-
preferredButtonSize
- Parameters:
preferredButtonSize- the preferred button size- Returns:
- this builder instance
-
buttonsFocusable
- Parameters:
buttonsFocusable- whether the buttons should be focusable, default istrue- 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
-
button
Provides a way to configure theButtonBuilderused by thisControlPanelBuilder.- Parameters:
builder- provides the button builder used to create buttons- Returns:
- this builder instance
-
toggleButton
Provides a way to configure theToggleButtonBuilderused by thisControlPanelBuilder.- Parameters:
builder- provides the toggle button builder used to create toggle buttons- Returns:
- this builder instance
-
checkBox
Provides a way to configure theCheckBoxBuilderused by thisControlPanelBuilder.- Parameters:
builder- provides the toggle button builder used to create check boxes- Returns:
- this builder instance
-
radioButton
Provides a way to configure theRadioButtonBuilderused by thisControlPanelBuilder.- Parameters:
builder- provides the toggle button builder used to create radio buttons- Returns:
- this builder instance
-