Class ElementStylePropertyMap

  • All Implemented Interfaces:
    Serializable

    public class ElementStylePropertyMap
    extends AbstractPropertyMap
    Map for element style values.

    For internal use only. May be renamed or removed in a future release.

    Since:
    1.0
    Author:
    Vaadin Ltd
    See Also:
    Serialized Form
    • Constructor Detail

      • ElementStylePropertyMap

        public ElementStylePropertyMap​(StateNode node)
        Creates a new element style map for the given node.
        Parameters:
        node - the node that the map belongs to
    • Method Detail

      • setProperty

        public void setProperty​(String name,
                                Serializable value,
                                boolean emitChange)
        Description copied from class: AbstractPropertyMap
        Sets a property to the given value.
        Overrides:
        setProperty in class AbstractPropertyMap
        Parameters:
        name - the property name
        value - the value, must be a string, a boolean, a double or null
        emitChange - true to create a change event for the client side
      • getStyle

        public Style getStyle()
        Returns a style instance for managing element inline styles.
        Returns:
        a Style instance connected to this map