T
- T of type Controlpublic class Styler<T extends javafx.scene.control.Control>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected ControlSizeVariant |
sizeVariant
The SizeVariant for the Control.
|
Constructor and Description |
---|
Styler() |
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.
|
protected java.util.List<StyleDefinition> |
getAll()
Retrieves the list with all StyleDefinitions added to the Styler.
|
Styler<T> |
setSizeVariant(ControlSizeVariant sizeVariant)
Adds a ControlSizeVariant to the Control.
|
void |
style(T control)
Adds all StyleDfinitions, which were defined, to the Controls' style class definitions.
|
protected ControlSizeVariant sizeVariant
public void style(T control)
control
- The Control to be styled.public Styler<T> setSizeVariant(ControlSizeVariant sizeVariant)
sizeVariant
- The ControlSizeVariant for the Control.protected java.util.List<StyleDefinition> getAll()
public void check()
Copyright © 2013. All Rights Reserved.