Module is.codion.swing.common.ui
Interface ToggleButtonBuilder<C extends JToggleButton,B extends ToggleButtonBuilder<C,B>>
- Type Parameters:
C
- the component typeB
- the builder type
- All Superinterfaces:
ButtonBuilder<Boolean,
,C, B> ComponentBuilder<Boolean,
C, B>
- All Known Subinterfaces:
CheckBoxBuilder
,RadioButtonBuilder
public interface ToggleButtonBuilder<C extends JToggleButton,B extends ToggleButtonBuilder<C,B>>
extends ButtonBuilder<Boolean,C,B>
Builds a JToggleButton.
-
Field Summary
Fields inherited from interface is.codion.swing.common.ui.component.builder.ComponentBuilder
COMPONENT_VALUE, TRANSFER_FOCUS_ON_ENTER
-
Method Summary
Modifier and TypeMethodDescriptionstatic <C extends JToggleButton,
B extends ToggleButtonBuilder<C, B>>
ToggleButtonBuilder<C,B> builder()
static <C extends JToggleButton,
B extends ToggleButtonBuilder<C, B>>
ToggleButtonBuilder<C,B> toggleControl
(Control.Builder<ToggleControl, ?> toggleControlBuilder) toggleControl
(ToggleControl toggleControl) Methods inherited from interface is.codion.swing.common.ui.component.button.ButtonBuilder
action, actionListener, borderPainted, buttonGroup, contentAreaFilled, control, control, disabledIcon, disabledSelectedIcon, focusPainted, horizontalAlignment, horizontalTextPosition, icon, iconTextGap, includeText, margin, mnemonic, multiClickThreshold, pressedIcon, rolloverEnabled, rolloverIcon, rolloverSelectedIcon, selected, selectedIcon, text, verticalAlignment, verticalTextPosition
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, mouseListener, mouseMotionListener, mouseWheelListener, onBuild, onBuildValue, onSetVisible, opaque, popupMenu, popupMenuControl, popupMenuControls, preferredHeight, preferredSize, preferredWidth, propertyChangeListener, propertyChangeListener, scrollPane, toolTipText, transferFocusOnEnter, transferHandler, validator, value, visible
-
Method Details
-
toggleControl
- Parameters:
toggleControl
- the toggle control to base this toggle button on- Returns:
- this builder instance
-
toggleControl
- Parameters:
toggleControlBuilder
- the builder for the toggle control to base this toggle button on- Returns:
- this builder instance
-
builder
static <C extends JToggleButton,B extends ToggleButtonBuilder<C, ToggleButtonBuilder<C,B>> B> builder()- Type Parameters:
C
- the component typeB
- the builder type- Returns:
- a builder for a component
-
builder
static <C extends JToggleButton,B extends ToggleButtonBuilder<C, ToggleButtonBuilder<C,B>> B> builder(Value<Boolean> linkedValue) - Type Parameters:
C
- the component typeB
- the builder type- Parameters:
linkedValue
- the value to link to the button- Returns:
- a builder for a component
-