Package com.iizigo.term.prop.editor
Class SessionConfigPropEditor
- java.lang.Object
- com.iizigo.prop.BaseEditor<PropCnr,GProp<?>[]>
- com.iizigo.term.prop.editor.SessionConfigPropEditor
- All Implemented Interfaces:
IEditedPropControllerOwner<PropCnr,GProp<?>[]>
,IEditedPropertyEntry<PropCnr,GProp<?>[]>
,IEditedPropertyEntryMultiProp<PropCnr,GProp<?>[]>
,IPropertyDefined
public class SessionConfigPropEditor extends BaseEditor<PropCnr,GProp<?>[]>
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
Constructors Constructor Description SessionConfigPropEditor()
Default constructor called before createControls.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.java.lang.String
formatValue(GProp<?>[] value)
Formats the value for user input as a String.GProp<?>[]
getDefaultValue()
Gets the default defined value to set in the property when defined.protected java.lang.String
getToolTipText()
Gets the tooltip text to display in the entry fields (not the one for property errors or validator).protected GProp<?>[]
getValue(java.lang.String input)
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, onUndefined, onUpdate, setColors, setCurrentValue, setEditable, setFocus, setInput, setInputValue, setInputValueFromProp, setToolTipText, showMenu, updateTooltip, validate
Method Detail
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
protected java.lang.String 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
public 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
protected GProp<?>[] getValue(java.lang.String input)
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
public java.lang.String formatValue(GProp<?>[] value)
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.