Package com.iizigo.prop.editor
Class BaseReferencePropEditor
- All Implemented Interfaces:
IThemeListener
,IEditedPropControllerOwner<AbstractReference<IPropCnr>,
,ReferenceString> IEditedPropertyEntry<AbstractReference<IPropCnr>,
,ReferenceString> IEditedPropertyEntryMultiProp<AbstractReference<IPropCnr>,
,ReferenceString> IPropertyDefined
The Base Reference property editor consists of a simple entry field.
- Author:
- Christopher Mindus
Field Summary
Fields inherited from class com.iizigo.prop.editor.ReferencePropEditor
alternateExpansionLevel, alternateSelection, classes, filter, filterClass, image, menu, miGoto, miSelect, SELECT_MESSAGE, selectionRoot, TEXT_MESSAGE, tip
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 Summary
Method Summary
Modifier and TypeMethodDescriptionprotected String
getLookupPropReference
(String name) Creates the reference string to look-up from the ReferenceString.protected PropCnr
Gets the base property reference to use as selection root for a property container.protected String
setLookedUpReference
(String name) Sets the reference found that also has been validated.protected void
setup()
Override to provide user settings.Methods inherited from class com.iizigo.prop.editor.ReferencePropEditor
addDropSupport, create, formatValue, getBaseReferencePath, getCurrentReferenceTarget, getDefaultValue, getToolTipText, getValue, onCreateMenu, onDoubleClick, onGoto, onList, setToolTipText
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, isPropReadOnly, onDefine, onDispose, onError, onF4List, onFocusGained, onFocusLost, onMore, onReadOnly, onThemeChanged, onUndefined, onUpdate, setColors, setCurrentValue, setEditable, setFocus, setInput, setInputValue, setInputValueFromProp, showMenu, updateTooltip, validate
Constructor Details
BaseReferencePropEditor
public BaseReferencePropEditor()Default constructor called before createControls.
Method Details
setup
protected void setup()Override to provide user settings.- Overrides:
setup
in classReferencePropEditor<IPropCnr>
getSelectionBaseProp
Gets the base property reference to use as selection root for a property container. This could be e.g. from getPropBaseReference() or the VS parents for VS relative references.Override as required.
getLookupPropReference
Creates the reference string to look-up from the ReferenceString. Override this method for e.g. Base or Fixed Relative referencing.- Overrides:
getLookupPropReference
in classReferencePropEditor<IPropCnr>
- Parameters:
name
- The reference name.- Returns:
- The property reference string to look-up.
setLookedUpReference
Sets the reference found that also has been validated. This method gives the opportunity for a subclass to remove e.g. the Base or Fixed Relative reference from the string start.- Overrides:
setLookedUpReference
in classReferencePropEditor<IPropCnr>
- Parameters:
name
- The full reference.- Returns:
- The reference to set in this property as ReferenceString.