Package com.iizigo.term.prop.editor
Class SessionConfigPropEditor
- All Implemented Interfaces:
IThemeListener,IEditedPropControllerOwner<PropCnr,,GProp<?>[]> IEditedPropertyEntry<PropCnr,,GProp<?>[]> IEditedPropertyEntryMultiProp<PropCnr,,GProp<?>[]> IPropertyDefined,IDisposedPart
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, wasDefinedAtFocusGainedConstructor Summary
ConstructorsMethod Summary
Modifier and TypeMethodDescriptionprotected 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.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 StringGets 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.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, isDisposed, 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:
createin classBaseEditor<PropCnr,GProp<?>[]>
onMore
public void onMore()Configures the session.- Overrides:
onMorein classBaseEditor<PropCnr,GProp<?>[]>
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
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
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
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.