Package com.iizigo.prop.editor
Class VSParticipantEditor
- All Implemented Interfaces:
IThemeListener
,IEditedPropControllerOwner<AbstractReference<IPropCnr>,
,ReferenceString> IEditedPropertyEntry<AbstractReference<IPropCnr>,
,ReferenceString> IEditedPropertyEntryMultiProp<AbstractReference<IPropCnr>,
,ReferenceString> IPropertyDefined
The VirtualSpace Participant (reference property) editor.
- Author:
- Christopher Mindus
Field Summary
Fields inherited from class com.iizigo.prop.editor.ReferencePropEditor
alternateExpansionLevel, alternateSelection, classes, filter, filterClass, image, 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 void
create()
Creates the property editor controls.Gets the user input.void
onDefine
(boolean on) Called when (un)defined.protected void
onDoubleClick
(org.eclipse.swt.widgets.Event e) Called when mouse is double-clicked in the text or combobox.void
onMore()
Called when the "more..." button is pressed.protected void
setEditable
(boolean on) Overridden to disable the entry field.protected void
setFocus()
Overridden to set focus.protected boolean
Provides entry feed-back to label.protected void
setup()
Override to provide user settings.Methods inherited from class com.iizigo.prop.editor.ReferencePropEditor
addDropSupport, formatValue, getBaseReferencePath, getCurrentReferenceTarget, getDefaultValue, getLookupPropReference, getToolTipText, getValue, onCreateMenu, onGoto, onList, setLookedUpReference, 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, getCurrentValue, getCurrentValues, getModifyListener, getNativeToolTip, getOption, getSelectionListener, getSeverity, getShell, getToolTipText2, hasFocus, initialize, isPropReadOnly, onDispose, onError, onF4List, onFocusGained, onFocusLost, onReadOnly, onThemeChanged, onUndefined, onUpdate, setColors, setCurrentValue, setInputValue, setInputValueFromProp, showMenu, updateTooltip, validate
Constructor Details
VSParticipantEditor
public VSParticipantEditor()Default constructor called before createControls.
Method Details
setup
protected void setup()Override to provide user settings.- Overrides:
setup
in classReferencePropEditor<IPropCnr>
setEditable
protected void setEditable(boolean on) Overridden to disable the entry field.- Overrides:
setEditable
in classBaseEditor<AbstractReference<IPropCnr>,
ReferenceString>
setFocus
protected void setFocus()Overridden to set focus.- Overrides:
setFocus
in classBaseEditor<AbstractReference<IPropCnr>,
ReferenceString>
create
protected void create()Creates the property editor controls. Overridden to make entry field read-only and double-click to select.- Overrides:
create
in classReferencePropEditor<IPropCnr>
onMore
public void onMore()Called when the "more..." button is pressed. Override to display dialog box.- Overrides:
onMore
in classBaseEditor<AbstractReference<IPropCnr>,
ReferenceString>
onDoubleClick
protected void onDoubleClick(org.eclipse.swt.widgets.Event e) 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:
onDoubleClick
in classReferencePropEditor<IPropCnr>
setInput
Provides entry feed-back to label.- Overrides:
setInput
in classBaseEditor<AbstractReference<IPropCnr>,
ReferenceString> - Parameters:
input
- The new input, or null for no change.- Returns:
- true for changed, false for no change.
getCurrentInput
Gets the user input.- Specified by:
getCurrentInput
in interfaceIEditedPropControllerOwner<AbstractReference<IPropCnr>,
ReferenceString> - Overrides:
getCurrentInput
in classBaseEditor<AbstractReference<IPropCnr>,
ReferenceString>
onDefine
public void onDefine(boolean on) Called when (un)defined.- Specified by:
onDefine
in interfaceIPropertyDefined
- Overrides:
onDefine
in classBaseEditor<AbstractReference<IPropCnr>,
ReferenceString> - Parameters:
on
- The defined state.