Class ColorReference
- All Implemented Interfaces:
EventListener, IGProp<ReferenceString>, IPropReference, IReferencingGProp, Cloneable
The reference to a
PaletteColor: the value of one scheme of a palette color that follows another palette color instead of holding a literal.Read-only on the server - palette values are set only in the Designer - so it takes the shape of the VirtualSpace references and extends FixedVirtualizedAbstractReference (ruling Q5, 2026-09-12): the target is burned in when the tree is virtualized. Being an AbstractReference is what gives it the rename and move rewrite of its stored string (AbstractReference.changeReference(String, String, PropReference)) and the broken-reference property error in the Designer, neither of which a %reference inside a GColor value has.
The reference string is the target's property reference, e.g. MyModule:/style/Brand/Primary or a module-relative /style/Brand/Primary.
- Author:
- Christopher Mindus
Nested Class Summary
Nested classes/interfaces inherited from interface IPropReference
IPropReference.IRefType, IPropReference.ReferenceChangeEvent, IPropReference.RefTypeField Summary
Fields inherited from class FixedVirtualizedAbstractReference
fixedTargetFields inherited from class AbstractReference
ERROR_ID, hasBeenValidated, QUICK_FIX_DELETE_PROP, referenceFields inherited from class 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_ATTR_STRING_SECRET, PROP_USER_1, PROP_USER_2Fields inherited from interface IGProp
EQC_ERROR_IGNORE_ALL, EQC_ERROR_IGNORE_REFERENCES, EQC_IGNORE_ARRAY, EQC_IGNORE_VOLATILE_OR_EDITOR, EQC_INCLUDE_PRIVATE, EQC_SAVE_FILE, EQC_SAVE_RELEVANT_ONLY, EXT_CONTAINER_EXTENDS, EXT_CONTAINER_EXTENDS_VALID, EXT_EXTENDED, EXT_FINAL, EXT_OVERRIDES, EXT_OVERRIDES_FINAL_ERR, EXT_PRIVATEConstructor Summary
ConstructorsConstructorDescriptionCreates a Color Reference property with no name and with a null value.ColorReference(Atom propertyAtom) Creates a Color Reference property with the specified name with a null value.ColorReference(Atom propertyAtom, String newValue) Creates a Color Reference property with the specified name and value.Method Summary
Modifier and TypeMethodDescriptionClass<?> Gets the class wanted.Gets the reference Type.booleanisReferenceValid(GProp<?> property) Checks if the reference is valid.Methods inherited from class FixedVirtualizedAbstractReference
clearFixedTarget, clone, getFixedTarget, informClearError, informError, informReference, informResolved, onBroken, onReferenceDisposed, onResolved, onVirtualizationCompleted, paramString, virtualizeMethods inherited from class AbstractReference
appendPropValue, assignError, assignNotFoundError, changeReference, checkCreateReference, clearError, createUpdateReference, disposeReference, doPostResolve, equalsErrors, equalValues, getAbsoluteReference, getDirectReferencedTarget, getDirectReferencedTargetSet, getLookupPropReference, getPropValue0, getReference, getReferenceString, getTargetReference, getTargetReference, getValueClasses, initializeValue, isPropErrorPersisted, isReferencingMultipleTargets, isValid, modifyPropValue, onEventSelf, onProjectNameChanged, onPropDispose, onPropParentChanged, onRefactored, onReferenceEvent, onReferenceEvent, setLookedUpReference, setPropValue, toNativeValue0, updateReference, validatePropType, validatePropValue, validateReferenceScope, wouldValidateMethods inherited from class GProp
addPropError, addPropListener, appendProp, convertPropError, dispose, equals, equals, equalsObj, equalsPropValue, equalsTree, 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, getReferencePropNameNoAssert, getRelativePropName, getRootFromName, getRootName, getRootParent, getRootParentNoAssert, getTreeLock, getVSReference, hasChanged, hasCircularReferencesError, hashCode, hasPrivateChangeEventProp, hasPropError, hasPropTreeError, info, info, initializeElement, initializeGElement, initializeGProp, initializeProp, isDisposed, isPropChildOf, isPropClientCreated, isPropCommunicating, isPropCreateRequired, isPropExtended, isPropExtendsFinal, isPropExtendsPrivate, isPropExtendsPrivateInRoot, isPropExtendsPrivateInRoot, isPropFile, isPropFolder, isPropForEditor, isPropForEditorAtCreation, isPropNullable, isPropPrivate, isPropPrivateAtCreation, isPropReadOnly, isPropReferenceTreeValid, isPropRoot, isPropRootLoading, isPropRootTreeModificationsAllowed, isPropSaveRelevant, isPropSecret, isPropSecretCapable, isPropUSER, isPropValueTreeLockNeeded, isPropVirtualized, isPropVirtualizing, isPropVolatile, isPropVolatileOrEditorOnly, isProxied, isSibling, list, list, list, list, list, mapAliasToReference, mapAliasToReference, mapReferenceToAlias, mapReferenceToAlias, mapReferenceToProjectRelative, moveProp, moveProp, moveProp, onEvent, onInitialize, onPrepare, onPropInvalidateCache, onPropTreeInitialized, onPropValueSet, onRemoteEvent, paramString, paramValue, 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, setPropSecret, setPropUSER, setPropValue, setPropValue, setPropValue, setPropValueIncognito, setPropVolatile, severe, severe, severe, shouldSerializeToXML, throwIfReadOnly, toElementString, toNativeValue, toShortString, toShortString, toString, toString, triggerRemoteEvent, triggerRemoteEvent, validateProp, verify, warning, warning, warningMethods inherited from interface IReferencingGProp
getParent, getReferencingOwner
Constructor Details
ColorReference
public ColorReference()Creates a Color Reference property with no name and with a null value.ColorReference
Creates a Color Reference property with the specified name with a null value.- Parameters:
propertyAtom- the property atom.
ColorReference
Method Details
getReferenceType
Gets the reference Type.- Specified by:
getReferenceTypein interfaceIPropReference- Specified by:
getReferenceTypein interfaceIReferencingGProp- Specified by:
getReferenceTypein classAbstractReference<PaletteColor>- Returns:
IPropReference.RefType.PaletteColor.
getPropertyClass
Gets the class wanted.- Specified by:
getPropertyClassin classAbstractReference<PaletteColor>- Returns:
- PaletteColor.class.
isReferenceValid
Checks if the reference is valid.- Specified by:
isReferenceValidin interfaceIPropReference- Specified by:
isReferenceValidin classAbstractReference<PaletteColor>- Parameters:
property- The property to validate.- Returns:
- true if valid, false otherwise.