- All Known Subinterfaces:
StyleablePropertyBean
- All Known Implementing Classes:
AbstractStyleablePropertyBean
public interface StyleableBean
Styleable comprises the minimal interface required for a component (bean)
to be styled by CSS.
-
Property Summary
Properties -
Method Summary
Modifier and TypeMethodDescription@Nullable StringgetId()The id selector of thisStyleableBean.org.jhotdraw8.icollection.readonly.ReadOnlySet<String> The pseudo class selector of thisStyleableBean.@Nullable StringgetStyle()A string representation of the CSS style associated with this specificStyleableBean.@Nullable StyleableBeanReturn the parent of thisStyleableBean, or null if there is no parent.org.jhotdraw8.icollection.readonly.ReadOnlySet<String> The style class selector of thisStyleableBean.The type selector of thisStyleableBean.javafx.beans.property.ReadOnlyProperty<String> Gets a read-only property of the id.
-
Property Details
-
id
javafx.beans.property.ReadOnlyProperty<String> idPropertyGets a read-only property of the id.- See Also:
-
-
Method Details
-
getTypeSelector
String getTypeSelector()The type selector of thisStyleableBean.This is analogous to an "element" in HTML. (CSS Type Selector).
- Returns:
- the type of this
StyleableBean
-
getId
@Nullable String getId()The id selector of thisStyleableBean.This is analogous to the "id" attribute on an HTML element (CSS ID Specification).
- Returns:
- the id of this
StyleableBean
-
idProperty
javafx.beans.property.ReadOnlyProperty<String> idProperty()Gets a read-only property of the id.- Returns:
- a read-only view on the id property
- See Also:
-
getStyleClasses
org.jhotdraw8.icollection.readonly.ReadOnlySet<String> getStyleClasses()The style class selector of thisStyleableBean.This is analogous to the "class" attribute on an HTML element (CSS3 class).
- Returns:
- the classes of this
StyleableBean
-
getStyle
@Nullable String getStyle()A string representation of the CSS style associated with this specificStyleableBean.This is analogous to the "style" attribute of an HTML element.
- Returns:
- the value of the style attribute
-
getStyleableParent
@Nullable StyleableBean getStyleableParent()Return the parent of thisStyleableBean, or null if there is no parent.- Returns:
- the parent of this
StyleableBean, or null if there is no parent
-
getPseudoClassStates
org.jhotdraw8.icollection.readonly.ReadOnlySet<String> getPseudoClassStates()The pseudo class selector of thisStyleableBean.- Returns:
- the pseudo-class states
-