Class ClientProps
The client properties has the following properties:
- $apps - AppsProps
- $environment - EnvProps
- Author:
- Christopher Mindus
Field Summary
FieldsFields inherited from class PropCnr
EMPTY, EMPTY_CLASSES, EMPTY_CNRS, EXTENDS_FRAMEWORK_ERROR_IDFields 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
ConstructorsMethod Summary
Modifier and TypeMethodDescriptionbooleanassignModuleProvider(IModuleProjectPropProvider modulePropProvider) Assigns a module project property provider.getAliasName(GProp<?> requestor, String projectName) Gets an alias name for a project name, the alias does NOT begin with "*".Gets the client environment properties.Gets the environment properties.Gets the application's palette block.getProjectName(GProp<?> requestor, String alias) Gets the project name from an alias, the alias does NOT begin with "*".final PropMgrGets the Property Manager used for communication for the root container.getRootFromName(GProp<?> requestor, String module) Gets the module root for a name.getRootName(GProp<?> requestor) Gets the name of the root container as in the Designer"module:".Gets the server environment properties.final booleanVerifies if the tree is valid for reference creation.final booleanChecks if this is a root property container.protected final booleanChecking if a root property is allowed to be modified even after loading has completed.voidonEventSelf(GEvent event) Checks for self-event to queue remote events.booleansetPaletteCSS(String css) Sets the application's palette block: the app's palette colors and families as CSS custom properties (AppPaletteCSS), sent as the$paletteproperty and installed byiz/ClientProps.jsin one style element at the app location, after the shipped theme sheet.booleansetUIScheme(String scheme) Sets the UI theme scheme: the shipped theme family and the mode the client shows (UISchemes), sent as the$schemeproperty and applied byiz/uischeme.js.booleansetUISchemeModes(String modes) Sets the modes the application allows the client to show (UISchemes.modesValue(int)), sent as the$schemeModesproperty and applied byiz/uischeme.js, which then resolves a choice the application does not allow to the mode it does, without changing the choice the device keeps (order CC-THEME-DARK-V5).booleansetUIThemes(String themes) Sets the UI themes for desktop and mobile.Methods inherited from class PropCnr
__transferChildProps, addPredefinedProps, addProp, addProp, addProp2, addProp2, appendPropValue, canRequestFocus, clone, completeVirtualize, containsProp, containsProp, convertLoadedProp, couldRequestFocusIfVirtualized, createCopyOfAtom, createUniqueAtom, createUniqueAtom, createUniqueAtom, createVSReference, doPropEqualsArrayValues, enablePropCommunication, enablePropHashMap, equalsTree, equalsTree, getAllProps, getAllProps, getAllProps, getAllProps, getAllProps, getAllProps, getAllProps, getAllProps, getBool, getBool, getBool, getBool, getChildPropError, getChildPropError, getChildPropErrorSeverity, getChildPropErrorSeverity, getErrorsProp, getExtendsContainer, getExtendsError, getExtendsName, getExtendsOverride, getExtendsPossibleClasses, getFirstProp, getFirstProp, getFocusEngine, getInt, getInt, getInt, getInt, getLong, getLong, getLong, getLong, getNumber, getNumber, getNumber, getNumber, getPossibleChildren, getPredefinedProps, getProp, getProp, getProp, getProp, getProp, getProp, getProp, getProp, getProp, getProp, getProp, getPropBaseReference, getPropCnr, getPropCount, getPropCount, getPropIndex, getPropIndex, getPropIndexes, getProps, getProps, getPropValue, getPropValue, getPropValue, getPropValue, getPropValue, getPropValue, getPropValue, getPropValue0, getRetargetedVerifyContainer, getString, getString, getString, getString, getValueClasses, getVSReference, hasFocus, hasSendData, initializeElement, initializeExtendsFramework, initializeProp, initializePropTree, initializeValue, initPropCnr, insertProp, insertProp2, isChild, isExtendsOverriden, isExtendsPropertyValid, isExtendsRoot, isPropAddRemoveAllowed, isPropCommunicating, isPropExtended, isPropValueTreeLockNeeded, list, list, logPropNotFound, maybeAddProp, onInsertProp, onPropDispose, onPropRemoved, onPropTreeInitialized, onReferenceEvent, onVirtualContainerCreated, onVirtualizationCompleted, paramString, prepare, removeAllProps, removeAllProps2, removeProp, removeProp, removeProp, removeProp, removeProp, removeProp, removeProp, removeProp2, removeProp2, removeProp2, removeProp2, removeProp2, removeProp2, removeProp2, reorderProps, replaceProps, requestFocus, requestFocus, requestFocusEx, requestFocusEx, resolveReferences, resolveRuntimeReferences, setBool, setBool, setBool, setBool, setCreateRequiredProp, setExtendsName, setExtendsOverride, setInt, setInt, setInt, setLong, setLong, setLong, setLong, setNumber, setNumber, setNumber, setNumber, setProp, setProp, setProp, setProp2, setProp2, setPropValue, setPropValue, setPropValue, setPropValue, setPropValue, setPropValue, setString, setString, setString, setString, shouldCreateProps, shouldSerializeToXML, toElementString, toNativeValue0, usePropHashMap, usesPropIndex, validateChildPropInValue, validateClassInstances, validatePropType, validatePropValue, verify, verifyInternalUseOnly, verifyTree, virtualizeMethods inherited from class GProp
addPropError, addPropListener, appendProp, convertPropError, dispose, equals, equals, equalsErrors, equalsObj, equalsPropValue, equalValues, finalize, fine, fine, finer, finer, finest, finest, fromElementString, getAppSessionGyro, getAppWorker, getAtomPath, getAttribute, getChildReferencePropName, getClientSessionGyro, getClientWorker, getConstraints, getErroredPropItems, getErroredProps, getErrorsProp, getExtendsRootContainer, getFullPropName, getFullPropName, getFullPropNameDebug, getFullPropNameDebug, getListeners, getModuleFolder, getModuleFolder, getParent, getParent, getPropAtom, getPropError, getPropError, getPropErroredName, getPropErrorSeverity, getPropExtendsFlags, getPropFromPath, getPropFromPath, getPropFromReference, getPropFromReference, getPropIndex, getPropName, getPropPath, getPropPath, getPropReferenceTarget, getPropTreeErrorSeverity, getPropValue, getPropValue, getPropValueObject, getReferencePropName, getReferencePropNameNoAssert, getRelativePropName, getRootParent, getRootParentNoAssert, getTreeLock, hasChanged, hasCircularReferencesError, hashCode, hasPrivateChangeEventProp, hasPropError, hasPropTreeError, info, info, initializeGElement, initializeGProp, isDisposed, isPropChildOf, isPropClientCreated, isPropCreateRequired, isPropErrorPersisted, isPropExtended, isPropExtendsFinal, isPropExtendsPrivate, isPropExtendsPrivateInRoot, isPropExtendsPrivateInRoot, isPropFile, isPropFolder, isPropForEditor, isPropForEditorAtCreation, isPropNullable, isPropPrivate, isPropPrivateAtCreation, isPropReadOnly, isPropRootLoading, isPropSaveRelevant, isPropSecret, isPropSecretCapable, isPropUSER, isPropVirtualized, isPropVirtualizing, isPropVolatile, isPropVolatileOrEditorOnly, isProxied, isSibling, list, list, list, mapAliasToReference, mapAliasToReference, mapReferenceToAlias, mapReferenceToAlias, mapReferenceToProjectRelative, modifyPropValue, moveProp, moveProp, moveProp, onEvent, onInitialize, onPrepare, onPropInvalidateCache, onPropParentChanged, onPropValueSet, onRemoteEvent, paramString, paramValue, post, post, removePropError, removePropListener, removePropUSER, renameProp, renameProp2, resetChangedTree, setChanged, setConstraints, setConstraints, setParent, setPrivateChangeEventProp, setPrivateCreateRequiredProp, setPropError, setPropErroredName, setPropExtended, setPropExtendsFinal, setPropExtendsPrivate, setPropForEditor, setPropNullable, setPropPrivate, setPropReadOnly, setPropSecret, setPropUSER, setPropValue, setPropValue, setPropValue, setPropValueIncognito, setPropVolatile, severe, severe, severe, shouldSerializeToXML, throwIfReadOnly, toNativeValue, toShortString, toShortString, toString, toString, triggerRemoteEvent, triggerRemoteEvent, validateProp, warning, warning, warningMethods inherited from interface IGProp
addPropError, addPropListener, dispose, equals, fine, fine, finer, finer, finest, finest, fromElementString, getAppSessionGyro, getAtomPath, getClientSessionGyro, getConstraints, getErroredPropItems, getErroredProps, getErrorsProp, getExtendsRootContainer, getFullPropName, getFullPropNameDebug, getModuleFolder, getModuleFolder, getParent, getParent, getPropAtom, getPropBaseReference, getPropError, getPropError, getPropErrorSeverity, getPropExtendsFlags, getPropFromPath, getPropFromReference, getPropIndex, getPropName, getPropPath, getPropPath, getPropTreeErrorSeverity, getPropValue, getPropValue, getReferencePropName, getRelativePropName, getRootParent, getTreeLock, getValueClasses, getVSReference, hasChanged, hasCircularReferencesError, hasPrivateChangeEventProp, hasPropError, hasPropTreeError, info, info, initializeGElement, initializeGProp, isDisposed, isPropChildOf, isPropClientCreated, isPropCommunicating, isPropCreateRequired, isPropExtended, isPropExtendsFinal, isPropExtendsPrivate, isPropExtendsPrivateInRoot, isPropExtendsPrivateInRoot, isPropFile, isPropFolder, isPropNullable, isPropPrivate, isPropReadOnly, isPropVirtualized, isSibling, list, list, list, list, list, mapAliasToReference, mapReferenceToAlias, mapReferenceToProjectRelative, moveProp, moveProp, moveProp, onEvent, onPropTreeInitialized, onRemoteEvent, removePropError, removePropListener, renameProp, resolveRuntimeReferences, setChanged, setConstraints, setConstraints, setParent, setPrivateChangeEventProp, setPropError, setPropExtendsFinal, setPropExtendsPrivate, setPropNullable, setPropPrivate, setPropReadOnly, setPropValue, setPropValue, severe, severe, severe, toElementString, toNativeValue, triggerRemoteEvent, triggerRemoteEvent, validateProp, validatePropType, validatePropValue, verify, warning, warning, warningMethods inherited from interface IPropCnr
addProp, addProp, addProp2, addProp2, canRequestFocus, canRequestFocus, canRequestFocus, containsProp, containsProp, couldRequestFocusIfVirtualized, couldRequestFocusIfVirtualized, couldRequestFocusIfVirtualized, createCopyOfAtom, createUniqueAtom, createUniqueAtom, enablePropCommunication, enablePropHashMap, getAllProps, getAllProps, getAllProps, getAllProps, getAllProps, getAllProps, getAllProps, getAllProps, getBool, getBool, getBool, getBool, getChildPropError, getChildPropError, getChildPropErrorSeverity, getChildPropErrorSeverity, getErrorsProp, getExtendsError, getExtendsName, getExtendsPossibleClasses, getFirstProp, getFirstProp, getFocusEngine, getInt, getInt, getInt, getInt, getLong, getLong, getLong, getLong, getNumber, getNumber, getNumber, getNumber, getPossibleChildren, getProp, getProp, getProp, getProp, getProp, getProp, getProp, getProp, getProp, getProp, getProp, getPropCnr, getPropCount, getPropIndex, getPropIndex, getPropIndexes, getProps, getProps, getPropValue, getPropValue, getPropValue, getPropValue, getPropValue, getPropValue, getPropValue, getString, getString, getString, getString, hasFocus, initializeExtendsFramework, insertProp, insertProp2, isChild, isExtendsOverriden, isExtendsRoot, isPropAddRemoveAllowed, isPropExtended, removeAllProps, removeAllProps2, removeProp, removeProp, removeProp, removeProp, removeProp, removeProp, removeProp, removeProp2, removeProp2, removeProp2, removeProp2, removeProp2, removeProp2, removeProp2, reorderProps, requestFocus, requestFocusEx, setBool, setBool, setBool, setBool, setExtendsName, setExtendsOverride, setInt, setInt, setInt, setLong, setLong, setLong, setLong, setNumber, setNumber, setNumber, setNumber, setProp, setProp, setProp, setProp2, setProp2, setPropValue, setPropValue, setPropValue, setPropValue, setPropValue, setPropValue, setString, setString, setString, setString, usePropHashMap, usesPropIndex, validateClassInstances
Field Details
envProps
The environment properties.
Constructor Details
ClientProps
protected ClientProps()Creates the client properties without a name. The name must be set in all cases using thesetPropertyAtomcall.
Method Details
getEnvironment
Gets the environment properties.- Specified by:
getEnvironmentin interfaceIGProp<GProp<?>[]>- Overrides:
getEnvironmentin classGProp<GProp<?>[]>- Returns:
- The EnvProps for the client environment.
getServerEnv
Gets the server environment properties.- Returns:
- StringMapProp for the server environment.
getClientEnv
Gets the client environment properties.- Returns:
- StringMapProp for the server environment.
getPropRootPropMgr
Gets the Property Manager used for communication for the root container. If this is not the root container, the parent function is called upwards in tree.- Specified by:
getPropRootPropMgrin interfaceIGProp<GProp<?>[]>- Specified by:
getPropRootPropMgrin interfaceIPropRoot- Overrides:
getPropRootPropMgrin classGProp<GProp<?>[]>- Returns:
- The Property Manager, or null when not attached to a root.
isPropRoot
public final boolean isPropRoot()Checks if this is a root property container. It is overridden by the root property.- Specified by:
isPropRootin interfaceIGProp<GProp<?>[]>- Overrides:
isPropRootin classGProp<GProp<?>[]>- Returns:
- true for the root, false otherwise.
isPropReferenceTreeValid
public final boolean isPropReferenceTreeValid()Verifies if the tree is valid for reference creation. This method is typically overridden in a root property that has a Property Manager owner that in turn is checked for a particular configuration (e.g. Client-related references such as LabelForReference that does not create references when communicating).The code implementation for a root property should be:
return (!isDisposed() && getPropRootPropMgr()!=null);- Specified by:
isPropReferenceTreeValidin interfaceIGProp<GProp<?>[]>- Specified by:
isPropReferenceTreeValidin interfaceIPropRoot- Overrides:
isPropReferenceTreeValidin classGProp<GProp<?>[]>- Returns:
- true if the root property manager is found, false otherwise.
isPropRootTreeModificationsAllowed
protected final boolean isPropRootTreeModificationsAllowed()Checking if a root property is allowed to be modified even after loading has completed.- Overrides:
isPropRootTreeModificationsAllowedin classGProp<GProp<?>[]>- Returns:
- Flag indicating that the tree of properties below this container can be modified.
getRootName
Gets the name of the root container as in the Designer"module:".- Overrides:
getRootNamein classGProp<GProp<?>[]>- Parameters:
requestor- The requestor property.- Returns:
- The application root returns "{CLIENT_ROOT}:", because each Module project property container is a root itself, and this name is illegal for Atoms and paths.
onEventSelf
Checks for self-event to queue remote events.- Specified by:
onEventSelfin interfaceIGProp<GProp<?>[]>- Overrides:
onEventSelfin classGProp<GProp<?>[]>- Parameters:
event- The property event.
setUIThemes
Sets the UI themes for desktop and mobile.- Parameters:
themes- The themes, comma separated "desktop,mobile".- Returns:
- true for success, false for no change or failure.
setUIScheme
Sets the UI theme scheme: the shipped theme family and the mode the client shows (UISchemes), sent as the$schemeproperty and applied byiz/uischeme.js. The Panel Editor sends the Designer pages their choice this way, and the server relays an iiziRun launcher's choice.- Parameters:
scheme- The scheme as "family/mode", e.g. "iizi/dark".- Returns:
- true for success, false for no change or failure.
setUISchemeModes
Sets the modes the application allows the client to show (UISchemes.modesValue(int)), sent as the$schemeModesproperty and applied byiz/uischeme.js, which then resolves a choice the application does not allow to the mode it does, without changing the choice the device keeps (order CC-THEME-DARK-V5).- Parameters:
modes-"light","dark", or the empty string for both.- Returns:
- true for success, false for no change or failure.
setPaletteCSS
Sets the application's palette block: the app's palette colors and families as CSS custom properties (AppPaletteCSS), sent as the$paletteproperty and installed byiz/ClientProps.jsin one style element at the app location, after the shipped theme sheet. Generated at session start; set again after a palette edit, when only a changed block travels.- Parameters:
css- The block.- Returns:
- true for success, false for no change or failure.
getPaletteCSS
Gets the application's palette block.- Returns:
- The block, or null when none is set.
assignModuleProvider
Assigns a module project property provider.- Parameters:
modulePropProvider- The provider, or null to clear it.- Returns:
- true for changed, false for no change.
getProjectName
Gets the project name from an alias, the alias does NOT begin with "*".Without a module provider there are no aliases: the answer is null. The default of
GPropis for a container that is not a root; on this root it asserted (with assertions enabled) and answered null anyway.- Overrides:
getProjectNamein classGProp<GProp<?>[]>- Parameters:
requestor- The requestor.alias- The alias name.- Returns:
- The project name for the alias, or null if not found.
getAliasName
Gets an alias name for a project name, the alias does NOT begin with "*".The module provider has no reverse mapping (
IModuleProjectPropProvidermaps an alias to a project name only), so this root never answers an alias: null. The Designer's project root answers it; the default ofGPropasserted on this root (with assertions enabled) and answered null anyway.- Overrides:
getAliasNamein classGProp<GProp<?>[]>- Parameters:
requestor- The requestor.projectName- The project name (without ending ':').- Returns:
- null, always: not found.
getRootFromName
Gets the module root for a name. In the Editor, the module is the project, and that root container is returned. In the Server, the module doesn't matter, so the real root returns itself.When running with assertions, this call throws an assertion error by default, showing that the call is directed to a non-root property container.
- Overrides:
getRootFromNamein classGProp<GProp<?>[]>- Parameters:
requestor- The requestor.module- The module name (without colon), i.e. the project name in the Designer.Without a module provider only
"{CLIENT_ROOT}"is known: any other module answers null. The default ofGPropis for a container that is not a root; on this root it asserted (with assertions enabled) and answered null anyway.- Returns:
- The root property container, or null if this container is not the root, or if the module name is not found. The default implementation returns null.