Package com.iizix.term.prop
Class HostSessionProps
- All Implemented Interfaces:
- EventListener,- IGProp<Object>,- Cloneable
This property handles communication between the server and client in full duplex using Transaction's. It is NOT persistent.
- Author:
- Christopher Mindus
- Field SummaryFieldsModifier and TypeFieldDescription- static final int- static final int- static final int- static final int- static final int- static final int- static final int- static final int- static final int- static final int- static final int- static final int- static final int- static final int- static final int- static final int- static final int- static final int- static final int- static final int- static final int- static final int- static final int- static final int- static final int- static final int- static final int- static final intTransaction codes.- 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 SummaryConstructorsConstructorDescriptionCreates the HostSessionProps property without a name.- HostSessionProps- (Atom propertyAtom) Creates the HostSessionProps property with the specified name.
- Method SummaryModifier and TypeMethodDescription- void- add- (SendTransaction trans) Queues a transaction for execution on the remote side whenever possible.- void- addPreSendListener- (IPreSendHostSessionProps listener) Adds a pre-send event listener.- protected void- appendPropValue- (PropMgr propertyManager, SendTransaction trans, Object value) Appends the property value and all its children to a transaction using the- AtomManager.- clone()Clones the property is NOT ALLOWED, thus a CloneNotSupportedException is always thrown.- voidFlag this property value as changed.- get()Gets the next read-transaction.- protected Object- getPropValue0- (Object value, int index) Gets the property value in another class form than the "native" one.- Class<?>[]Gets the list of possible native Java classes that can be used to set a value using- setPropertyValue, in order of importance.- boolean- initializeValue- (PropMgr propertyManager, ReadTransaction trans) Initializes the property value from a transaction.- voidRemoves a pre-send event listener.- protected Object- toNativeValue0- (Object value, int index) Tries conversion of possibly accepted properties values using the- setPropertyValuemethod into the most preferred property value type.- void- validatePropType- (Object newValue) Validates the newValue against the property object type.- Methods inherited from class com.iizix.prop.GProp- addPropError, addPropListener, convertPropError, dispose, equals, equals, equalsErrors, equalsObj, equalsPropValue, equalsTree, equalValues, 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, modifyPropValue, moveProp, moveProp, moveProp, onEvent, onEventSelf, onPrepare, onPropDispose, onPropInvalidateCache, onPropParentChanged, onPropTreeInitialized, onPropValueSet, onReferenceEvent, onRemoteEvent, onVirtualizationCompleted, paramString, 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, validatePropValue, verify, virtualize, warning, warning, warning
- Field Details- T_VKpublic static final int T_VKTransaction codes.- See Also:
 
- T_CHARpublic static final int T_CHAR- See Also:
 
- T_SIZEpublic static final int T_SIZE- See Also:
 
- T_CURSORpublic static final int T_CURSOR- See Also:
 
- T_RESETpublic static final int T_RESET- See Also:
 
- T_CURSOR2public static final int T_CURSOR2- See Also:
 
- T_SCREENpublic static final int T_SCREEN- See Also:
 
- T_CLIPBOARDpublic static final int T_CLIPBOARD- See Also:
 
- T_MARKpublic static final int T_MARK- See Also:
 
- T_KEYpublic static final int T_KEY- See Also:
 
- T_FONTSpublic static final int T_FONTS- See Also:
 
- T_CLIENTINPUTpublic static final int T_CLIENTINPUT- See Also:
 
- T_LFE_CHARpublic static final int T_LFE_CHAR- See Also:
 
- T_PRTWINpublic static final int T_PRTWIN- See Also:
 
- T_CLIENTSCREENpublic static final int T_CLIENTSCREEN- See Also:
 
- T_FLUSHpublic static final int T_FLUSH- See Also:
 
- T_ACCEPTpublic static final int T_ACCEPT- See Also:
 
- T_ALLOWEDCHARSpublic static final int T_ALLOWEDCHARS- See Also:
 
- T_ERRORSTATEpublic static final int T_ERRORSTATE- See Also:
 
- T_CLEARTYPEAH_NOEDITpublic static final int T_CLEARTYPEAH_NOEDIT- See Also:
 
- T_CLEARTYPEAHpublic static final int T_CLEARTYPEAH- See Also:
 
- T_STATEpublic static final int T_STATE- See Also:
 
- T_ALARMpublic static final int T_ALARM- See Also:
 
- T_FIELDS_POPUPSpublic static final int T_FIELDS_POPUPS- See Also:
 
- T_CLEARpublic static final int T_CLEAR- See Also:
 
- M_REMOVEpublic static final int M_REMOVE- See Also:
 
- M_SELALLpublic static final int M_SELALL- See Also:
 
- M_GETpublic static final int M_GET- See Also:
 
 
- Constructor Details- HostSessionPropspublic HostSessionProps()Creates the HostSessionProps property without a name. The name must be set in all cases using the- setPropertyAtomcall.
- HostSessionPropsCreates the HostSessionProps property with the specified name. All system-reserved names for components begins with "$".- Parameters:
- propertyAtom- the name of the component, unique within it's parent.
 
 
- Method Details- cloneClones the property is NOT ALLOWED, thus a CloneNotSupportedException is always thrown.- Overrides:
- clonein class- GProp<Object>
- Throws:
- CloneNotSupportedException- Always thrown.
 
- validatePropTypeValidates the newValue against the property object type. Subclasses must override this method to perform optional value type validation.- Note: When this method is called, synchronization is done at the property itself, so no synchronization on the tree should be done. - Specified by:
- validatePropTypein interface- IGProp<Object>
- Specified by:
- validatePropTypein class- GProp<Object>
- Parameters:
- newValue- The new value to set.
- Throws:
- PropTypeException- when the new value isn't of the correct class.
 
- getValueClassesGets the list of possible native Java classes that can be used to set a value using- setPropertyValue, in order of importance. Only one is supported, the Object class.- Specified by:
- getValueClassesin interface- IGProp<Object>
- Specified by:
- getValueClassesin class- GProp<Object>
- Returns:
- An array Java class of length 1 containing the Object class.
 
- getPropValue0Description copied from class:- GPropGets the property value in another class form than the "native" one. This method tries conversion of a "native" property value into another class type. This method is used when filling in a POJO variable (Plain Old Java Object Field) from a "native" property value.- Subclasses overrides this method - getPropertyValue0in order to provide the appropriate conversion.- Specified by:
- getPropValue0in class- GProp<Object>
- Parameters:
- value- The property value.
- index- The index in the Class array returned by- getValueClasses().
- Returns:
- The property value in the requested class, after conversion.
 
- toNativeValue0Description copied from class:- GPropTries conversion of possibly accepted properties values using the- setPropertyValuemethod into the most preferred property value type. If the input value already is of the preferred type, the same object is returned.- Subclasses overrides the method - toNativeValue0in order to provide the appropriate conversion.- Specified by:
- toNativeValue0in class- GProp<Object>
- Parameters:
- value- The input value to convert to native value.
- index- The index in the array returned by- getValueClasses(), or -1 if not found.
- Returns:
- The converted input value in the preferred property value object type.
 
- addPreSendListenerAdds a pre-send event listener.- Parameters:
- listener- The listener.
 
- removePreSendListenerRemoves a pre-send event listener.- Parameters:
- listener- The listener.
 
- flagEventpublic void flagEvent()Flag this property value as changed.
- appendPropValueAppends the property value and all its children to a transaction using the- AtomManager.- Specified by:
- appendPropValuein class- GProp<Object>
- Parameters:
- propertyManager- the property manager instance.
- trans- transaction to append the properties to.
- value- the value to append to the transaction, a reference to the current property value.
 
- initializeValueInitializes the property value from a transaction.- Specified by:
- initializeValuein class- GProp<Object>
- Parameters:
- propertyManager- the property manager.
- trans- the transaction to initialize the property with.
- Returns:
- true if any data has been added, false otherwise.
- Throws:
- PropException- In case of transaction error.
 
- getGets the next read-transaction.- Returns:
- A transaction to process or null if no more transactions are present.
 
- addQueues a transaction for execution on the remote side whenever possible.- Parameters:
- trans- The transaction to perform.