Package com.iizigo.term.prop.editor
Class SessionConfigPropEditor
- All Implemented Interfaces:
IThemeListener
,IEditedPropControllerOwner<PropCnr,
,GProp<?>[]> IEditedPropertyEntry<PropCnr,
,GProp<?>[]> IEditedPropertyEntryMultiProp<PropCnr,
,GProp<?>[]> IPropertyDefined
Editor for session configuration that brings up the session configuration dialog.
- 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
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
(GProp<?>[] value) Formats the value for user input as a String.GProp<?>[]
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 GProp<?>[]
Gets the property value for a user input.void
onDefine
(boolean on) Overridden to abort.void
onMore()
Configures the session.Methods inherited from class com.iizigo.prop.BaseEditor
assignMaster, beginProcessEvent, canProcessEvents, checkInput, 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, onDoubleClick, onError, onF4List, onFocusGained, onFocusLost, onReadOnly, onThemeChanged, onUndefined, onUpdate, setColors, setCurrentValue, setEditable, setFocus, setInput, setInputValue, setInputValueFromProp, setToolTipText, showMenu, updateTooltip, validate
Constructor Details
SessionConfigPropEditor
public SessionConfigPropEditor()Default constructor called before createControls.
Method Details
create
protected void create()Creates the property editor controls.- Specified by:
create
in classBaseEditor<PropCnr,
GProp<?>[]>
onMore
public void onMore()Configures the session.- Overrides:
onMore
in classBaseEditor<PropCnr,
GProp<?>[]>
getToolTipText
Gets the tooltip text to display in the entry fields (not the one for property errors or validator).- Specified by:
getToolTipText
in classBaseEditor<PropCnr,
GProp<?>[]>
getDefaultValue
Gets the default defined value to set in the property when defined.- Specified by:
getDefaultValue
in interfaceIEditedPropControllerOwner<PropCnr,
GProp<?>[]> - Specified by:
getDefaultValue
in classBaseEditor<PropCnr,
GProp<?>[]>
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<PropCnr,
GProp<?>[]>
getValue
Gets the property value for a user input.- Specified by:
getValue
in classBaseEditor<PropCnr,
GProp<?>[]> - 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:
formatValue
in interfaceIEditedPropControllerOwner<PropCnr,
GProp<?>[]> - Specified by:
formatValue
in classBaseEditor<PropCnr,
GProp<?>[]> - Parameters:
value
- The value.- Returns:
- The formatted value.
onDefine
public void onDefine(boolean on) Overridden to abort.- Specified by:
onDefine
in interfaceIPropertyDefined
- Overrides:
onDefine
in classBaseEditor<PropCnr,
GProp<?>[]> - Parameters:
on
- The defined state.