Package com.iizigo.prop.editor
Class GradientPropEditor
- All Implemented Interfaces:
- IThemeListener,- IEditedPropControllerOwner<GradientProp,,- GGradient> - IEditedPropertyEntry<GradientProp,,- GGradient> - IEditedPropertyEntryMultiProp<GradientProp,,- GGradient> - IPropertyDefined,- IDisposedPart,- EventListener,- MouseListener,- SWTEventListener
The Gradient 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 SummaryConstructors
- Method SummaryModifier and TypeMethodDescription- protected void- create()Creates the property editor controls.- formatValue- (GGradient 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 GGradientGets the property value for a user input.- voidDouble-click on preview or text displays color chooser.- voidMouse down.- voidMouse up, not processed.- void- onDefine- (boolean on) Called from the PropertyDefinedButton.- protected voidCalled when the editor is disposed of.- void- onMore()Called when the "more..." button is pressed.- voidCalled when undefined.- voidCalled when a property event has been fired and the edited entry needs to be updated.- 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, onDoubleClick, onError, onF4List, onFocusGained, onFocusLost, onReadOnly, onThemeChanged, setColors, setCurrentValue, setEditable, setFocus, setInput, setInputValue, setInputValueFromProp, setToolTipText, showMenu, updateTooltip, validate
- Constructor Details- GradientPropEditorpublic GradientPropEditor()Default constructor called before createControls.
 
- Method Details- createprotected void create()Creates the property editor controls.- Specified by:
- createin class- BaseEditor<GradientProp,- GGradient> 
 
- onDisposeprotected void onDispose()Called when the editor is disposed of. Override to implement required code. By default, this method does nothing.- Overrides:
- onDisposein class- BaseEditor<GradientProp,- GGradient> 
 
- onMorepublic void onMore()Called when the "more..." button is pressed. Override to display dialog box.- Overrides:
- onMorein class- BaseEditor<GradientProp,- GGradient> 
 
- onUndefinedpublic void onUndefined()Called when undefined.- Specified by:
- onUndefinedin interface- IEditedPropControllerOwner<GradientProp,- GGradient> 
- Overrides:
- onUndefinedin class- BaseEditor<GradientProp,- GGradient> 
 
- onUpdateCalled when a property event has been fired and the edited entry needs to be updated. This method is also called when setting up the edited entry the first time.- Specified by:
- onUpdatein interface- IEditedPropControllerOwner<GradientProp,- GGradient> 
- Overrides:
- onUpdatein class- BaseEditor<GradientProp,- GGradient> 
 
- getToolTipTextGets the tooltip text to display in the entry fields (not the one for property errors or validator).- Specified by:
- getToolTipTextin class- BaseEditor<GradientProp,- GGradient> 
 
- getDefaultValueGets the default defined value to set in the property when defined.- Specified by:
- getDefaultValuein interface- IEditedPropControllerOwner<GradientProp,- GGradient> 
- Specified by:
- getDefaultValuein class- BaseEditor<GradientProp,- GGradient> 
 
- getValueGets the property value for a user input.- Specified by:
- getValuein class- BaseEditor<GradientProp,- GGradient> 
- 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<GradientProp,- GGradient> 
- Specified by:
- formatValuein class- BaseEditor<GradientProp,- GGradient> 
- Parameters:
- value- The value.
- Returns:
- The formatted value.
 
- onDefinepublic void onDefine- (boolean on) Called from the PropertyDefinedButton.- Specified by:
- onDefinein interface- IPropertyDefined
- Overrides:
- onDefinein class- BaseEditor<GradientProp,- GGradient> 
- Parameters:
- on- The defined state.
 
- mouseDoubleClickDouble-click on preview or text displays color chooser.- Specified by:
- mouseDoubleClickin interface- MouseListener
- Parameters:
- e-
 
- mouseDownMouse down.- Specified by:
- mouseDownin interface- MouseListener
 
- mouseUpMouse up, not processed.- Specified by:
- mouseUpin interface- MouseListener