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 Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic 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_2Fields 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_PRIVATEConstructor Summary
ConstructorsConstructorDescriptionCreates the HostSessionProps property without a name.HostSessionProps(Atom propertyAtom) Creates the HostSessionProps property with the specified name.Method Summary
Modifier and TypeMethodDescriptionvoidadd(SendTransaction trans) Queues a transaction for execution on the remote side whenever possible.voidaddPreSendListener(IPreSendHostSessionProps listener) Adds a pre-send event listener.protected voidappendPropValue(PropMgr propertyManager, SendTransaction trans, Object value) Appends the property value and all its children to a transaction using theAtomManager.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 ObjectgetPropValue0(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 usingsetPropertyValue, in order of importance.booleaninitializeValue(PropMgr propertyManager, ReadTransaction trans) Initializes the property value from a transaction.voidRemoves a pre-send event listener.protected ObjecttoNativeValue0(Object value, int index) Tries conversion of possibly accepted properties values using thesetPropertyValuemethod into the most preferred property value type.voidvalidatePropType(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_VK
public static final int T_VKTransaction codes.- See Also:
T_CHAR
public static final int T_CHAR- See Also:
T_SIZE
public static final int T_SIZE- See Also:
T_CURSOR
public static final int T_CURSOR- See Also:
T_RESET
public static final int T_RESET- See Also:
T_CURSOR2
public static final int T_CURSOR2- See Also:
T_SCREEN
public static final int T_SCREEN- See Also:
T_CLIPBOARD
public static final int T_CLIPBOARD- See Also:
T_MARK
public static final int T_MARK- See Also:
T_KEY
public static final int T_KEY- See Also:
T_FONTS
public static final int T_FONTS- See Also:
T_CLIENTINPUT
public static final int T_CLIENTINPUT- See Also:
T_LFE_CHAR
public static final int T_LFE_CHAR- See Also:
T_PRTWIN
public static final int T_PRTWIN- See Also:
T_CLIENTSCREEN
public static final int T_CLIENTSCREEN- See Also:
T_FLUSH
public static final int T_FLUSH- See Also:
T_ACCEPT
public static final int T_ACCEPT- See Also:
T_ALLOWEDCHARS
public static final int T_ALLOWEDCHARS- See Also:
T_ERRORSTATE
public static final int T_ERRORSTATE- See Also:
T_CLEARTYPEAH_NOEDIT
public static final int T_CLEARTYPEAH_NOEDIT- See Also:
T_CLEARTYPEAH
public static final int T_CLEARTYPEAH- See Also:
T_STATE
public static final int T_STATE- See Also:
T_ALARM
public static final int T_ALARM- See Also:
T_FIELDS_POPUPS
public static final int T_FIELDS_POPUPS- See Also:
T_CLEAR
public static final int T_CLEAR- See Also:
M_REMOVE
public static final int M_REMOVE- See Also:
M_SELALL
public static final int M_SELALL- See Also:
M_GET
public static final int M_GET- See Also:
Constructor Details
HostSessionProps
public HostSessionProps()Creates the HostSessionProps property without a name. The name must be set in all cases using thesetPropertyAtomcall.HostSessionProps
Creates 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
clone
Clones the property is NOT ALLOWED, thus a CloneNotSupportedException is always thrown.- Overrides:
clonein classGProp<Object>- Throws:
CloneNotSupportedException- Always thrown.
validatePropType
Validates 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 interfaceIGProp<Object>- Specified by:
validatePropTypein classGProp<Object>- Parameters:
newValue- The new value to set.- Throws:
PropTypeException- when the new value isn't of the correct class.
getValueClasses
Gets the list of possible native Java classes that can be used to set a value usingsetPropertyValue, in order of importance. Only one is supported, the Object class.- Specified by:
getValueClassesin interfaceIGProp<Object>- Specified by:
getValueClassesin classGProp<Object>- Returns:
- An array Java class of length 1 containing the Object class.
getPropValue0
Description 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 classGProp<Object>- Parameters:
value- The property value.index- The index in the Class array returned bygetValueClasses().- Returns:
- The property value in the requested class, after conversion.
toNativeValue0
Description copied from class:GPropTries conversion of possibly accepted properties values using thesetPropertyValuemethod 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 classGProp<Object>- Parameters:
value- The input value to convert to native value.index- The index in the array returned bygetValueClasses(), or -1 if not found.- Returns:
- The converted input value in the preferred property value object type.
addPreSendListener
Adds a pre-send event listener.- Parameters:
listener- The listener.
removePreSendListener
Removes a pre-send event listener.- Parameters:
listener- The listener.
flagEvent
public void flagEvent()Flag this property value as changed.appendPropValue
Appends the property value and all its children to a transaction using theAtomManager.- Specified by:
appendPropValuein classGProp<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.
initializeValue
Initializes the property value from a transaction.- Specified by:
initializeValuein classGProp<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.
get
Gets the next read-transaction.- Returns:
- A transaction to process or null if no more transactions are present.
add
Queues a transaction for execution on the remote side whenever possible.- Parameters:
trans- The transaction to perform.