Interface Skinnable
- All Known Implementing Classes:
-
Accordion,Button,ButtonBar,ButtonBase,Cell,CheckBox,CheckBoxListCell,CheckBoxTableCell,CheckBoxTreeCell,CheckBoxTreeTableCell,ChoiceBox,ChoiceBoxListCell,ChoiceBoxTableCell,ChoiceBoxTreeCell,ChoiceBoxTreeTableCell,CodeArea,ColorPicker,ComboBox,ComboBoxBase,ComboBoxListCell,ComboBoxTableCell,ComboBoxTreeCell,ComboBoxTreeTableCell,ContextMenu,Control,DateCell,DatePicker,HTMLEditor,Hyperlink,IndexedCell,Label,Labeled,ListCell,ListView,MenuBar,MenuButton,Pagination,PasswordField,PopupControl,ProgressBar,ProgressBarTableCell,ProgressBarTreeTableCell,ProgressIndicator,RadioButton,RichTextArea,ScrollBar,ScrollPane,Separator,Slider,Spinner,SplitMenuButton,SplitPane,TableCell,TableRow,TableView,TabPane,TextArea,TextField,TextFieldListCell,TextFieldTableCell,TextFieldTreeCell,TextFieldTreeTableCell,TextInputControl,TitledPane,ToggleButton,ToolBar,Tooltip,TreeCell,TreeTableCell,TreeTableRow,TreeTableView,TreeView
public interface Skinnable
The Skinnable interface is implemented by the Control class, and therefore is implemented by all Control implementations.
- Since:
- JavaFX 2.0
Property Summary
| Type | Property | Description |
|---|---|---|
ObjectProperty |
skin |
The Skin responsible for rendering this Skinnable. |
Method Summary
| Modifier and Type | Method | Description |
|---|---|---|
Skin |
getSkin() |
Gets the value of the skin property. |
void |
setSkin |
Sets the value of the skin property. |
ObjectProperty |
skinProperty() |
The Skin responsible for rendering this Skinnable. |
Property Details
skin
ObjectProperty<Skin<?>> skinProperty
Skin responsible for rendering this Skinnable. From the perspective of the Skinnable, the Skin is a black box. It listens and responds to changes in state of its Skinnable. Some implementations of Skinnable define a one-to-one relationship between Skinnable and its Skin. Every Skin maintains a back reference to the Skinnable. When required, this relationship is enforced when the Skin is set, throwing an IllegalArgumentException if the return value of Skin.getSkinnable() is not the same as this Skinnable.
A skin may be null.
- See Also:
Method Details
skinProperty
ObjectProperty<Skin<?>> skinProperty()
Skin responsible for rendering this Skinnable. From the perspective of the Skinnable, the Skin is a black box. It listens and responds to changes in state of its Skinnable. Some implementations of Skinnable define a one-to-one relationship between Skinnable and its Skin. Every Skin maintains a back reference to the Skinnable. When required, this relationship is enforced when the Skin is set, throwing an IllegalArgumentException if the return value of Skin.getSkinnable() is not the same as this Skinnable.
A skin may be null.
- Returns:
- the skin property for this Skinnable
- See Also:
setSkin
void setSkin(Skin<?> value)
skin property.- Property description:
- The
Skinresponsible for rendering thisSkinnable. From the perspective of theSkinnable, theSkinis a black box. It listens and responds to changes in state of itsSkinnable.Some implementations of
Skinnabledefine a one-to-one relationship betweenSkinnableand itsSkin. EverySkinmaintains a back reference to theSkinnable. When required, this relationship is enforced when theSkinis set, throwing anIllegalArgumentExceptionif the return value ofSkin.getSkinnable()is not the same as thisSkinnable.A skin may be null.
- Parameters:
-
value- the value for theskinproperty - See Also:
getSkin
Skin<?> getSkin()
skin property.- Property description:
- The
Skinresponsible for rendering thisSkinnable. From the perspective of theSkinnable, theSkinis a black box. It listens and responds to changes in state of itsSkinnable.Some implementations of
Skinnabledefine a one-to-one relationship betweenSkinnableand itsSkin. EverySkinmaintains a back reference to theSkinnable. When required, this relationship is enforced when theSkinis set, throwing anIllegalArgumentExceptionif the return value ofSkin.getSkinnable()is not the same as thisSkinnable.A skin may be null.
- Returns:
- the value of the
skinproperty - See Also:
© 2008, 2025, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from JavaFX API Documentation.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Java, JavaFX and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.