Package com.iizigo.prop.editor
Class BoolPropEditor
- All Implemented Interfaces:
- IThemeListener,- IEditedPropControllerOwner<BoolProp,,- Boolean> - IEditedPropertyEntry<BoolProp,,- Boolean> - IEditedPropertyEntryMultiProp<BoolProp,,- Boolean> - IPropertyDefined,- IDisposedPart,- EventListener,- SelectionListener,- SWTEventListener
- Direct Known Subclasses:
- ContentProviderPropEditor,- NullValueAllowedPropEditor
The boolean property editor consists of a simple check box.
- Author:
- Christopher Mindus
- Field SummaryFields- 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.- formatValue- (Boolean value) Formats the value for user input as a String.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 BooleanGets the property value for a user input.- void- onError- (String input, String message, int severity, boolean isMultipleValueWarning, boolean isChildError) Called when the property is updated due to an error.- voidCalled when the property is undefined.- voidCalled when the property is updated without errors, with a new value.- protected voidAdds label to color.- voidNot processed.- voidCheckbox pressed.- Methods inherited from class com.iizigo.prop.BaseEditor- assignMaster, beginProcessEvent, canProcessEvents, checkInput, createCCombo, createControls, createGridLayout, createIzMenu, createMoreButton, createMoreIzMenu, createText, dispose, doUndefineIfEmpty, doValueChangeConversion, endProcessEvent, getBaseEditor, getCurrentInput, getCurrentValue, getCurrentValues, getModifyListener, getNativeToolTip, getOption, getSelectionListener, getSeverity, getShell, getToolTipText2, hasFocus, initialize, isDisposed, isPropReadOnly, onDefine, onDispose, onDoubleClick, onF4List, onFocusGained, onFocusLost, onMore, onReadOnly, onThemeChanged, setCurrentValue, setEditable, setFocus, setInput, setInputValue, setInputValueFromProp, setToolTipText, showMenu, updateTooltip, validate
- Field Details- defaultValueprotected boolean defaultValueThe default value.
- buttonThe button.
 
- Constructor Details- BoolPropEditorpublic BoolPropEditor()Default constructor called before createControls.
 
- Method Details- createprotected void create()Creates the property editor controls.- Specified by:
- createin class- BaseEditor<BoolProp,- Boolean> 
 
- getToolTipTextGets the tooltip text to display in the entry fields (not the one for property errors or validator).- Specified by:
- getToolTipTextin class- BaseEditor<BoolProp,- Boolean> 
 
- getDefaultValueGets the default defined value to set in the property when defined.- Specified by:
- getDefaultValuein interface- IEditedPropControllerOwner<BoolProp,- Boolean> 
- Specified by:
- getDefaultValuein class- BaseEditor<BoolProp,- Boolean> 
 
- getValueGets the property value for a user input.- Specified by:
- getValuein class- BaseEditor<BoolProp,- Boolean> 
- Parameters:
- input- The current user input.
- Returns:
- The property value for the input, or null to un-define the property.
- Throws:
- Exception- For validation errors.
 
- formatValueFormats the value for user input as a String.- Specified by:
- formatValuein interface- IEditedPropControllerOwner<BoolProp,- Boolean> 
- Specified by:
- formatValuein class- BaseEditor<BoolProp,- Boolean> 
- Parameters:
- value- The value.
- Returns:
- The formatted value.
 
- onUpdateCalled when the property is updated without errors, with a new value.- Specified by:
- onUpdatein interface- IEditedPropControllerOwner<BoolProp,- Boolean> 
- Overrides:
- onUpdatein class- BaseEditor<BoolProp,- Boolean> 
 
- onErrorpublic void onError- (String input, String message, int severity, boolean isMultipleValueWarning, boolean isChildError) Called when the property is updated due to an error.- Specified by:
- onErrorin interface- IEditedPropControllerOwner<BoolProp,- Boolean> 
- Overrides:
- onErrorin class- BaseEditor<BoolProp,- Boolean> 
 
- onUndefinedpublic void onUndefined()Called when the property is undefined.- Specified by:
- onUndefinedin interface- IEditedPropControllerOwner<BoolProp,- Boolean> 
- Overrides:
- onUndefinedin class- BaseEditor<BoolProp,- Boolean> 
 
- widgetSelectedCheckbox pressed.- Specified by:
- widgetSelectedin interface- SelectionListener
 
- widgetDefaultSelectedNot processed.- Specified by:
- widgetDefaultSelectedin interface- SelectionListener
 
- setColorsAdds label to color.- Overrides:
- setColorsin class- BaseEditor<BoolProp,- Boolean>