public class StrokePropEditor extends BaseEditor<StrokeProp,GStroke>
appUI, combo, control, controller, definedButton, display, editor, focusListener, hasBeenModified, info, more, multipleValueWarningInput, options, parent, propController, shell, text, validator, wasDefinedAtFocusGained
Constructor and Description |
---|
StrokePropEditor()
Default constructor called before createControls.
|
Modifier and Type | Method and Description |
---|---|
protected void |
create()
Creates the property editor controls.
|
String |
formatValue(GStroke value)
Formats the value for user input as a String.
|
GStroke |
getDefaultValue()
Gets the default defined value to set in the property when defined.
|
static GStroke |
getLastStroke()
Gets a last-stroke.
|
protected String |
getToolTipText()
Gets the tooltip text to display in the entry fields (not the one for property errors or validator).
|
protected GStroke |
getValue(String input)
Gets the property value for a user input.
|
void |
mouseDoubleClick(MouseEvent e)
Double-click on preview or text displays color chooser.
|
void |
mouseDown(MouseEvent e)
Mouse down.
|
void |
mouseUp(MouseEvent e)
Mouse up, not processed.
|
void |
onDefine(boolean on)
Called from the PropertyDefinedButton.
|
protected void |
onDispose()
Called when the editor is disposed of.
|
protected void |
onDoubleClick(Event e)
Called when mouse is double-clicked in the text or combobox.
|
void |
onMore()
Called when the "more..." button is pressed.
|
void |
onUndefined()
Called when undefined.
|
void |
onUpdate(GStroke stroke)
Called when a property event has been fired and the edited entry needs to be updated.
|
protected void |
setColors(Control... additional)
Sets the colors for the controls depending on error, focus and define state.
|
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, onError, onF4List, onFocusGained, onFocusLost, onReadOnly, setCurrentValue, setEditable, setFocus, setInput, setInputValue, setInputValueFromProp, setToolTipText, showMenu, updateTooltip, validate
public StrokePropEditor()
public static GStroke getLastStroke()
protected void create()
create
in class BaseEditor<StrokeProp,GStroke>
protected void setColors(Control... additional)
setColors
in class BaseEditor<StrokeProp,GStroke>
protected void onDispose()
onDispose
in class BaseEditor<StrokeProp,GStroke>
protected void onDoubleClick(Event e)
onDoubleClick
in class BaseEditor<StrokeProp,GStroke>
public void onMore()
onMore
in class BaseEditor<StrokeProp,GStroke>
public void onUndefined()
onUndefined
in interface IEditedPropControllerOwner<StrokeProp,GStroke>
onUndefined
in class BaseEditor<StrokeProp,GStroke>
public void onUpdate(GStroke stroke)
onUpdate
in interface IEditedPropControllerOwner<StrokeProp,GStroke>
onUpdate
in class BaseEditor<StrokeProp,GStroke>
protected String getToolTipText()
getToolTipText
in class BaseEditor<StrokeProp,GStroke>
public GStroke getDefaultValue()
getDefaultValue
in interface IEditedPropControllerOwner<StrokeProp,GStroke>
getDefaultValue
in class BaseEditor<StrokeProp,GStroke>
protected GStroke getValue(String input) throws Exception
getValue
in class BaseEditor<StrokeProp,GStroke>
input
- The current user input.Exception
- For validation errors.public String formatValue(GStroke value)
formatValue
in interface IEditedPropControllerOwner<StrokeProp,GStroke>
formatValue
in class BaseEditor<StrokeProp,GStroke>
value
- The value.public void onDefine(boolean on)
onDefine
in interface IPropertyDefined
onDefine
in class BaseEditor<StrokeProp,GStroke>
on
- The defined state.public void mouseDoubleClick(MouseEvent e)
e
- public void mouseDown(MouseEvent e)
public void mouseUp(MouseEvent e)
iizi® is a registered trademark of Mindus SARL. © Copyright Mindus SARL, 2020. All rights reserved.