public interface Skinnable
StyleManager,
Skin,
StyleId,
StyleData| Modifier and Type | Method and Description |
|---|---|
void |
addStyleListener(StyleListener listener)
Adds style change listener.
|
Skin |
getSkin()
Returns skin currently applied to this component.
|
void |
removeStyleListener(StyleListener listener)
Removes style change listener.
|
Skin |
restoreSkin()
Restores global skin for this component and all of its children linked via
StyleId. |
Skin |
setSkin(Skin skin)
Applies specified skin to the specified component and all of its children linked via
StyleId. |
Skin |
setSkin(Skin skin,
boolean recursively)
Applies specified skin to the specified component and all of its children linked via
StyleId. |
Skin getSkin()
Skin setSkin(Skin skin)
StyleId.
Actual linked children information is stored within StyleData data objects.
Custom skin provided using this method will not be replaced if application skin changes.skin - skin to be appliedSkin setSkin(Skin skin, boolean recursively)
StyleId.
Actual linked children information is stored within StyleData data objects.
Custom skin provided using this method will not be replaced if application skin changes.skin - skin to be appliedrecursively - whether or not should apply skin to child componentsSkin restoreSkin()
StyleId.
Actual linked children information is stored within StyleData data objects.
Restoring component skin will also include it back into the skin update cycle in case global skin will be changed.void addStyleListener(StyleListener listener)
listener - style change listener to addvoid removeStyleListener(StyleListener listener)
listener - style change listener to remove