public class ToggleButtonStyler extends Styler<javafx.scene.control.ToggleButton>
sizeVariant
Modifier and Type | Method and Description |
---|---|
void |
check()
The check method, which can be implemented in Styler subclasses to assure that no
incompatible Styles can be combined.
|
static ToggleButtonStyler |
create()
Creates a new Instance of ToggleButtonStyler.
|
java.util.List<StyleDefinition> |
getAll()
Retrieves the list with all StyleDefinitions added to the Styler.
|
ToggleButtonStyler |
setIcon(MacOSDefaultIcons icon)
Adds an Icon to the ToggleButton
|
ToggleButtonStyler |
setSizeVariant(ControlSizeVariant sizeVariant)
Adds a ControlSizeVariant to the Control.
|
ToggleButtonStyler |
setType(ButtonType type)
Adds a ButtonType to the ToggleButton
|
void |
style(javafx.scene.control.ToggleButton button)
Adds all StyleDfinitions, which were defined, to the Controls' style class definitions.
|
public static ToggleButtonStyler create()
public ToggleButtonStyler setType(ButtonType type)
type
- The ButtonType for the ToggleButton.public ToggleButtonStyler setSizeVariant(ControlSizeVariant sizeVariant)
Styler
setSizeVariant
in class Styler<javafx.scene.control.ToggleButton>
sizeVariant
- The ControlSizeVariant for the Control.public ToggleButtonStyler setIcon(MacOSDefaultIcons icon)
icon
- The Icon of type MacOSDefaultIcons.public java.util.List<StyleDefinition> getAll()
Styler
public void check()
Styler
public void style(javafx.scene.control.ToggleButton button)
Styler
Copyright © 2013. All Rights Reserved.