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 voidcreate()Creates the property editor controls.java.lang.StringformatValue(java.lang.Integer value)Never called.java.lang.StringgetCurrentInput()Gets the user input.java.lang.IntegergetDefaultValue()Gets the default value: time.protected java.lang.StringgetToolTipText()Gets the tooltip text to display in the entry fields (not the one for property errors or validator).protected java.lang.IntegergetValue(java.lang.String input)Never called.protected voidonDoubleClick(org.eclipse.swt.widgets.Event e)Called when mouse is double-clicked in the text or combobox.voidonMore()Display the dialog box.voidonUndefined()Called when value is undefined.protected voidsetInputValue(java.lang.Integer value)Sets the input value when editing, when formatting the value from a string.protected java.lang.Integervalidate(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 classBaseEditor<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 classBaseEditor<IntProp,java.lang.Integer>
onMore
public void onMore()
Display the dialog box.- Overrides:
onMorein classBaseEditor<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 classBaseEditor<IntProp,java.lang.Integer>
getCurrentInput
public java.lang.String getCurrentInput()
Gets the user input.- Specified by:
getCurrentInputin interfaceIEditedPropControllerOwner<IntProp,java.lang.Integer>- Overrides:
getCurrentInputin classBaseEditor<IntProp,java.lang.Integer>
getDefaultValue
public java.lang.Integer getDefaultValue()
Gets the default value: time.- Specified by:
getDefaultValuein interfaceIEditedPropControllerOwner<IntProp,java.lang.Integer>- Specified by:
getDefaultValuein classBaseEditor<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 classBaseEditor<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 classBaseEditor<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 classBaseEditor<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 interfaceIEditedPropControllerOwner<IntProp,java.lang.Integer>- Specified by:
formatValuein classBaseEditor<IntProp,java.lang.Integer>- Parameters:
value- The value.- Returns:
- The formatted value.
onUndefined
public void onUndefined()
Called when value is undefined.- Specified by:
onUndefinedin interfaceIEditedPropControllerOwner<IntProp,java.lang.Integer>- Overrides:
onUndefinedin classBaseEditor<IntProp,java.lang.Integer>