Package com.iizigo.prop.editor
Class VSTableColumnReferencePropEditor
java.lang.Object
com.iizigo.prop.BaseEditor<VSRelativeReference<?>,String>
com.iizigo.prop.editor.VSTableColumnReferencePropEditor
- All Implemented Interfaces:
IThemeListener,IEditedPropControllerOwner<VSRelativeReference<?>,,String> IEditedPropertyEntry<VSRelativeReference<?>,,String> IEditedPropertyEntryMultiProp<VSRelativeReference<?>,,String> IPropertyDefined,IDisposedPart
The VirtualSpace Reference property editor consists of a simple entry field and a more button to perform a selection.
- Author:
- Christopher Mindus
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Class<?>[]protected Imageprotected Stringprotected IzMenuprotected IzMenuItemprotected IzMenuItemprotected Stringprotected IzToolTipprotected Stringprotected StringFields 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, wasDefinedAtFocusGainedConstructor Summary
ConstructorsConstructorDescriptionDefault constructor called before createControls.Method Summary
Modifier and TypeMethodDescriptionprotected voidcreate()Creates the property editor controls.formatValue(String value) Formats the value for user input as a String.protected VSColumnHeaderGets the current property reference target.Gets the default defined value to set in the property when defined.protected VSColumnHeadergetReferenceTarget(String columnName) 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 EditorVirtualSpacegetVirtualSpace(int ask) Gets the VirtualSpace, prompted to create it perhaps, or connect.protected voidonCreateMenu(IzMenu menu, boolean isPost) Called to create the menu items.protected voidCalled when mouse is double-clicked in the text or combobox.protected booleanonGoto(boolean doPerform) Goto reference.protected booleanonList(boolean doPerform) Called when the "more..." button is pressed.voidonMore()Called when the "more..." button is pressed.protected voidsetToolTipText(String msg) Sets the tooltip text.protected voidsetup()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
tip
miSelect
miGoto
Constructor Details
VSTableColumnReferencePropEditor
public VSTableColumnReferencePropEditor()Default constructor called before createControls.
Method Details
setup
protected void setup()Override to provide user settings.create
protected void create()Creates the property editor controls.- Specified by:
createin classBaseEditor<VSRelativeReference<?>,String>
getVirtualSpace
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.
onCreateMenu
Called to create the menu items.onDoubleClick
Called 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 classBaseEditor<VSRelativeReference<?>,String>
onMore
public void onMore()Called when the "more..." button is pressed. Override to display dialog box.- Overrides:
onMorein classBaseEditor<VSRelativeReference<?>,String>
onList
protected boolean onList(boolean doPerform) Called when the "more..." button is pressed. Override to display dialog box.onGoto
protected boolean onGoto(boolean doPerform) Goto reference.getCurrentReferenceTarget
Gets 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 thegetBaseReferencePath()is prepended.getReferenceTarget
Gets 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 thegetBaseReferencePath()is prepended.getToolTipText
Gets the tooltip text to display in the entry fields (not the one for property errors or validator).- Specified by:
getToolTipTextin classBaseEditor<VSRelativeReference<?>,String>
setToolTipText
Sets 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 classBaseEditor<VSRelativeReference<?>,String> - Parameters:
msg- Message in tooltip (normally error), null for none, in which case the getToolTipText2() is used.
getDefaultValue
Gets the default defined value to set in the property when defined.- Specified by:
getDefaultValuein interfaceIEditedPropControllerOwner<VSRelativeReference<?>,String> - Specified by:
getDefaultValuein classBaseEditor<VSRelativeReference<?>,String>
getValue
Gets the property value for a user input.- Specified by:
getValuein classBaseEditor<VSRelativeReference<?>,String> - Parameters:
input- The current user input.- Returns:
- The property value for the input, or null to un-define the property.
formatValue
Formats the value for user input as a String.- Specified by:
formatValuein interfaceIEditedPropControllerOwner<VSRelativeReference<?>,String> - Specified by:
formatValuein classBaseEditor<VSRelativeReference<?>,String> - Parameters:
value- The value.- Returns:
- The formatted value.