Class Unit4Prop

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

    public class Unit4Prop
    extends MultiProp<GUnit>
    Property used by UI styles that has 4 settings/values for a unit, such as the border size (top/bottom/left/right).
    Christopher Mindus
    • Constructor Detail

      • Unit4Prop

        public Unit4Prop()
        Creates a new 4-unit property without name.
      • Unit4Prop

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

      • initializeValueElement

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

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