Package com.iizigo.prop.editor
Class VSRelativeReferencePropEditor
java.lang.Object
com.iizigo.prop.BaseEditor<VSRelativeReference<?>,String> 
com.iizigo.prop.editor.VSRelativeReferencePropEditor
- All Implemented Interfaces:
- IThemeListener,- IEditedPropControllerOwner<VSRelativeReference<?>,,- String> - IEditedPropertyEntry<VSRelativeReference<?>,,- String> - IEditedPropertyEntryMultiProp<VSRelativeReference<?>,,- String> - IPropertyDefined,- IDisposedPart
- Direct Known Subclasses:
- VSActionActorParticipantEditor
The VirtualSpace Reference property editor consists of a simple entry field and a more button to perform a selection.
- Author:
- Christopher Mindus
- Field SummaryFieldsModifier and TypeFieldDescription- protected Class<?>[]- protected Image- protected boolean- protected String- protected IzMenuItem- protected IzMenuItem- protected String- protected IzToolTip- protected String- protected String- Fields inherited from class com.iizigo.prop.BaseEditor- appUI, combo, control, controller, definedButton, display, editor, focusListener, hasBeenModified, info, more, multipleValueWarningInput, options, parent, propController, shell, text, validator, wasDefinedAtFocusGained
- Constructor SummaryConstructorsConstructorDescriptionDefault constructor called before createControls.
- Method SummaryModifier and TypeMethodDescription- protected voidCalled to build the menu.- protected void- create()Creates the property editor controls.- formatValue- (String value) Formats the value for user input as a String.- protected VSComponentGets the current property reference target.Gets the default defined value to set in the property when defined.- protected VSComponent- getReferenceTarget- (String relativeReference) Gets the current property reference target.- protected StringGets the tooltip text to display in the entry fields (not the one for property errors or validator).- protected StringGets the property value for a user input.- protected EditorVirtualSpace- getVirtualSpace- (int ask) Gets the VirtualSpace, prompted to create it perhaps, or connect.- protected static EditorVirtualSpace- getVirtualSpace- (Shell shell, int ask, IPropertyEditorController controller, EditedPropController<?, - ?> propController, Atom atom) Gets the VirtualSpace, prompted to create it perhaps, or connect.- protected void- onCreateMenu- (IzMenu menu, boolean isPost) Called to create the menu items.- protected voidCreates a action.- protected static void- onCreateVSColumn- (EditorVirtualSpace ns, IPropertyEditorController controller, EditedPropController<?, - ?> propController, Text text, VSRelativeReference<?> reference) Creates a column.- protected voidCreates a field.- protected voidCreates a table.- protected voidCalled when mouse is double-clicked in the text or combobox.- protected boolean- onGoto- (boolean doPerform) Goto reference.- protected void- onList()Called when the "more..." button is pressed.- void- onMore()Called when the "more..." button is pressed.- protected void- setToolTipText- (String msg) Sets the tooltip text.- protected void- setup()Override to provide user settings.- Methods inherited from class com.iizigo.prop.BaseEditor- assignMaster, beginProcessEvent, canProcessEvents, checkInput, createCCombo, createControls, createGridLayout, createIzMenu, createMoreButton, createMoreIzMenu, createText, dispose, doUndefineIfEmpty, doValueChangeConversion, endProcessEvent, getBaseEditor, getCurrentInput, getCurrentValue, getCurrentValues, getModifyListener, getNativeToolTip, getOption, getSelectionListener, getSeverity, getShell, getToolTipText2, hasFocus, initialize, isDisposed, isPropReadOnly, onDefine, onDispose, onError, onF4List, onFocusGained, onFocusLost, onReadOnly, onThemeChanged, onUndefined, onUpdate, setColors, setCurrentValue, setEditable, setFocus, setInput, setInputValue, setInputValueFromProp, showMenu, updateTooltip, validate
- Field Details- title
- moreText
- tooltipText
- itemDefined
- image
- classes
- isVSRootprotected boolean isVSRoot
- tip
- miSelect
- miGoto
 
- Constructor Details- VSRelativeReferencePropEditorpublic VSRelativeReferencePropEditor()Default constructor called before createControls.
 
- Method Details- setupprotected void setup()Override to provide user settings.
- createprotected void create()Creates the property editor controls.- Specified by:
- createin class- BaseEditor<VSRelativeReference<?>,- String> 
 
- buildMenuprotected void buildMenu()Called to build the menu.
- getVirtualSpaceGets the VirtualSpace, prompted to create it perhaps, or connect.- Parameters:
- ask- Question when -1, to connect or create, 0=connect, 1=create.
- Returns:
- null if canceled.
 
- getVirtualSpaceprotected static EditorVirtualSpace getVirtualSpace- (Shell shell, int ask, IPropertyEditorController controller, EditedPropController<?, - ?> propController, Atom atom) Gets the VirtualSpace, prompted to create it perhaps, or connect.- Parameters:
- ask- Question when -1, to connect or create, 0=connect, 1=create.
- Returns:
- null if canceled.
 
- onCreateVSFieldprotected void onCreateVSField()Creates a field.
- onCreateVSTableprotected void onCreateVSTable()Creates a table.
- onCreateVSActionprotected void onCreateVSAction()Creates a action.
- onCreateVSColumnprotected static void onCreateVSColumn- (EditorVirtualSpace ns, IPropertyEditorController controller, EditedPropController<?, - ?> propController, Text text, VSRelativeReference<?> reference) Creates a column.
- onCreateMenuCalled to create the menu items.
- onMorepublic void onMore()Called when the "more..." button is pressed. Override to display dialog box.- Overrides:
- onMorein class- BaseEditor<VSRelativeReference<?>,- String> 
 
- onListprotected void onList()Called when the "more..." button is pressed. Override to display dialog box.
- onDoubleClickCalled when mouse is double-clicked in the text or combobox. Overridden to check if Goto reference is enabled, and if so goes there.- Overrides:
- onDoubleClickin class- BaseEditor<VSRelativeReference<?>,- String> 
 
- onGotoprotected boolean onGoto- (boolean doPerform) Goto reference.
- getCurrentReferenceTargetGets the current property reference target. This reference is retrieved from the current input. If the path contains "Module:/", it is assumed to be a hard path. Otherwise the- getBaseReferencePath()is prepended.
- getReferenceTargetGets the current property reference target. This reference is retrieved from the current input. If the path contains "Module:/", it is assumed to be a hard path. Otherwise the- getBaseReferencePath()is prepended.
- getToolTipTextGets the tooltip text to display in the entry fields (not the one for property errors or validator).- Specified by:
- getToolTipTextin class- BaseEditor<VSRelativeReference<?>,- String> 
 
- setToolTipTextSets the tooltip text. The default is to apply the getToolTipText() text to the edit control.- An attempt to show the tooltip of the reference target's DesignerProp tooltip is done. - Overrides:
- setToolTipTextin class- BaseEditor<VSRelativeReference<?>,- String> 
- Parameters:
- msg- Message in tooltip (normally error), null for none, in which case the getToolTipText2() is used.
 
- getDefaultValueGets the default defined value to set in the property when defined.- Specified by:
- getDefaultValuein interface- IEditedPropControllerOwner<VSRelativeReference<?>,- String> 
- Specified by:
- getDefaultValuein class- BaseEditor<VSRelativeReference<?>,- String> 
 
- getValueGets the property value for a user input.- Specified by:
- getValuein class- BaseEditor<VSRelativeReference<?>,- String> 
- Parameters:
- input- The current user input.
- Returns:
- The property value for the input, or null to un-define the property.
 
- formatValueFormats the value for user input as a String.- Specified by:
- formatValuein interface- IEditedPropControllerOwner<VSRelativeReference<?>,- String> 
- Specified by:
- formatValuein class- BaseEditor<VSRelativeReference<?>,- String> 
- Parameters:
- value- The value.
- Returns:
- The formatted value.