Package com.iizix.prop
Class CSSAssetReferences
java.lang.Object
com.iizix.prop.GProp<String>
com.iizix.prop.StringProp
com.iizix.prop.AssetReferences
com.iizix.prop.CSSAssetReferences
- All Implemented Interfaces:
EventListener,IGProp<String>,IReferencingGProp,Cloneable
CSS file references in the assets module folder.
- Author:
- Christopher Mindus
Field Summary
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_INCLUDE_PRIVATE, EQC_SAVE_FILE, EXT_CONTAINER_EXTENDS, EXT_CONTAINER_EXTENDS_VALID, EXT_EXTENDED, EXT_FINAL, EXT_OVERRIDES, EXT_OVERRIDES_FINAL_ERR, EXT_PRIVATEConstructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreates a Asset References property with no name and with a null value.CSSAssetReferences(Atom propertyAtom) Creates a Asset References property with the specified name with a null value.Method Summary
Modifier and TypeMethodDescriptionclone()Clone.protected StringgetErrorMessage(String fullPathOrURL) Gets the error message for an invalid file extension.protected StringThe file type description.protected booleanValidates each asset file for correct file extension.voidsendCustomCSS(int cacheOperation, IPropMgrInfoProvider infoProvider, ITransactionCreator transCreator, ITransactionSender sender) Send custom CSS to client upon start.Methods inherited from class com.iizix.prop.AssetReferences
assignServerAppFiles, equalsErrors, fireChanged, fixedClientResourceURLs, getAllFiles, getDirectReferencedTarget, getDirectReferencedTargetFiles, getDirectReferencedTargetSet, getReferenceType, getResourceReferences, isReferencingMultipleTargets, onEventSelf, onProjectNameChanged, onPropDispose, onReferenceEvent, verifyMethods inherited from class com.iizix.prop.StringProp
appendPropValue, getPropValue0, getString, getString, getValueClasses, initializeValue, setPropValue, toNativeValue0, validatePropTypeMethods inherited from class com.iizix.prop.GProp
addPropError, addPropListener, appendProp, convertPropError, dispose, equals, equals, equalsObj, equalsPropValue, equalsTree, 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, 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, isSibling, list, list, list, list, list, mapAliasToReference, mapAliasToReference, mapReferenceToAlias, mapReferenceToAlias, mapReferenceToProjectRelative, modifyPropValue, moveProp, moveProp, moveProp, onEvent, onPrepare, onPropInvalidateCache, onPropParentChanged, onPropTreeInitialized, onPropValueSet, 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, virtualize, warning, warning, warningMethods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.iizix.prop.IReferencingGProp
getParent, getReferencingOwner
Constructor Details
CSSAssetReferences
protected CSSAssetReferences()Creates a Asset References property with no name and with a null value.CSSAssetReferences
Creates a Asset References property with the specified name with a null value.- Parameters:
propertyAtom- the property atom.
Method Details
clone
Clone.- Overrides:
clonein classAssetReferences- Returns:
- The cloned instance.
sendCustomCSS
public void sendCustomCSS(int cacheOperation, IPropMgrInfoProvider infoProvider, ITransactionCreator transCreator, ITransactionSender sender) Send custom CSS to client upon start.- Parameters:
cacheOperation- The cache operation: 0=don't cache, 1=cache upon use, 2=cache at start.infoProvider- The informtion provider.transCreator- The creator of send transactions.sender- Sends client transactions.
getFileTypeDescr
The file type description.- Specified by:
getFileTypeDescrin classAssetReferences- Returns:
- The file type description, e.g. .
isValidFileExtension
Validates each asset file for correct file extension.- Specified by:
isValidFileExtensionin classAssetReferences- Parameters:
ext- The asset file extension to verify, without the "." prefix, meaning if there is no file extension, then an empty string is passed.- Returns:
trueif extension is valid,falseotherwise.
getErrorMessage
Gets the error message for an invalid file extension.- Specified by:
getErrorMessagein classAssetReferences- Parameters:
fullPathOrURL- The full file name or URL path.- Returns:
- The error message.