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, wasDefinedAtFocusGained
- Constructor SummaryConstructors
- Method SummaryModifier and TypeMethodDescription- 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- (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.- 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, 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- SessionConfigPropEditorpublic SessionConfigPropEditor()Default constructor called before createControls.
 
- Method Details- createprotected void create()Creates the property editor controls.- Specified by:
- createin class- BaseEditor<PropCnr,- GProp<?>[]> 
 
- onMorepublic void onMore()Configures the session.- Overrides:
- onMorein class- BaseEditor<PropCnr,- GProp<?>[]> 
 
- getToolTipTextGets the tooltip text to display in the entry fields (not the one for property errors or validator).- Specified by:
- getToolTipTextin class- BaseEditor<PropCnr,- GProp<?>[]> 
 
- getDefaultValueGets the default defined value to set in the property when defined.- Specified by:
- getDefaultValuein interface- IEditedPropControllerOwner<PropCnr,- GProp<?>[]> 
- Specified by:
- getDefaultValuein class- BaseEditor<PropCnr,- GProp<?>[]> 
 
- doUndefineIfEmptyprotected 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 class- BaseEditor<PropCnr,- GProp<?>[]> 
 
- getValueGets the property value for a user input.- Specified by:
- getValuein class- BaseEditor<PropCnr,- GProp<?>[]> 
- Parameters:
- input- The current user input.
- Returns:
- The property value for the input, or null to un-define the property.
 
- formatValueFormats the value for user input as a String.- Specified by:
- formatValuein interface- IEditedPropControllerOwner<PropCnr,- GProp<?>[]> 
- Specified by:
- formatValuein class- BaseEditor<PropCnr,- GProp<?>[]> 
- Parameters:
- value- The value.
- Returns:
- The formatted value.
 
- onDefinepublic void onDefine- (boolean on) Overridden to abort.- Specified by:
- onDefinein interface- IPropertyDefined
- Overrides:
- onDefinein class- BaseEditor<PropCnr,- GProp<?>[]> 
- Parameters:
- on- The defined state.