Class FixedVirtualizedAbstractReference<TARGET extends IPropCnr>
- All Implemented Interfaces:
- EventListener,- IGProp<ReferenceString>,- IPropReference,- IReferencingGProp,- Cloneable
- Direct Known Subclasses:
- AbstractFixedVirtualizedBaseRelativeReference,- AssetReference,- ContextMenuReference,- DatabaseTransactionReference,- ImageReference,- PanelPartReference,- ScreenActionReference,- SelectorReference,- TextTableReference,- VSParticipantReference,- WebServiceReference
When virtualizing this property reference, the referenced target from the original is "burned in" as a fixed value for the virtualized copy. This class is typically used for references that cannot be modified dynamically, e.g. a reference to an image, data connector, text ID, etc.
- Author:
- Christopher Mindus
- Nested Class Summary- Nested classes/interfaces inherited from interface com.iizix.prop.IPropReference- IPropReference.IRefType, IPropReference.ReferenceChangeEvent, IPropReference.RefType
- Field SummaryFields- Fields inherited from class com.iizix.prop.AbstractReference- ERROR_ID, hasBeenValidated, QUICK_FIX_DELETE_PROP, reference- 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 SummaryConstructorsModifierConstructorDescription- protectedCreates a Abstract Reference property with no name and with a null value.- protected- FixedVirtualizedAbstractReference- (Atom propertyAtom) Creates a Abstract Reference property with the specified name with a null value.- protected- FixedVirtualizedAbstractReference- (Atom propertyAtom, String newValue) Creates a Abstract Reference property with the specified name and value.
- Method SummaryModifier and TypeMethodDescription- protected voidCalled to clear the fixed reference in case the reference is changed.- protected TARGETSupport for a fixed reference.- protected voidCalled when the property has been cleared from error.- protected voidCalled when the property has an error.- protected voidCalled when the reference may have changed.- protected voidCalled when the property has been resolved.- protected voidCalled when the target is broken.- protected voidCalled when the reference is disposed of.- protected void- onResolved- (TARGET target) Called when the target is resolved.- protected final void- onVirtualizationCompleted- (IAppSessionGyro appGyro, IClientSessionGyro clientGyro, VirtualSpace virtualSpace, boolean isPostResolve) Called when virtualization completed.- protected StringReturns the parameter string representing the state of this event.- protected final FixedVirtualizedAbstractReference<TARGET>- virtualize- (IAppSessionGyro appGyro, IClientSessionGyro clientGyro, VirtualSpace virtualSpace) Call this method to "virtualize" a property tree.- Methods inherited from class com.iizix.prop.AbstractReference- appendPropValue, assignError, assignNotFoundError, changeReference, checkCreateReference, clearError, clone, createUpdateReference, disposeReference, doPostResolve, equalsErrors, equalValues, getAbsoluteReference, getDirectReferencedTarget, getDirectReferencedTargetSet, getLookupPropReference, getPropertyClass, getPropValue0, getReference, getReferenceString, getReferenceType, getTargetReference, getTargetReference, getValueClasses, initializeValue, isReferenceValid, isReferencingMultipleTargets, isValid, modifyPropValue, onEventSelf, onProjectNameChanged, onPropDispose, onPropParentChanged, onRefactored, onReferenceEvent, onReferenceEvent, setLookedUpReference, setPropValue, toNativeValue0, updateReference, validatePropType, validatePropValue, validateReferenceScope, wouldValidate- Methods inherited from class com.iizix.prop.GProp- addPropError, addPropListener, convertPropError, dispose, equals, equals, 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, getReferencePropNameNoAssert, getRelativePropName, getRootFromName, getRootName, getRootParent, getRootParentNoAssert, getTreeLock, getVSReference, hasChanged, hasCircularReferencesError, hasPrivateChangeEventProp, hasPropError, hasPropTreeError, info, info, initializeElement, initializeGElement, initializeGProp, initializeProp, isDisposed, isPropChildOf, isPropClientCreated, isPropCommunicating, isPropCreateRequired, isPropExtended, isPropExtendsFinal, isPropExtendsPrivate, isPropExtendsPrivateInRoot, isPropExtendsPrivateInRoot, isPropFile, isPropFolder, isPropForEditor, isPropNullable, isPropPrivate, isPropPrivateAtCreation, isPropReadOnly, isPropReferenceTreeValid, isPropRoot, isPropRootLoading, isPropRootTreeModificationsAllowed, isPropUSER, isPropValueTreeLockNeeded, isPropVirtualized, isPropVirtualizing, isPropVolatile, isPropVolatileOrEditorOnly, isProxied, list, list, list, list, list, mapAliasToReference, mapAliasToReference, mapReferenceToAlias, mapReferenceToAlias, mapReferenceToProjectRelative, moveProp, moveProp, moveProp, onEvent, 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, setPropUSER, setPropValue, setPropValue, setPropValue, setPropValueIncognito, setPropVolatile, severe, severe, severe, shouldSerializeToXML, throwIfReadOnly, toElementString, toNativeValue, toString, toString, triggerRemoteEvent, triggerRemoteEvent, validateProp, verify, warning, warning, warning- Methods inherited from class java.lang.Object- getClass, hashCode, notify, notifyAll, wait, wait, wait- Methods inherited from interface com.iizix.prop.IReferencingGProp- getParent, getReferencingOwner
- Field Details- fixedTargetTarget fixed at virtualization.
 
- Constructor Details- FixedVirtualizedAbstractReferenceprotected FixedVirtualizedAbstractReference()Creates a Abstract Reference property with no name and with a null value.
- FixedVirtualizedAbstractReferenceCreates a Abstract Reference property with the specified name with a null value.- Parameters:
- propertyAtom- the property atom.
 
- FixedVirtualizedAbstractReferenceCreates a Abstract Reference property with the specified name and value.- Parameters:
- propertyAtom- the property atom.
- newValue- the new string value for the property.
 
 
- Method Details- getFixedTargetSupport for a fixed reference.- Overrides:
- getFixedTargetin class- AbstractReference<TARGET extends IPropCnr>
- Returns:
- The fixed reference to return in cases the target reference is needed, and also serves as a verification if a new reference should be created or not. Returning nullcauses normal behavior (default).
 
- clearFixedTargetprotected void clearFixedTarget()Called to clear the fixed reference in case the reference is changed. This will revert back to normal processing.- The "clone" method does not change to be overridden to clear the fixed target as this method is called during cloning. - Overrides:
- clearFixedTargetin class- AbstractReference<TARGET extends IPropCnr>
 
- informResolvedprotected void informResolved()Called when the property has been resolved. Subclasses override this method to implement some behavior. The default implementation performs nothing, i.e. there is no need to call- super.informResolved().- Overrides:
- informResolvedin class- AbstractReference<TARGET extends IPropCnr>
 
- informErrorprotected void informError()Called when the property has an error. Subclasses override this method to implement some behavior. The default implementation performs nothing, i.e. there is no need to call- super.informError().- Overrides:
- informErrorin class- AbstractReference<TARGET extends IPropCnr>
 
- informClearErrorprotected void informClearError()Called when the property has been cleared from error. Subclasses override this method to implement some behavior. The default implementation performs nothing, i.e. there is no need to call- super.informClearError().- Overrides:
- informClearErrorin class- AbstractReference<TARGET extends IPropCnr>
 
- onReferenceDisposedprotected void onReferenceDisposed()Called when the reference is disposed of.- Overrides:
- onReferenceDisposedin class- AbstractReference<TARGET extends IPropCnr>
 
- informReferenceprotected void informReference()Called when the reference may have changed.- Subclasses can override this method to perform other functionality. 
- virtualizeprotected final FixedVirtualizedAbstractReference<TARGET> virtualize- (IAppSessionGyro appGyro, IClientSessionGyro clientGyro, VirtualSpace virtualSpace) throws CloneNotSupportedException, PropException Call this method to "virtualize" a property tree. This method is used at runtime in the Server for the application session of virtual instances of VirtualSpace, but also virtual instances of panels, for the individual client session. The VirtualSpace is virtualized once for the application session and is shared for parallel client sessions.- This method is similar to cloning, but enables references that are already resolved to remain if they point to a shared instance, e.g. the VirtualSpace pointing to its participants in the application property container shared instance, or a panel with references to text IDs, assets, etc. - Overrides:
- virtualizein class- GProp<ReferenceString>
- Parameters:
- appGyro- The application gyro instance performing the virtualization.
- clientGyro- The client gyro session, can be- nullif not initialized from the client gyro.
- virtualSpace- The virtualized VirtualSpace.
- Returns:
- The virtualized property.
- Throws:
- CloneNotSupportedException- If a subclass doesn't allow cloning, e.g. the client properties.
- PropException- For property errors during the virtualization.
- IllegalStateException- IllegalStateException if the property is in an invalid state, e.g. in virtualizing state or if in
 
- onVirtualizationCompletedprotected final void onVirtualizationCompleted- (IAppSessionGyro appGyro, IClientSessionGyro clientGyro, VirtualSpace virtualSpace, boolean isPostResolve) Called when virtualization completed.- This method is called to the entire tree of the newly virtualized property container. - Overrides:
- onVirtualizationCompletedin class- GProp<ReferenceString>
- Parameters:
- appGyro- The application gyro instance performing the virtualization.
- clientGyro- The client gyro session, can be- nullif not initialized from the client gyro.
- virtualSpace- The virtualized VirtualSpace.
- isPostResolve- Flag indicating this call is done after references are attempted to be resolved.
 
- paramStringReturns the parameter string representing the state of this event. This string is useful for debugging. Subclasses adds extra information to the string by preceding it with a comma followed by the extra information.- Overrides:
- paramStringin class- AbstractReference<TARGET extends IPropCnr>
- Returns:
- the parameter string of this event.
 
- onResolvedCalled when the target is resolved.- Parameters:
- target- The target.
 
- onBrokenCalled when the target is broken.- Parameters:
- target- The target.