Class PWAProps
- All Implemented Interfaces:
EventListener, IGProp<GProp<?>[]>, IPropCnr, Cloneable
- Direct Known Subclasses:
EditorPWAProps
.iiziPWA of an application. Its presence makes the application installable (PWA-DESIGN.md section 3); what the application is called and says of itself comes from the App (ModuleApp: $name, $descr, ruling AU-9), never from here - the former name, $descr and Firebase scriptTag members were removed by CC-PUSH-PWA-PAGES (rulings PW-1, PW-2): nothing read the first two, and the Firebase web configuration belongs to the App's Analytics (PWA-DESIGN.md section 8). The former localized member went with ruling PW-D-1: the languages of /app/<id>/ are the App's (AppLanguages). A file still carrying any of them loads and keeps them as plain members; nothing reads them.The icons are this container's own (Set I, ruling PX-1, which reverses AU-9 for icons only: the App's iconBitmap is no longer used for the PWA): the required master icon, a square PNG of at least 512 x 512, and the optional maskable, monochrome and Apple touch icons, each an AssetReference to a file in the module's assets - normally in the PWA folder assets/PWA/ (PD-1), where the Designer also writes every variant the folder lacks when the page is applied (PD-2). The server builds what it serves from the folder's files, these references, the application's iiziRun icon set and the master, in that order (com.iizix.pwa.PWAIcons).
The manifest members of this container: CATEGORY_PROPNAME (the iiziRun page's category list, written to the manifest's categories as W3C names, ruling PM-4) and ORIENTATION_PROPNAME (the manifest's orientation; the default, 0, writes none).
- Author:
- Christopher Mindus
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AtomThe atom for the PWA properties container: "$pwa".static final StringThe property name of the category: "category", an index into the iiziRun page's list (1 = Business ..static final StringThe file name of the PWA properties container: ".iiziPWA".static final StringThe property name of the optional Apple touch icon asset reference: "iconApple".static final StringThe property name of the optional maskable icon asset reference: "iconMaskable".static final StringThe property name of the optional monochrome icon asset reference: "iconMonochrome".static final StringThe property name of the master icon asset reference: "icon".static final StringThe property name of the orientation: "orientation", an index intoPWAManifest.ORIENTATIONS; 0 or absent for none.Fields 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 TypeMethodDescriptionclone()Creates a clone out of this property.intGets the category index of the iiziRun page's list.Gets the Apple touch icon reference.Gets the maskable icon reference.Gets the monochrome icon reference.Gets the master icon reference.intGets the orientation index.static byte[]readIcon(AssetReference ref) Reads the bytes of a referenced icon file, as the Designer and a development server can: through the URL of the resolved asset.static FileURIPropCnrResolves a referenced icon file: the reference's resolved target, else a lookup through the tree the reference sits in.booleanverify(PropVerification verification) Verifies this property container (ruling PX-1, strict since the container's presence makes the application installable): the master icon must be set, resolved, a PNG, square and at least 512 x 512 (each an ERROR); a maskable or Apple touch icon with transparency is a WARNING naming the platform rule; an optional icon that is set must resolve to a PNG (ERROR).Methods inherited from class PropCnr
__transferChildProps, addPredefinedProps, addProp, addProp, addProp2, addProp2, appendPropValue, canRequestFocus, 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, 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, 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, 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, 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, isPropReferenceTreeValid, isPropRoot, isPropRootLoading, isPropRootTreeModificationsAllowed, isPropSaveRelevant, isPropSecret, isPropSecretCapable, isPropUSER, isPropVirtualized, isPropVirtualizing, isPropVolatile, isPropVolatileOrEditorOnly, isProxied, isSibling, list, list, list, mapAliasToReference, mapAliasToReference, mapReferenceToAlias, mapReferenceToAlias, mapReferenceToProjectRelative, modifyPropValue, moveProp, moveProp, moveProp, onEvent, onEventSelf, 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, getEnvironment, getErroredPropItems, getErroredProps, getErrorsProp, getExtendsRootContainer, getFullPropName, getFullPropNameDebug, getModuleFolder, getModuleFolder, getParent, getParent, getPropAtom, getPropError, getPropError, getPropErrorSeverity, getPropExtendsFlags, getPropFromPath, getPropFromReference, getPropIndex, getPropName, getPropPath, getPropPath, getPropRootPropMgr, getPropTreeErrorSeverity, getPropValue, getPropValue, getReferencePropName, getRelativePropName, getRootParent, getTreeLock, hasChanged, hasCircularReferencesError, hasPrivateChangeEventProp, hasPropError, hasPropTreeError, info, info, initializeGElement, initializeGProp, isDisposed, isPropChildOf, isPropClientCreated, isPropCreateRequired, isPropExtended, isPropExtendsFinal, isPropExtendsPrivate, isPropExtendsPrivateInRoot, isPropExtendsPrivateInRoot, isPropFile, isPropFolder, isPropNullable, isPropPrivate, isPropReadOnly, isPropReferenceTreeValid, isPropRoot, isPropVirtualized, isSibling, list, list, list, mapAliasToReference, mapReferenceToAlias, mapReferenceToProjectRelative, moveProp, moveProp, moveProp, onEvent, onEventSelf, onRemoteEvent, removePropError, removePropListener, renameProp, setChanged, setConstraints, setConstraints, setParent, setPrivateChangeEventProp, setPropError, setPropExtendsFinal, setPropExtendsPrivate, setPropNullable, setPropPrivate, setPropReadOnly, setPropValue, setPropValue, severe, severe, severe, toNativeValue, triggerRemoteEvent, triggerRemoteEvent, validateProp, warning, warning, warningMethods inherited from interface IPropCnr
canRequestFocus, canRequestFocus, couldRequestFocusIfVirtualized, couldRequestFocusIfVirtualized
Field Details
FILE_NAME
The file name of the PWA properties container: ".iiziPWA".- See Also:
ATOM
The atom for the PWA properties container: "$pwa".ICON_PROPNAME
The property name of the master icon asset reference: "icon". Required: a square PNG of at leastPWAIcons.MASTER_MIN_SIZEpx.- See Also:
ICON_MASKABLE_PROPNAME
The property name of the optional maskable icon asset reference: "iconMaskable". An opaque image; transparency is a WARNING (Android fills its mask with the icon).- See Also:
ICON_MONOCHROME_PROPNAME
The property name of the optional monochrome icon asset reference: "iconMonochrome". Its alpha is the shape.- See Also:
ICON_APPLE_PROPNAME
The property name of the optional Apple touch icon asset reference: "iconApple". An opaque image; transparency is a WARNING (iOS shows it black).- See Also:
CATEGORY_PROPNAME
The property name of the category: "category", an index into the iiziRun page's list (1 = Business .. 21 = Weather, ascom.iizigo.runlists them); 0 or absent for none.- See Also:
ORIENTATION_PROPNAME
The property name of the orientation: "orientation", an index intoPWAManifest.ORIENTATIONS; 0 or absent for none.- See Also:
Constructor Details
PWAProps
public PWAProps()Creates a PWAProps container without name and with a null value.PWAProps
Creates a PWAProps container with the specified name with a null value.- Parameters:
propertyAtom- the property atom.
Method Details
clone
getIconReference
Gets the master icon reference.- Returns:
- The asset reference, or
nullif not defined.
getIconMaskableReference
Gets the maskable icon reference.- Returns:
- The asset reference, or
nullif not defined.
getIconMonochromeReference
Gets the monochrome icon reference.- Returns:
- The asset reference, or
nullif not defined.
getIconAppleReference
Gets the Apple touch icon reference.- Returns:
- The asset reference, or
nullif not defined.
getCategory
public int getCategory()Gets the category index of the iiziRun page's list.- Returns:
- The index, 1 = Business .. 21 = Weather, or 0 for none.
getOrientation
public int getOrientation()Gets the orientation index.- Returns:
- The index into
PWAManifest.ORIENTATIONS, or 0 for none.
resolveIcon
Resolves a referenced icon file: the reference's resolved target, else a lookup through the tree the reference sits in.- Parameters:
ref- The reference, or null.- Returns:
- The file, or null when the reference is absent or not found.
readIcon
Reads the bytes of a referenced icon file, as the Designer and a development server can: through the URL of the resolved asset.- Parameters:
ref- The reference, or null.- Returns:
- The bytes, or null when the reference is absent, unresolved or the file cannot be read.
verify
Verifies this property container (ruling PX-1, strict since the container's presence makes the application installable): the master icon must be set, resolved, a PNG, square and at least 512 x 512 (each an ERROR); a maskable or Apple touch icon with transparency is a WARNING naming the platform rule; an optional icon that is set must resolve to a PNG (ERROR). The category and the orientation need no check: the page offers the lists.