public class ClassReferencePropEditor extends BaseEditor<EditorClassReference,String>
Modifier and Type | Field and Description |
---|---|
protected String |
requiredInterface
The required interface, or null for none.
|
appUI, combo, control, controller, definedButton, display, editor, focusListener, hasBeenModified, info, more, multipleValueWarningInput, options, parent, propController, shell, text, validator, wasDefinedAtFocusGained
Constructor and Description |
---|
ClassReferencePropEditor()
Default constructor called before createControls.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addAnnotation()
Add interface.
|
protected void |
addInterface()
Add interface.
|
protected void |
create()
Creates the property editor controls.
|
protected void |
createJava()
Creates a new Java class.
|
String |
formatValue(String value)
Formats the value for user input as a String.
|
String |
getDefaultValue()
Gets the default defined value to set in the property when defined.
|
IzToolTip |
getNativeToolTip()
Gets a "native" tooltip to use.
|
protected String |
getToolTipText()
Gets the tooltip text to display in the entry fields (not the one for property errors or validator).
|
protected String |
getValue(String input)
Gets the property value for a user input.
|
protected void |
gotoJava()
Goto Java class definition.
|
void |
initialize(EditorClassReference prop)
Initializes a newly created property (e.g.
|
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, or to resolve the type for tooltip.
|
protected void |
selectJava(boolean all)
Selects a class from the project (or its classpath), but .java files as parsed sources.
|
void |
setCurrentValue(String value)
Sets the current value and overrides it in order to build the tooltip.
|
assignMaster, beginProcessEvent, canProcessEvents, checkInput, createCCombo, createControls, createGridLayout, createIzMenu, createMoreButton, createMoreIzMenu, createText, dispose, doUndefineIfEmpty, doValueChangeConversion, endProcessEvent, getBaseEditor, getCurrentInput, getCurrentValue, getCurrentValues, getModifyListener, getOption, getSelectionListener, getSeverity, getShell, getToolTipText2, hasFocus, isPropReadOnly, onDefine, onDispose, onError, onF4List, onFocusGained, onFocusLost, onReadOnly, onUndefined, onUpdate, setColors, setEditable, setFocus, setInput, setInputValue, setInputValueFromProp, setToolTipText, showMenu, updateTooltip, validate
protected String requiredInterface
public ClassReferencePropEditor()
public void initialize(EditorClassReference prop) throws PropException
initialize
in interface IEditedPropControllerOwner<EditorClassReference,String>
initialize
in class BaseEditor<EditorClassReference,String>
prop
- The newly created orphan property.PropException
- For property errors.protected void create()
create
in class BaseEditor<EditorClassReference,String>
protected void onDoubleClick(Event e)
onDoubleClick
in class BaseEditor<EditorClassReference,String>
protected void createJava()
protected void selectJava(boolean all)
protected void addInterface()
protected void addAnnotation()
protected void gotoJava()
public void onMore()
onMore
in class BaseEditor<EditorClassReference,String>
protected String getToolTipText()
getToolTipText
in class BaseEditor<EditorClassReference,String>
public IzToolTip getNativeToolTip()
getNativeToolTip
in class BaseEditor<EditorClassReference,String>
public String getDefaultValue()
getDefaultValue
in interface IEditedPropControllerOwner<EditorClassReference,String>
getDefaultValue
in class BaseEditor<EditorClassReference,String>
protected String getValue(String input)
getValue
in class BaseEditor<EditorClassReference,String>
input
- The current user input.public String formatValue(String value)
formatValue
in interface IEditedPropControllerOwner<EditorClassReference,String>
formatValue
in class BaseEditor<EditorClassReference,String>
value
- The value.public void setCurrentValue(String value)
setCurrentValue
in class BaseEditor<EditorClassReference,String>
iizi® is a registered trademark of Mindus SARL. © Copyright Mindus SARL, 2020. All rights reserved.