Package com.iizigo.prop.editor
Class ValuePropEditor
- All Implemented Interfaces:
IThemeListener
,IEditedPropControllerOwner<ValueProp,
,Value> IEditedPropertyEntry<ValueProp,
,Value> IEditedPropertyEntryMultiProp<ValueProp,
,Value> IPropertyDefined
The Value property editor for the VSField Value.
- Author:
- Christopher Mindus
Field Summary
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
checkInput
(boolean focusLost) Overridden to provide value type.protected void
create()
Creates the property editor controls.protected boolean
doUndefineIfEmpty
(boolean focusLost) Keeps empty strings as defined, when input has been changed specifically to empty string, or if the entry was defined when editing began.formatValue
(Value value) Formats the value for user input as a String.Gets the default defined value to set in the property when defined.protected String
Gets the tooltip text to display in the entry fields (not the one for property errors or validator).protected Value
Gets the property value for a user input.void
onDefine
(boolean on) Overridden to provide type.protected void
Called when mouse is double-clicked in the text or combobox.void
onMore()
Displays menu.Methods inherited from class com.iizigo.prop.BaseEditor
assignMaster, beginProcessEvent, canProcessEvents, createCCombo, createControls, createGridLayout, createIzMenu, createMoreButton, createMoreIzMenu, createText, dispose, doValueChangeConversion, endProcessEvent, getBaseEditor, getCurrentInput, getCurrentValue, getCurrentValues, getModifyListener, getNativeToolTip, getOption, getSelectionListener, getSeverity, getShell, getToolTipText2, hasFocus, initialize, isPropReadOnly, onDispose, onError, onF4List, onFocusGained, onFocusLost, onReadOnly, onThemeChanged, onUndefined, onUpdate, setColors, setCurrentValue, setEditable, setFocus, setInput, setInputValue, setInputValueFromProp, setToolTipText, showMenu, updateTooltip, validate
Constructor Details
ValuePropEditor
public ValuePropEditor()Default constructor called before createControls.
Method Details
create
protected void create()Creates the property editor controls.- Specified by:
create
in classBaseEditor<ValueProp,
Value>
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:
onDoubleClick
in classBaseEditor<ValueProp,
Value>
onMore
public void onMore()Displays menu.- Overrides:
onMore
in classBaseEditor<ValueProp,
Value>
getToolTipText
Gets the tooltip text to display in the entry fields (not the one for property errors or validator).- Specified by:
getToolTipText
in classBaseEditor<ValueProp,
Value>
getDefaultValue
Gets the default defined value to set in the property when defined.- Specified by:
getDefaultValue
in interfaceIEditedPropControllerOwner<ValueProp,
Value> - Specified by:
getDefaultValue
in classBaseEditor<ValueProp,
Value>
doUndefineIfEmpty
protected boolean doUndefineIfEmpty(boolean focusLost) Keeps empty strings as defined, when input has been changed specifically to empty string, or if the entry was defined when editing began.- Overrides:
doUndefineIfEmpty
in classBaseEditor<ValueProp,
Value>
getValue
Gets the property value for a user input.- Specified by:
getValue
in classBaseEditor<ValueProp,
Value> - Parameters:
input
- The current user input.- Returns:
- The property value for the input, or null to un-define the property.
- Throws:
ParseException
- For value errors.
formatValue
Formats the value for user input as a String.- Specified by:
formatValue
in interfaceIEditedPropControllerOwner<ValueProp,
Value> - Specified by:
formatValue
in classBaseEditor<ValueProp,
Value> - Parameters:
value
- The value.- Returns:
- The formatted value.
checkInput
protected void checkInput(boolean focusLost) Overridden to provide value type.- Overrides:
checkInput
in classBaseEditor<ValueProp,
Value>
onDefine
public void onDefine(boolean on) Overridden to provide type.- Specified by:
onDefine
in interfaceIPropertyDefined
- Overrides:
onDefine
in classBaseEditor<ValueProp,
Value> - Parameters:
on
- The defined state.