Package com.iizigo.db.editor
Class ConnectionProfilePropEditor
- java.lang.Object
- com.iizigo.prop.BaseEditor<StringProp,java.lang.String>
- com.iizigo.prop.editor.StringPropEditor
- com.iizigo.db.editor.ConnectionProfilePropEditor
- All Implemented Interfaces:
IEditedPropControllerOwner<StringProp,java.lang.String>,IEditedPropertyEntry<StringProp,java.lang.String>,IEditedPropertyEntryMultiProp<StringProp,java.lang.String>,IPropertyDefined
public class ConnectionProfilePropEditor extends StringPropEditor
Connection profile property editor.- Author:
- Christopher Mindus
Field Summary
Fields inherited from class com.iizigo.prop.editor.StringPropEditor
descr
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 ConnectionProfilePropEditor()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcreate()Creates the property editor controls.java.lang.StringgetCurrentInput()Gets the user input.protected java.lang.StringgetToolTipText()Gets the tooltip text to display in the entry fields (not the one for property errors or validator).voidonMore()Display the dialog box.protected booleansetInput(java.lang.String input)Updates the entry or visible part in the editor with a new property value that is not in error state.Methods inherited from class com.iizigo.prop.editor.StringPropEditor
doUndefineIfEmpty, formatValue, getDefaultValue, getToolTipText2, getValue, parseOptions
Methods inherited from class com.iizigo.prop.BaseEditor
assignMaster, beginProcessEvent, canProcessEvents, checkInput, createCCombo, createControls, createGridLayout, createIzMenu, createMoreButton, createMoreIzMenu, createText, dispose, doValueChangeConversion, endProcessEvent, getBaseEditor, getCurrentValue, getCurrentValues, getModifyListener, getNativeToolTip, getOption, getSelectionListener, getSeverity, getShell, hasFocus, initialize, isPropReadOnly, onDefine, onDispose, onDoubleClick, onError, onF4List, onFocusGained, onFocusLost, onReadOnly, onUndefined, onUpdate, setColors, setCurrentValue, setEditable, setFocus, setInputValue, setInputValueFromProp, setToolTipText, showMenu, updateTooltip, validate
Method Detail
create
protected void create()
Creates the property editor controls.- Overrides:
createin classStringPropEditor
onMore
public void onMore()
Display the dialog box.- Overrides:
onMorein classBaseEditor<StringProp,java.lang.String>
getToolTipText
protected java.lang.String getToolTipText()
Gets the tooltip text to display in the entry fields (not the one for property errors or validator).- Overrides:
getToolTipTextin classStringPropEditor
getCurrentInput
public java.lang.String getCurrentInput()
Gets the user input.- Specified by:
getCurrentInputin interfaceIEditedPropControllerOwner<StringProp,java.lang.String>- Overrides:
getCurrentInputin classBaseEditor<StringProp,java.lang.String>
setInput
protected boolean setInput(java.lang.String input)
Updates the entry or visible part in the editor with a new property value that is not in error state. The default implementation updates the combo box or text with the value.toString() representation. The existing input should be checked for difference in order not to update the entry if not required. If the input is null, it means no change of the current input the user has made or was previously set.- Overrides:
setInputin classBaseEditor<StringProp,java.lang.String>- Parameters:
input- The new input, or null for no change.- Returns:
- true for changed, false for no change.