Package com.iizigo.prop.editor
Class BoolPropEditor
- java.lang.Object
- com.iizigo.prop.BaseEditor<BoolProp,java.lang.Boolean>
- com.iizigo.prop.editor.BoolPropEditor
 
 
- All Implemented Interfaces:
- IEditedPropControllerOwner<BoolProp,java.lang.Boolean>,- IEditedPropertyEntry<BoolProp,java.lang.Boolean>,- IEditedPropertyEntryMultiProp<BoolProp,java.lang.Boolean>,- IPropertyDefined,- java.util.EventListener,- org.eclipse.swt.events.SelectionListener,- org.eclipse.swt.internal.SWTEventListener
 - Direct Known Subclasses:
- ContentProviderPropEditor,- NullValueAllowedPropEditor
 - public class BoolPropEditor extends BaseEditor<BoolProp,java.lang.Boolean> implements org.eclipse.swt.events.SelectionListener The boolean property editor consists of a simple check box.- Author:
- Christopher Mindus
 
- Field Summary- Fields - Modifier and Type - Field - Description - protected org.eclipse.swt.widgets.Button- buttonThe button.- protected boolean- defaultValueThe default value.- 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 - BoolPropEditor()Default constructor called before createControls.
 - Method Summary- All Methods Instance Methods Concrete Methods - Modifier and Type - Method - Description - protected void- create()Creates the property editor controls.- java.lang.String- formatValue(java.lang.Boolean value)Formats the value for user input as a String.- java.lang.Boolean- getDefaultValue()Gets the default defined value to set in the property when defined.- protected java.lang.String- getToolTipText()Gets the tooltip text to display in the entry fields (not the one for property errors or validator).- protected java.lang.Boolean- getValue(java.lang.String input)Gets the property value for a user input.- void- onError(java.lang.String input, java.lang.String message, int severity, boolean isMultipleValueWarning, boolean isChildError)Called when the property is updated due to an error.- void- onUndefined()Called when the property is undefined.- void- onUpdate(java.lang.Boolean value)Called when the property is updated without errors, with a new value.- protected void- setColors(org.eclipse.swt.widgets.Control... additional)Adds label to color.- void- widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent e)Not processed.- void- widgetSelected(org.eclipse.swt.events.SelectionEvent e)Checkbox 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, isPropReadOnly, onDefine, onDispose, onDoubleClick, onF4List, onFocusGained, onFocusLost, onMore, onReadOnly, setCurrentValue, setEditable, setFocus, setInput, setInputValue, setInputValueFromProp, setToolTipText, showMenu, updateTooltip, validate
 
 
- Method Detail- create- protected void create() Creates the property editor controls.- Specified by:
- createin class- BaseEditor<BoolProp,java.lang.Boolean>
 
 - 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 class- BaseEditor<BoolProp,java.lang.Boolean>
 
 - getDefaultValue- public java.lang.Boolean getDefaultValue() Gets the default defined value to set in the property when defined.- Specified by:
- getDefaultValuein interface- IEditedPropControllerOwner<BoolProp,java.lang.Boolean>
- Specified by:
- getDefaultValuein class- BaseEditor<BoolProp,java.lang.Boolean>
 
 - getValue- protected java.lang.Boolean getValue(java.lang.String input) throws java.lang.ExceptionGets the property value for a user input.- Specified by:
- getValuein class- BaseEditor<BoolProp,java.lang.Boolean>
- Parameters:
- input- The current user input.
- Returns:
- The property value for the input, or null to un-define the property.
- Throws:
- java.lang.Exception- For validation errors.
 
 - formatValue- public java.lang.String formatValue(java.lang.Boolean value) Formats the value for user input as a String.- Specified by:
- formatValuein interface- IEditedPropControllerOwner<BoolProp,java.lang.Boolean>
- Specified by:
- formatValuein class- BaseEditor<BoolProp,java.lang.Boolean>
- Parameters:
- value- The value.
- Returns:
- The formatted value.
 
 - onUpdate- public void onUpdate(java.lang.Boolean value) Called when the property is updated without errors, with a new value.- Specified by:
- onUpdatein interface- IEditedPropControllerOwner<BoolProp,java.lang.Boolean>
- Overrides:
- onUpdatein class- BaseEditor<BoolProp,java.lang.Boolean>
 
 - onError- public void onError(java.lang.String input, java.lang.String message, int severity, boolean isMultipleValueWarning, boolean isChildError)Called when the property is updated due to an error.- Specified by:
- onErrorin interface- IEditedPropControllerOwner<BoolProp,java.lang.Boolean>
- Overrides:
- onErrorin class- BaseEditor<BoolProp,java.lang.Boolean>
 
 - onUndefined- public void onUndefined() Called when the property is undefined.- Specified by:
- onUndefinedin interface- IEditedPropControllerOwner<BoolProp,java.lang.Boolean>
- Overrides:
- onUndefinedin class- BaseEditor<BoolProp,java.lang.Boolean>
 
 - widgetSelected- public void widgetSelected(org.eclipse.swt.events.SelectionEvent e) Checkbox pressed.- Specified by:
- widgetSelectedin interface- org.eclipse.swt.events.SelectionListener
 
 - widgetDefaultSelected- public void widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent e) Not processed.- Specified by:
- widgetDefaultSelectedin interface- org.eclipse.swt.events.SelectionListener
 
 - setColors- protected void setColors(org.eclipse.swt.widgets.Control... additional) Adds label to color.- Overrides:
- setColorsin class- BaseEditor<BoolProp,java.lang.Boolean>