Package com.iizigo.prop.editor
Class PanelAnimationPropEditor
- java.lang.Object
- com.iizigo.prop.BaseEditor<IntProp,java.lang.Integer>
- com.iizigo.prop.editor.PanelAnimationPropEditor
 
 
- All Implemented Interfaces:
- IEditedPropControllerOwner<IntProp,java.lang.Integer>,- IEditedPropertyEntry<IntProp,java.lang.Integer>,- IEditedPropertyEntryMultiProp<IntProp,java.lang.Integer>,- IPropertyDefined
 - public class PanelAnimationPropEditor extends BaseEditor<IntProp,java.lang.Integer> Panel animation property editor for the panels and UI actions.- 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 - PanelAnimationPropEditor()
 - 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)Never called.- java.lang.String- getCurrentInput()Gets the user input.- java.lang.Integer- getDefaultValue()Gets the default value: time.- 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)Never called.- protected void- onDoubleClick(org.eclipse.swt.widgets.Event e)Called when mouse is double-clicked in the text or combobox.- void- onMore()Display the dialog box.- void- onUndefined()Called when value is undefined.- protected void- setInputValue(java.lang.Integer value)Sets the input value when editing, when formatting the value from a string.- protected java.lang.Integer- validate(java.lang.String input, boolean focusLost)Always validated.- Methods inherited from class com.iizigo.prop.BaseEditor- assignMaster, beginProcessEvent, canProcessEvents, checkInput, createCCombo, createControls, createGridLayout, createIzMenu, createMoreButton, createMoreIzMenu, createText, dispose, doUndefineIfEmpty, doValueChangeConversion, endProcessEvent, getBaseEditor, getCurrentValue, getCurrentValues, getModifyListener, getNativeToolTip, getOption, getSelectionListener, getSeverity, getShell, getToolTipText2, hasFocus, initialize, isPropReadOnly, onDefine, onDispose, onError, onF4List, onFocusGained, onFocusLost, onReadOnly, onUpdate, setColors, setCurrentValue, setEditable, setFocus, setInput, setInputValueFromProp, setToolTipText, showMenu, updateTooltip
 
 
- Method Detail- create- protected void create() Creates the property editor controls.- Specified by:
- createin class- BaseEditor<IntProp,java.lang.Integer>
 
 - 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() Display the dialog box.- Overrides:
- onMorein 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>
 
 - getCurrentInput- public java.lang.String getCurrentInput() Gets the user input.- Specified by:
- getCurrentInputin interface- IEditedPropControllerOwner<IntProp,java.lang.Integer>
- Overrides:
- getCurrentInputin class- BaseEditor<IntProp,java.lang.Integer>
 
 - getDefaultValue- public java.lang.Integer getDefaultValue() Gets the default value: time.- Specified by:
- getDefaultValuein interface- IEditedPropControllerOwner<IntProp,java.lang.Integer>
- Specified by:
- getDefaultValuein class- BaseEditor<IntProp,java.lang.Integer>
 
 - setInputValue- protected void setInputValue(java.lang.Integer value) Sets the input value when editing, when formatting the value from a string. If the input is null, it means the same as setting an empty value.- Overrides:
- setInputValuein class- BaseEditor<IntProp,java.lang.Integer>
- Parameters:
- value- The value to set, null for empty.
 
 - validate- protected java.lang.Integer validate(java.lang.String input, boolean focusLost)Always validated.- Overrides:
- validatein class- BaseEditor<IntProp,java.lang.Integer>
- Parameters:
- input- The user input.
- focusLost- Flag for validation at focus lost resulting in e.g. removal of value for empty strings.
- Returns:
- The value object or null to remove or un-define it.
 
 - getValue- protected java.lang.Integer getValue(java.lang.String input) throws java.lang.ExceptionNever called.- 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) Never called.- 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.
 
 - onUndefined- public void onUndefined() Called when value is undefined.- Specified by:
- onUndefinedin interface- IEditedPropControllerOwner<IntProp,java.lang.Integer>
- Overrides:
- onUndefinedin class- BaseEditor<IntProp,java.lang.Integer>