com.vaadin.flow.internal.nodefeature.

Class ElementStylePropertyMap

    • 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