Package com.iizigo.text.prop
Class EditorTextTable
- java.lang.Object
- com.iizix.prop.GProp<GProp<?>[]>
- com.iizix.prop.PropCnr
- com.iizix.prop.TextTable
- com.iizigo.text.prop.EditorTextTable
- All Implemented Interfaces:
IFilePropChangeListener<java.lang.Object>
,IPropDesigner
,IPropUndoContext
,EventListener
,IGProp<GProp<?>[]>
,IPropCnr
,IReferenceOwner<TextTable>
,ITextTableReferenceOwner
,java.lang.Cloneable
,org.eclipse.core.runtime.IAdaptable
public class EditorTextTable extends TextTable implements IPropDesigner, IPropUndoContext, IFilePropChangeListener<java.lang.Object>
This Selector property container for the Editor.
Field Summary
Fields Modifier and Type Field Description static EditorTextTable[]
EMPTY_ARRAY
An empty array.Fields inherited from class com.iizix.prop.TextTable
AUTO_TRANSLATE_FROM, AUTO_TRANSLATE_TO, MUST_DEFINE, VERIFY
Fields inherited from class com.iizix.prop.PropCnr
EMPTY, EMPTY_CLASSES, EMPTY_CNRS, EXTENDS_FRAMEWORK_ERROR_ID
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 Summary
Constructors Constructor Description EditorTextTable()
Creates the screen identification property container without a name.EditorTextTable(Atom propertyAtom)
Creates the screen identification property container with the specified name.
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description EditorTextTable
clone()
Clone must be overridden.java.lang.String
externalizeText(KString text, IComplexOperation op)
Externalizes the specified text.java.lang.String
externalizeText(java.lang.String text, IComplexOperation op)
Externalizes the specified text.int
externalizeTexts(boolean doPerform, java.util.List<ITextExternalizableProp<?>> list, IComplexOperation op)
Externalizes all the specified properties.java.lang.String
getBaseID()
Gets the base ID for externalized texts.EditorTextTable
getDerives()
Gets the text table that is derived.TextTableDesignerProp
getDesigner()
Gets the Designer Extension for Properties.MementoPropCnr
getPersistentMemento(boolean doCreate)
Gets the memento used to save the editor in this property.org.eclipse.core.commands.operations.IUndoContext
getUndoContext()
Gets the undo context.static boolean
hasCircularReference(EditorTextTable textTable, GProp<?> anyProp, java.lang.String ref)
Circular reference validation for Text Tables.void
onEventSelf(GEvent event)
Checks for state change events and fires it to listeners.java.lang.Object
onFileAboutToChange()
Called prior to changes enabling data container to save what has changed.void
onFileChangesCompleted(java.lang.Object beforeChanges)
Called when all the data container's properties have been removed and new ones added back into the data container.Methods inherited from class com.iizix.prop.TextTable
getAllDerivedTextTablesRecursive, getAllLanguageCodesRecursive, getAllLanguagesMapRecursive, getDerivedTextTable, getDerivedTextTableRecursive, getDerivedTextTables, getDerivesReference, getDescription, getKStringProp, getKStringProp, getLanguageCode, getLanguageDescription, getPlainTextID, getPlainTextID, getPlainTextID, getText, getTextID, getTextID, getTextID, getTextID, getTextProp, getTextProp, hasLanguageCode, isAutomaticTranslationFromTableEnabled, isAutomaticTranslationToTableEnabled, isEntryVerificationEnabled, isLanguageCodeSupportedRecursive, isTableDerived, mustDefineDerivedEntries, onBroken, onResolved, setAutomaticTranslationFromTableEnabled, setAutomaticTranslationToTableEnabled, setDescription, setEntryVerificationEnabled, setLanguageCode, setMustDefineDerivedEntries
Methods inherited from class com.iizix.prop.PropCnr
__transferChildProps, addPredefinedProps, addProp, addProp, addProp2, addProp2, appendPropValue, canRequestFocus, completeVirtualize, containsProp, containsProp, convertLoadedProp, couldRequestFocusIfVirtualized, createCopyOfAtom, createUniqueAtom, createUniqueAtom, createUniqueAtom, createVSReference, doPropEqualsArrayValues, doVirtualizePropCnr, 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, getReferences, getRetargetedVerifyContainer, getString, getString, getString, getString, getValueClasses, getVSReference, hasFocus, hasSendData, initializeElement, initializeExtendsFramework, initializeProp, initializeValue, initPropCnr, insertProp, insertProp2, isChild, isExtendsOverriden, isExtendsPropertyValid, isExtendsRoot, isPropAddRemoveAllowed, isPropCommunicating, isPropExtended, isSibling, list, list, logPropNotFound, maybeAddProp, onInsertProp, onPropDispose, onPropRemoved, onPropTreeInitialized, onReferenceEvent, 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, virtualize
Methods inherited from class com.iizix.prop.GProp
addPropError, addPropListener, convertPropError, dispose, equals, equals, equalsErrors, equalsObj, equalsPropValue, 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, getPropError, getPropError, getPropErroredName, getPropErrorSeverity, getPropExtendsFlags, getPropFromPath, getPropFromPath, getPropFromReference, getPropFromReference, getPropIndex, getPropName, getPropPath, getPropPath, getPropReferenceTarget, getPropRootPropMgr, getPropTreeErrorSeverity, getPropValue, getPropValue, getPropValueObject, getReferencePropName, getRelativePropName, getRootFromName, getRootName, getRootParent, getRootParent, getTreeLock, hasChanged, hasPrivateChangeEventProp, hasPropError, hasPropTreeError, info, info, initializeGElement, initializeGProp, isDisposed, isPropChildOf, isPropClientCreated, isPropCreateRequired, isPropExtended, isPropExtendsFinal, isPropExtendsPrivate, isPropExtendsPrivateInRoot, isPropExtendsPrivateInRoot, isPropFile, isPropFolder, isPropForEditor, isPropNullable, isPropPrivate, isPropPrivateAtCreation, isPropReadOnly, isPropReferenceTreeValid, isPropRoot, isPropUSER, isPropValueTreeLockNeeded, isPropVirtualized, isPropVirtualizing, isPropVolatile, isPropVolatileOrEditorOnly, isProxied, list, list, list, mapAliasToReference, mapAliasToReference, mapReferenceToAlias, mapReferenceToAlias, mapReferenceToProjectRelative, modifyPropValue, moveProp, moveProp, moveProp, onEvent, onPrepare, onPropInvalidateCache, onPropParentChanged, onPropValueSet, onRemoteEvent, onVirtualizationCompleted, onVirtualized, paramValue, post, post, removePropError, removePropListener, removePropUSER, renameProp, renameProp2, resetChangedTree, setChanged, setConstraints, setConstraints, setParent, setPrivateChangeEventProp, setPrivateCreateRequiredProp, setPropError, setPropErroredName, setPropExtended, setPropExtendsFinal, setPropExtendsPrivate, setPropForEditor, setPropNullable, setPropPrivate, setPropReadOnly, setPropUSER, setPropValue, setPropValue, setPropValue, setPropValueIncognito, setPropVolatile, severe, severe, severe, shouldSerializeToXML, throwIfReadOnly, toNativeValue, toString, toString, triggerRemoteEvent, triggerRemoteEvent, validateProp, verifyHasPropertyItem, warning, warning, warning
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.iizix.prop.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, getPropBaseReference, getPropError, getPropError, getPropErrorSeverity, getPropExtendsFlags, getPropFromPath, getPropFromReference, getPropIndex, getPropName, getPropPath, getPropPath, getPropRootPropMgr, getPropTreeErrorSeverity, getPropValue, getPropValue, getReferencePropName, getReferences, getRelativePropName, getRootParent, getTreeLock, getValueClasses, getVSReference, hasChanged, hasPrivateChangeEventProp, hasPropError, hasPropTreeError, info, info, initializeGElement, initializeGProp, isDisposed, isPropChildOf, isPropClientCreated, isPropCommunicating, isPropCreateRequired, isPropExtended, isPropExtendsFinal, isPropExtendsPrivate, isPropExtendsPrivateInRoot, isPropExtendsPrivateInRoot, isPropFile, isPropFolder, isPropNullable, isPropPrivate, isPropReadOnly, isPropReferenceTreeValid, isPropRoot, isPropVirtualized, 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, verifyHasPropertyItem, warning, warning, warning
Methods inherited from interface com.iizix.prop.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, isSibling, 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
Methods inherited from interface com.iizigo.prop.IPropDesigner
findIResource, getAdapter
Field Detail
EMPTY_ARRAY
public static final EditorTextTable[] EMPTY_ARRAY
An empty array.
Constructor Detail
EditorTextTable
public EditorTextTable()
Creates the screen identification property container without a name. The name must be set in all cases using thesetPropertyAtom
call.
EditorTextTable
public EditorTextTable(Atom propertyAtom)
Creates the screen identification property container 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 Detail
getDesigner
public TextTableDesignerProp getDesigner()
Gets the Designer Extension for Properties.- Specified by:
getDesigner
in interfaceIPropDesigner
- Returns:
- The instance of the Designer Extension.
getUndoContext
public org.eclipse.core.commands.operations.IUndoContext getUndoContext()
Gets the undo context.- Specified by:
getUndoContext
in interfaceIPropUndoContext
- Returns:
- The undo context for the Editor part(s) for this container.
clone
public EditorTextTable clone()
Clone must be overridden.
getPersistentMemento
public MementoPropCnr getPersistentMemento(boolean doCreate)
Gets the memento used to save the editor in this property.- Parameters:
doCreate
- Creation flag.- Returns:
- A property container that implements
IMemento
, or null if this container is disposed of.
getDerives
public EditorTextTable getDerives()
Gets the text table that is derived.- Overrides:
getDerives
in classTextTable
- Returns:
- The derived table, or null for none (or reference not found).
getBaseID
public java.lang.String getBaseID()
Gets the base ID for externalized texts.
externalizeText
public java.lang.String externalizeText(java.lang.String text, IComplexOperation op)
Externalizes the specified text.- Parameters:
text
- The text to externalize.op
- The complex operation, or null for no undo support.- Returns:
- The text ID for the externalized text.
externalizeText
public java.lang.String externalizeText(KString text, IComplexOperation op)
Externalizes the specified text.- Parameters:
text
- The text to externalize.op
- The complex operation, or null for no undo support.- Returns:
- The text ID for the externalized text.
externalizeTexts
public int externalizeTexts(boolean doPerform, java.util.List<ITextExternalizableProp<?>> list, IComplexOperation op)
Externalizes all the specified properties.- Parameters:
doPerform
- The do perform operation flag, false to test.list
- The list of externalizable properties.op
- The complex operation, or null for no undo support.- Returns:
- The count of changes.
onFileAboutToChange
public java.lang.Object onFileAboutToChange()
Called prior to changes enabling data container to save what has changed.- Specified by:
onFileAboutToChange
in interfaceIFilePropChangeListener<java.lang.Object>
- Returns:
- An Object that is passed into the
, null for none.onFileChangesCompleted(Object)
onFileChangesCompleted
public void onFileChangesCompleted(java.lang.Object beforeChanges)
Called when all the data container's properties have been removed and new ones added back into the data container.It is guaranteed that this method is called after changes, even if severe failures occurred.
- Specified by:
onFileChangesCompleted
in interfaceIFilePropChangeListener<java.lang.Object>
- Parameters:
beforeChanges
- The Object that was returned from the call to
, null for none.onFileAboutToChange()
onEventSelf
public void onEventSelf(GEvent event)
Checks for state change events and fires it to listeners.- Specified by:
onEventSelf
in interfaceIGProp<GProp<?>[]>
- Overrides:
onEventSelf
in classGProp<GProp<?>[]>
- Parameters:
event
- The property event.
hasCircularReference
public static boolean hasCircularReference(EditorTextTable textTable, GProp<?> anyProp, java.lang.String ref)
Circular reference validation for Text Tables.- Parameters:
textTable
- The text table, perhaps not added into the tree yet.anyProp
- Any property in the tree, for reference look-up's.ref
- The reference to validate.- Returns:
- true if circular references exist, false if OK.