Class ColorReference

All Implemented Interfaces:
EventListener, IGProp<ReferenceString>, IPropReference, IReferencingGProp, Cloneable

public class ColorReference extends FixedVirtualizedAbstractReference<PaletteColor>
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