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 voidcreate()Creates the property editor controls.protected booleandoUndefineIfEmpty(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.StringformatValue(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.StringgetToolTipText()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.voidonDefine(boolean on)Overridden to abort.voidonMore()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:
createin classBaseEditor<PropCnr,GProp<?>[]>
onMore
public void onMore()
Configures the session.- Overrides:
onMorein 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:
getToolTipTextin classBaseEditor<PropCnr,GProp<?>[]>
getDefaultValue
public GProp<?>[] getDefaultValue()
Gets the default defined value to set in the property when defined.- Specified by:
getDefaultValuein interfaceIEditedPropControllerOwner<PropCnr,GProp<?>[]>- Specified by:
getDefaultValuein 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:
doUndefineIfEmptyin classBaseEditor<PropCnr,GProp<?>[]>
getValue
protected GProp<?>[] getValue(java.lang.String input)
Gets the property value for a user input.- Specified by:
getValuein 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:
formatValuein interfaceIEditedPropControllerOwner<PropCnr,GProp<?>[]>- Specified by:
formatValuein classBaseEditor<PropCnr,GProp<?>[]>- Parameters:
value- The value.- Returns:
- The formatted value.
onDefine
public void onDefine(boolean on)
Overridden to abort.- Specified by:
onDefinein interfaceIPropertyDefined- Overrides:
onDefinein classBaseEditor<PropCnr,GProp<?>[]>- Parameters:
on- The defined state.