Package com.iizigo.prop.editor
Class StylesStatesPropEditor
- java.lang.Object
- com.iizigo.prop.BaseEditor<IntProp,java.lang.Integer>
- com.iizigo.prop.editor.StylesStatesPropEditor
 
 
- All Implemented Interfaces:
- IEditedPropControllerOwner<IntProp,java.lang.Integer>,- IEditedPropertyEntry<IntProp,java.lang.Integer>,- IEditedPropertyEntryMultiProp<IntProp,java.lang.Integer>,- IPropertyDefined
 - public class StylesStatesPropEditor extends BaseEditor<IntProp,java.lang.Integer> The state styles property editor.- 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 Summary- Constructors - Constructor - Description - StylesStatesPropEditor()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.Integer value)Formats the value for user input as a String.- java.lang.Integer- 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.Integer- getValue(java.lang.String input)Gets the property value for a user input.- void- onDefine(boolean on)Called from the PropertyDefinedButton.- protected void- onDoubleClick(org.eclipse.swt.widgets.Event e)Called when mouse is double-clicked in the text or combobox.- void- onMore()Called when the "more..." button is pressed.- protected boolean- setInput(java.lang.String value)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.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, onDispose, 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.- Specified by:
- createin class- BaseEditor<IntProp,java.lang.Integer>
 
 - 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<IntProp,java.lang.Integer>
 
 - getDefaultValue- public java.lang.Integer getDefaultValue() Gets the default defined value to set in the property when defined.- Specified by:
- getDefaultValuein interface- IEditedPropControllerOwner<IntProp,java.lang.Integer>
- Specified by:
- getDefaultValuein class- BaseEditor<IntProp,java.lang.Integer>
 
 - getValue- protected java.lang.Integer getValue(java.lang.String input) throws java.lang.ExceptionGets the property value for a user input.- Specified by:
- getValuein class- BaseEditor<IntProp,java.lang.Integer>
- 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.Integer value) Formats the value for user input as a String.- Specified by:
- formatValuein interface- IEditedPropControllerOwner<IntProp,java.lang.Integer>
- Specified by:
- formatValuein class- BaseEditor<IntProp,java.lang.Integer>
- Parameters:
- value- The value.
- Returns:
- The formatted value.
 
 - setInput- protected boolean setInput(java.lang.String value) Description copied from class:- BaseEditorUpdates 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 class- BaseEditor<IntProp,java.lang.Integer>
- Returns:
- true if changed, false for no change.
 
 - onDoubleClick- protected void onDoubleClick(org.eclipse.swt.widgets.Event e) Called when mouse is double-clicked in the text or combobox. Overridden to check if Goto reference is enabled, and if so goes there.- Overrides:
- onDoubleClickin class- BaseEditor<IntProp,java.lang.Integer>
 
 - onMore- public void onMore() Description copied from class:- BaseEditorCalled when the "more..." button is pressed. Override to display dialog box.- Overrides:
- onMorein class- BaseEditor<IntProp,java.lang.Integer>
 
 - onDefine- public void onDefine(boolean on) Description copied from class:- BaseEditorCalled from the PropertyDefinedButton.- Specified by:
- onDefinein interface- IPropertyDefined
- Overrides:
- onDefinein class- BaseEditor<IntProp,java.lang.Integer>
- Parameters:
- on- The defined state.