Interface StyleableBean

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
    Type
    Property
    Description
    javafx.beans.property.ReadOnlyProperty<String>
    Gets a read-only property of the id.
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable String
    The id selector of this StyleableBean.
    org.jhotdraw8.icollection.readonly.ReadOnlySet<String>
    The pseudo class selector of this StyleableBean.
    @Nullable String
    A string representation of the CSS style associated with this specific StyleableBean.
    @Nullable StyleableBean
    Return the parent of this StyleableBean, or null if there is no parent.
    org.jhotdraw8.icollection.readonly.ReadOnlySet<String>
    The style class selector of this StyleableBean.
    The type selector of this StyleableBean.
    javafx.beans.property.ReadOnlyProperty<String>
    Gets a read-only property of the id.
  • Property Details

    • id

      javafx.beans.property.ReadOnlyProperty<String> idProperty
      Gets a read-only property of the id.
      See Also:
  • Method Details

    • getTypeSelector

      String getTypeSelector()
      The type selector of this StyleableBean.

      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 this StyleableBean.

      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 this StyleableBean.

      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 specific StyleableBean.

      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 this StyleableBean, 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 this StyleableBean.
      Returns:
      the pseudo-class states