Class Int4Prop

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

    public class Int4Prop
    extends MultiProp<java.lang.Integer>
    Property used by UI styles that has 4 settings/values for an integer, such as the border style (top/bottom/left/right).
    Christopher Mindus
    • Constructor Detail

      • Int4Prop

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

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

      • appendPropValueItem

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

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

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

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