public class FontPropEditor extends BaseEditor<FontProp,GFont>
appUI, combo, control, controller, definedButton, display, editor, focusListener, hasBeenModified, info, more, multipleValueWarningInput, options, parent, propController, shell, text, validator, wasDefinedAtFocusGained
Constructor and Description |
---|
FontPropEditor()
Default constructor called before createControls.
|
Modifier and Type | Method and Description |
---|---|
protected void |
create()
Creates the property editor controls.
|
String |
formatValue(GFont value)
Formats the value for user input as a String.
|
GFont |
getDefaultValue()
Gets the default defined value to set in the property when defined.
|
protected String |
getToolTipText()
Gets the tooltip text to display in the entry fields (not the one for property errors or validator).
|
protected GFont |
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.
|
void |
onMore()
Called when the "more..." button is pressed.
|
void |
onUndefined()
Called when undefined.
|
void |
onUpdate(GFont font)
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, onDispose, onDoubleClick, onError, onF4List, onFocusGained, onFocusLost, onReadOnly, setCurrentValue, setEditable, setFocus, setInput, setInputValue, setInputValueFromProp, setToolTipText, showMenu, updateTooltip, validate
public FontPropEditor()
protected void create()
create
in class BaseEditor<FontProp,GFont>
protected void setColors(Control... additional)
setColors
in class BaseEditor<FontProp,GFont>
public void onMore()
onMore
in class BaseEditor<FontProp,GFont>
public void onUndefined()
onUndefined
in interface IEditedPropControllerOwner<FontProp,GFont>
onUndefined
in class BaseEditor<FontProp,GFont>
public void onUpdate(GFont font)
onUpdate
in interface IEditedPropControllerOwner<FontProp,GFont>
onUpdate
in class BaseEditor<FontProp,GFont>
protected String getToolTipText()
getToolTipText
in class BaseEditor<FontProp,GFont>
public GFont getDefaultValue()
getDefaultValue
in interface IEditedPropControllerOwner<FontProp,GFont>
getDefaultValue
in class BaseEditor<FontProp,GFont>
protected GFont getValue(String input) throws Exception
getValue
in class BaseEditor<FontProp,GFont>
input
- The current user input.Exception
- For validation errors.public String formatValue(GFont value)
formatValue
in interface IEditedPropControllerOwner<FontProp,GFont>
formatValue
in class BaseEditor<FontProp,GFont>
value
- The value.public void onDefine(boolean on)
onDefine
in interface IPropertyDefined
onDefine
in class BaseEditor<FontProp,GFont>
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.