Module is.codion.swing.common.ui
Interface ToggleButtonBuilder<C extends JToggleButton,B extends ToggleButtonBuilder<C,B>>
- 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
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
(ToggleControl toggleControl) toggleControl
(ToggleControl.Builder toggleControlBuilder) 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, 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
-
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
-