Package com.iizix.prop
Class Color4Prop
- java.lang.Object
- com.iizix.prop.GProp<java.lang.Object[]>
- com.iizix.prop.MultiProp<GColor>
- com.iizix.prop.Color4Prop
- All Implemented Interfaces:
EventListener
,IGProp<java.lang.Object[]>
,java.lang.Cloneable
public class Color4Prop extends MultiProp<GColor>
Property used by UI styles that has 4 settings/values for color, such as the border color (top/bottom/left/right).- Author:
- Christopher Mindus
Field Summary
Fields inherited from class com.iizix.prop.GProp
GPDEBUG, PROP_ATTR_STRING_EDITOR_PROP, PROP_ATTR_STRING_ERRORED_NAME, PROP_ATTR_STRING_EXTENDS, PROP_ATTR_STRING_EXTENDS_FINAL, PROP_ATTR_STRING_EXTENDS_PRIVATE, PROP_ATTR_STRING_NULLABLE, PROP_ATTR_STRING_PRIVATE, PROP_ATTR_STRING_PRIVATE_CHANGE_EVENT, PROP_ATTR_STRING_READ_ONLY, PROP_USER_1, PROP_USER_2
Fields inherited from interface com.iizix.prop.IGProp
EQC_ERROR_IGNORE_ALL, EQC_ERROR_IGNORE_REFERENCES, EQC_IGNORE_ARRAY, EQC_IGNORE_VOLATILE_OR_EDITOR, EQC_PRIVATE, EQC_SAVE_FILE, EXT_CONTAINER_EXTENDS, EXT_CONTAINER_EXTENDS_VALID, EXT_EXTENDED, EXT_FINAL, EXT_OVERRIDES, EXT_OVERRIDES_FINAL_ERR, EXT_PRIVATE
Constructor Summary
Constructors Constructor Description Color4Prop()
Creates a new 4-color property without name.Color4Prop(Atom propertyAtom)
Creates a new 4-color property with a name.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
appendPropValueItem(SendTransaction trans, GColor value)
Appends a color to a transaction.GColor
createValue(ReadTransaction trans)
Creates a new color from a transaction.protected GColor
createValue(org.w3c.dom.Element element)
Creates a color from an element.protected void
initializeValueElement(GColor value, org.w3c.dom.Element element)
Saves a color to an element.Methods inherited from class com.iizix.prop.MultiProp
appendPropValue, equalValues, getPropValue, getPropValue0, getPropValueDefault, getRealPropValue, getValueClasses, getValueCount, initializeElement, initializeProp, initializeValue, modifyPropValue, paramValue, setPropValue, setPropValueDefault, setPropValues, setPropValues, setPropValues, setRealPropValue, setup, toNativeValue0, validatePropType
Methods inherited from class com.iizix.prop.GProp
addPropError, addPropListener, clone, convertPropError, dispose, equals, equals, equalsErrors, equalsObj, equalsPropValue, equalsTree, extendsClone, finalize, fine, fine, finer, finer, finest, finest, fromElementString, getAliasName, getAppSessionGyro, getAppWorker, getAtomPath, getAttribute, getChildReferencePropName, getClientSessionGyro, getClientWorker, getConstraints, getEnvironment, getErroredPropItems, getErroredProps, getErrorsProp, getExtendsRootContainer, getFullPropName, getFullPropName, getFullPropNameDebug, getFullPropNameDebug, getListeners, getModuleFolder, getModuleFolder, getParent, getParent, getProjectName, getPropAtom, getPropBaseReference, getPropError, getPropError, getPropErroredName, getPropErrorSeverity, getPropExtendsFlags, getPropFromPath, getPropFromPath, getPropFromReference, getPropFromReference, getPropIndex, getPropName, getPropPath, getPropPath, getPropReferenceTarget, getPropRootPropMgr, getPropTreeErrorSeverity, getPropValue, getPropValue, getPropValueObject, getReferencePropName, getReferences, getRelativePropName, getRootFromName, getRootName, getRootParent, getRootParent, getTreeLock, getVSReference, hasChanged, hasPrivateChangeEventProp, hasPropError, hasPropTreeError, info, info, initializeGElement, initializeGProp, isDisposed, isPropChildOf, isPropClientCreated, isPropCommunicating, isPropCreateRequired, isPropExtended, isPropExtendsFinal, isPropExtendsPrivate, isPropExtendsPrivateInRoot, isPropExtendsPrivateInRoot, isPropFile, isPropFolder, isPropForEditor, isPropNullable, isPropPrivate, isPropPrivateAtCreation, isPropReadOnly, isPropReferenceTreeValid, isPropRoot, isPropUSER, isPropValueTreeLockNeeded, isPropVirtualized, isPropVirtualizing, isPropVolatile, isPropVolatileOrEditorOnly, isProxied, list, list, list, list, list, mapAliasToReference, mapAliasToReference, mapReferenceToAlias, mapReferenceToAlias, mapReferenceToProjectRelative, moveProp, moveProp, moveProp, onEvent, onEventSelf, onPrepare, onPropDispose, onPropInvalidateCache, onPropParentChanged, onPropTreeInitialized, onPropValueSet, onReferenceEvent, onRemoteEvent, onVirtualizationCompleted, onVirtualized, paramString, post, post, removePropError, removePropListener, removePropUSER, renameProp, renameProp2, resetChangedTree, resolveRuntimeReferences, setChanged, setConstraints, setConstraints, setCreateRequiredProp, setParent, setPrivateChangeEventProp, setPrivateCreateRequiredProp, setPropError, setPropErroredName, setPropExtended, setPropExtendsFinal, setPropExtendsPrivate, setPropForEditor, setPropNullable, setPropPrivate, setPropReadOnly, setPropUSER, setPropValue, setPropValue, setPropValue, setPropValueIncognito, setPropVolatile, severe, severe, severe, shouldSerializeToXML, throwIfReadOnly, toElementString, toNativeValue, toString, toString, triggerRemoteEvent, triggerRemoteEvent, validateProp, validatePropValue, verify, verifyHasPropertyItem, virtualize, warning, warning, warning
Constructor Detail
Color4Prop
public Color4Prop()
Creates a new 4-color property without name.
Color4Prop
public Color4Prop(Atom propertyAtom)
Creates a new 4-color property with a name.- Parameters:
propertyAtom
- the property atom.
Method Detail
appendPropValueItem
protected void appendPropValueItem(SendTransaction trans, GColor value)
Appends a color to a transaction.- Specified by:
appendPropValueItem
in classMultiProp<GColor>
- Parameters:
trans
- The transaction.value
- The value to append.
createValue
public GColor createValue(ReadTransaction trans)
Creates a new color from a transaction.- Specified by:
createValue
in classMultiProp<GColor>
initializeValueElement
protected void initializeValueElement(GColor value, org.w3c.dom.Element element)
Saves a color to an element.- Specified by:
initializeValueElement
in classMultiProp<GColor>
- Parameters:
value
- The value to "stream" to the XML element.element
- The XML value element, attributes "index" "null" are "taken".
createValue
protected GColor createValue(org.w3c.dom.Element element) throws java.lang.Exception
Creates a color from an element.- Specified by:
createValue
in classMultiProp<GColor>
- Parameters:
element
- The XML value element, attributes "index" and "null" are "taken".- Throws:
java.lang.Exception
- For errors.