Class AbstractStylable<D extends DataSet>

  • Type Parameters:
    D - java generics handling of DataSet for derived classes (needed for fluent design)
    All Implemented Interfaces:
    DataSet, EventSource
    Direct Known Subclasses:
    AbstractDataSet

    public abstract class AbstractStylable<D extends DataSet>
    extends java.lang.Object
    implements DataSet
    Class to define CSS-based style features N.B. needed for DataSet and rendering styling
    Author:
    rstein
    • Method Detail

      • getThis

        protected D getThis()
      • getStyle

        public java.lang.String getStyle()
        A string representation of the CSS style associated with this specific Node. This is analogous to the "style" attribute of an HTML element. Note that, like the HTML style attribute, this variable contains style properties and values and not the selector portion of a style rule.
        Specified by:
        getStyle in interface DataSet
        Returns:
        user-specific data set style description (ie. may be set by user)
      • setStyle

        public D setStyle​(java.lang.String style)
        Description copied from interface: DataSet
        A string representation of the CSS style associated with this specific DataSet. This is analogous to the "style" attribute of an HTML element. Note that, like the HTML style attribute, this variable contains style properties and values and not the selector portion of a style rule.
        Specified by:
        setStyle in interface DataSet
        Parameters:
        style - the new user-specific style
        Returns:
        itself (fluent interface)