Class String4Prop

  • All Implemented Interfaces:
    EventListener, IGProp<java.lang.Object[]>, java.lang.Cloneable

    public class String4Prop
    extends MultiProp<java.lang.String>
    Property used by UI styles that has 4 settings/values for a String value that can be a combination of single unit or multiple, such as the border radius (corners) where the value in pixels is not used for calculations, thus only for HTML, and can therefore be stored as a pure String.
    Christopher Mindus
    • Constructor Detail

      • String4Prop

        public String4Prop()
        Creates a new 4-string property without name.
      • String4Prop

        public String4Prop​(Atom propertyAtom)
        Creates a new 4-string property with a name.
        propertyAtom - the property atom.
    • Method Detail

      • appendPropValueItem

        protected void appendPropValueItem​(SendTransaction trans,
                                           java.lang.String value)
        Appends a unit to a transaction.
        Specified by:
        appendPropValueItem in class MultiProp<java.lang.String>
        trans - The transaction.
        value - The value to append.
      • createValue

        public java.lang.String createValue​(ReadTransaction trans)
        Creates a new unit from a transaction.
        Specified by:
        createValue in class MultiProp<java.lang.String>
      • initializeValueElement

        protected void initializeValueElement​(java.lang.String value,
                                              org.w3c.dom.Element element)
        Saves a unit to an element.
        Specified by:
        initializeValueElement in class MultiProp<java.lang.String>
        value - The value to "stream" to the XML element.
        element - The XML value element, attributes "index" "null" are "taken".
      • createValue

        protected java.lang.String createValue​(org.w3c.dom.Element element)
                                        throws java.lang.Exception
        Creates a unit from an element.
        Specified by:
        createValue in class MultiProp<java.lang.String>
        element - The XML value element, attributes "index" and "null" are "taken".
        java.lang.Exception - For errors.