public class EditorVirtualSpace extends VirtualSpace implements IPropUndoContext, IExtendsSelection, IJavaClassLinkEnabler, IJavaMethodLinkEnabler, IUICreationFromVS
IVSComponentState.State
IMessageBox.Icon
Modifier and Type | Field and Description |
---|---|
static EditorVirtualSpace |
NONE
The "NONE" VirtualSpace.
|
MAP_CLASS_PROP_NAME, participantsHolder
EMPTY, EMPTY_CLASSES, EMPTY_CNRS, EXTENDS_FRAMEWORK_ERROR_ID
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
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
STATUS_LINK_NOT_SUPPORTED
ERROR, INFORMATION, PN_IGNORE_UI_FOCUS, WARNING
ICON_ERROR, ICON_INFORMATION, ICON_MAP, ICON_NONE, ICON_QUESTION, ICON_WARNING
Constructor and Description |
---|
EditorVirtualSpace()
Creates the VirtualSpace property container without a name.
|
EditorVirtualSpace(Atom propertyAtom)
Creates the VirtualSpace property container with the specified name.
|
Modifier and Type | Method and Description |
---|---|
void |
addCreateUILinkOperations(LinkData data,
Collection<ILinkOperation> linkOps)
Adds all possible operations that could be done in a link operation for UI creation from VS.
|
boolean |
canCreateUI(LinkData data)
Method returning if this property could potentially be (action, field or table) or
contain (group) properties that can create UI components when drag-dropped.
|
EditorVirtualSpace |
clone()
Clone must be overridden.
|
String |
createVSComponents(List<VSComponentCreation<?>> list,
ComplexOperation op)
Creates the list of VS components required.
|
protected VSParticipantsHolder |
createVSParticipantsHolder()
Creates a new instance of the EditorVSParticipantsHolder.
|
EditorClassReference |
getClassReference()
Gets the ClassReference in the property container from the ClassReference instance.
|
EditorClassReference |
getClassReference(String id,
boolean doCreateIfNotPresent)
Gets or creates the ClassReference in the property container.
|
VirtualSpaceDesignerProp |
getDesigner()
Gets the Designer Extension for Properties.
|
Class<?>[] |
getExtendsPossibleClasses()
Gets the possible classes this container supports for the Extends Framework.
|
IJavaClassLinkEnabler |
getJavaClassLinkEnabler()
Gets the instance that links to the class.
|
Collection<ILinkOperation> |
getLinkOperations(LinkData data)
Called when the drag-drop is to be performed (link or paste-link menu item).
|
AnnotationType[] |
getMethodReferenceAnnotationTypes()
Returns the annotation types for the method reference(s).
|
MementoPropCnr |
getPersistentMemento(boolean doCreate)
Gets the memento used to save the editor in this property.
|
Class<?>[] |
getPossibleChildren()
Gets the acceptable children property classes that can be used in conjunction with e.g.
|
String |
getRelativeMethodAnnotationReference()
Gets the annotation relative reference to the element.
|
String |
getSelectPropDialogTitle()
Gets the title for selection dialog.
|
ViewerFilter |
getSelectPropViewerFilter()
Gets the viewer filter for the tree in the dialog for selecting extends property name.
|
IUndoContext |
getUndoContext()
Gets the undo context.
|
EditorVirtualSpace |
getVirtualSpace()
Gets the VirtualSpace.
|
IStatus |
isLinkCapable(LinkData data)
Returns if this property container could potentially be link capable.
|
void |
verify(PropVerification verification)
Verifies this property container.
|
addPredefinedProps, areFree, areFree2, canRequestFocus, couldRequestFocusIfVirtualized, createVSReference, doVirtualizePropCnr, forbiddenGetCustomDataMap, getAction, getAction2, getActionNull, getActionNull2, getAppSessionGyro, getAttachedVirtualizedPanels, getClassReferenceAtom, getClassReferenceImplementsInterface, getClassReferenceRequiredAnnotation, getClientSessionGyro, getField, getField2, getFieldNull, getFieldNull2, getFocusHandler, getGroup, getGroup2, getGroupNull, getGroupNull2, getNonVirtualized, getParticipantsHolder, getPredefinedProps, getPrivateStorageMap, getTable, getTable2, getTableNull, getTableNull2, getVirtualized, getVirtualized, getVirtualizedVirtualSpace, getVSComponent, getVSComponent2, getVSComponentNull, getVSComponentNull2, getVSReference, invokeOnVSActionMethod, invokeOnVSChangedMethod, invokeOnVSCreateMethod, invokeOnVSDestroyMethod, invokeOnVSFocusMethod, invokeOnVSStateMethod, isClassReferenceAnnotationBackReferenceRequired, isFree, onEventSelf, onFocusGained, onFocusLost, onPanelDestroyed, onPanelVirualized, onParentStateChanged, onPrepare, onPropDispose, onRemoteEvent, onVirtualizationCompleted, virtualize, virtualize
__transferChildProps, addProp, addProp, addProp2, addProp2, appendPropValue, canRequestFocus, completeVirtualize, containsProp, containsProp, convertLoadedProp, couldRequestFocusIfVirtualized, createCopyOfAtom, createUniqueAtom, createUniqueAtom, createUniqueAtom, 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, getFirstProp, getFirstProp, getFocusEngine, getInt, getInt, getInt, getInt, getLong, getLong, getLong, getLong, getNumber, getNumber, getNumber, getNumber, getProp, getProp, getProp, getProp, getProp, getProp, getProp, getProp, getProp, getPropBaseReference, getPropCnr, getPropCount, getPropIndex, getPropIndex, getPropIndexes, getProps, getProps, getPropValue, getPropValue, getPropValue, getPropValue, getPropValue, getPropValue, getPropValue, getPropValue0, getReferences, getRetargetedVerifyContainer, getString, getString, getString, getString, getValueClasses, hasFocus, hasSendData, initializeElement, initializeExtendsFramework, initializeProp, initializeValue, initPropCnr, insertProp, insertProp2, isChild, isExtendsOverriden, isExtendsPropertyValid, isExtendsRoot, isPropAddRemoveAllowed, isPropCommunicating, isPropExtended, isSibling, list, list, logPropNotFound, maybeAddProp, onInsertProp, onPropRemoved, onPropTreeInitialized, onReferenceEvent, paramString, prepare, removeAllProps, removeProp, removeProp, removeProp, removeProp, removeProp, removeProp, removeProp, 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, toElementString, toNativeValue0, usePropHashMap, usesPropIndex, validateChildPropInValue, validateClassInstances, validatePropType, validatePropValue, verifyInternalUseOnly, verifyTree
addPropError, addPropListener, convertPropError, dispose, equals, equals, equalsErrors, equalsObj, equalsPropValue, equalValues, extendsClone, finalize, fine, fine, finer, finer, finest, finest, fromElementString, getAliasName, getAppWorker, getAtomPath, getAttribute, getChildReferencePropName, getClientWorker, getConstraints, getEnvironment, getErroredPropItems, getErroredProps, getErrorsProp, getExtendsRootContainer, getFullPropName, getFullPropName, getFullPropNameDebug, getFullPropNameDebug, getListeners, 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, onPropInvalidateCache, onPropParentChanged, onPropValueSet, 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
getClass, hashCode, notify, notifyAll, wait, wait, wait
addClassLinkOperations, isClassLinkCapable
findIResource, getAdapter
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, getFirstProp, getFirstProp, getFocusEngine, getInt, getInt, getInt, getInt, getLong, getLong, getLong, getLong, getNumber, getNumber, getNumber, getNumber, 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, removeProp, removeProp, removeProp, removeProp, removeProp, removeProp, removeProp, 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
addPropError, addPropListener, dispose, equals, fine, fine, finer, finer, finest, finest, fromElementString, getAppSessionGyro, getAtomPath, getClientSessionGyro, getConstraints, getEnvironment, getErroredPropItems, getErroredProps, getErrorsProp, getExtendsRootContainer, getFullPropName, getFullPropNameDebug, 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, onEventSelf, 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, verifyHasPropertyItem, warning, warning, warning
getClassReferenceAtom, getClassReferenceImplementsInterface, getClassReferenceRequiredAnnotation, getRuntimeClassInstance, getRuntimeClassInstance, isClassReferenceAnnotationBackReferenceRequired
addMethodLinkOperations, isMethodLinkCapable
getDragDropText
getDragDropHTML
clearMessage, getMessage, getMessageCategory, getMessageString, isValid, setErrorMessage, setMessage, setMessage
getDescription, getVSRef, isEnabled, isEnabledInParent, isReadOnly, isReadOnlyInParent, isSelected, isVisible, isVisibleInParent, messageBox, setEnabled, setEnabled, setIgnoreFocusFromUI, setReadOnly, setReadOnly, setSelected, setSelected, setVirtualizeSupportFocus, setVirtualizeSupportFocus, setVisible, setVisible, shouldIgnoreFocusFromUI
requestFocus, requestFocus, requestFocusEx, requestFocusEx
getCustomData, putCustomData, putCustomDataIfAbsent
messageBox, messageBox
getPrivateData, setPrivateData
public static final EditorVirtualSpace NONE
public EditorVirtualSpace()
setPropertyAtom
call.public EditorVirtualSpace(Atom propertyAtom)
propertyAtom
- the name of the component, unique within it's parent.public EditorVirtualSpace getVirtualSpace()
getVirtualSpace
in interface IUICreationFromVS
getVirtualSpace
in interface IVSAccessor
getVirtualSpace
in interface IVSComponent
getVirtualSpace
in class VirtualSpace
protected VSParticipantsHolder createVSParticipantsHolder()
createVSParticipantsHolder
in class VirtualSpace
public EditorClassReference getClassReference()
getClassReference
in class VirtualSpace
public EditorClassReference getClassReference(String id, boolean doCreateIfNotPresent)
getClassReference
in interface IJavaClassLinkEnabler
getClassReference
in interface IClassReferenceOwner
getClassReference
in class VirtualSpace
id
- ID for the class reference if several exist, null for default.doCreateIfNotPresent
- Flag to create the property (this flag can only be true in Designer)!public VirtualSpaceDesignerProp getDesigner()
getDesigner
in interface IPropDesigner
public IUndoContext getUndoContext()
getUndoContext
in interface IPropUndoContext
public EditorVirtualSpace clone()
clone
in class VirtualSpace
public Class<?>[] getPossibleChildren()
getPossibleChildren
in interface IPropCnr
getPossibleChildren
in class PropCnr
public MementoPropCnr getPersistentMemento(boolean doCreate)
doCreate
- The create flag if it didn't exist before.IMemento
,
or null if this container is disposed of.public Class<?>[] getExtendsPossibleClasses()
getExtendsPossibleClasses
in interface IPropCnr
getExtendsPossibleClasses
in class PropCnr
public String getSelectPropDialogTitle()
getSelectPropDialogTitle
in interface IExtendsSelection
public ViewerFilter getSelectPropViewerFilter()
getSelectPropViewerFilter
in interface IExtendsSelection
public AnnotationType[] getMethodReferenceAnnotationTypes()
getMethodReferenceAnnotationTypes
in interface IJavaMethodLinkEnabler
public String getRelativeMethodAnnotationReference()
getRelativeMethodAnnotationReference
in interface IJavaMethodLinkEnabler
public IJavaClassLinkEnabler getJavaClassLinkEnabler()
getJavaClassLinkEnabler
in interface IJavaMethodLinkEnabler
public IStatus isLinkCapable(LinkData data)
This call is done many times during drag-drop and must be very fast and not cause too much garbage collection.
isLinkCapable
in interface ILinkCapable
isLinkCapable
in interface IJavaClassLinkEnabler
isLinkCapable
in interface IJavaMethodLinkEnabler
isLinkCapable
in interface IUICreationFromVS
data
- The link data.public Collection<ILinkOperation> getLinkOperations(LinkData data)
getLinkOperations
in interface ILinkCapable
getLinkOperations
in interface IJavaClassLinkEnabler
getLinkOperations
in interface IJavaMethodLinkEnabler
getLinkOperations
in interface IUICreationFromVS
data
- The link data.public boolean canCreateUI(LinkData data)
The VirtualSpace recurses down its VS components to query them for creation support.
canCreateUI
in interface IUICreationFromVS
data
- The link data.public void addCreateUILinkOperations(LinkData data, Collection<ILinkOperation> linkOps)
The VirtualSpace recurses down its VS components so that they can add what is required.
addCreateUILinkOperations
in interface IUICreationFromVS
data
- The link data.linkOps
- List of link operations is filled in when operations are found.public String createVSComponents(List<VSComponentCreation<?>> list, ComplexOperation op)
list
- The list of components.op
- The complex operation.public void verify(PropVerification verification)
iizi® is a registered trademark of Mindus SARL. © Copyright Mindus SARL, 2020. All rights reserved.