Class EditorDefault<T>
- java.lang.Object
-
- de.fraunhofer.iosb.ilt.configurable.editor.EditorDefault<T>
-
- Type Parameters:
T- The type of object returned by getValue.
- All Implemented Interfaces:
ConfigEditor<T>
- Direct Known Subclasses:
AbstractEditorMap,EditorBigDecimal,EditorBoolean,EditorClass,EditorColor,EditorDouble,EditorEnum,EditorInt,EditorList,EditorLong,EditorNull,EditorString,EditorSubclass
public abstract class EditorDefault<T> extends Object implements ConfigEditor<T>
- Author:
- Hylke van der Schaaf
-
-
Field Summary
-
Fields inherited from interface de.fraunhofer.iosb.ilt.configurable.ConfigEditor
DEFAULT_PROFILE_NAME
-
-
Constructor Summary
Constructors Constructor Description EditorDefault()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDescription()The longer description for this editor.JButtongetHelpButton()static JFramegetHelpFrame()StringgetLabel()The human readable label for this editor.voidinitFor(Field field)Initialise the editor for the given Field, using the Field name and type and any annotations present on the Field.voidpopupDescription()voidsetDescription(String description)The longer description for this editor.voidsetLabel(String label)The human readable label for this editor.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.fraunhofer.iosb.ilt.configurable.ConfigEditor
canEdit, getConfig, getGuiFactoryFx, getGuiFactorySwing, getJsonRootSchema, getJsonSchema, getValue, initFor, isDefault, setConfig, setProfile, setValue
-
-
-
-
Method Detail
-
initFor
public void initFor(Field field)
Description copied from interface:ConfigEditorInitialise the editor for the given Field, using the Field name and type and any annotations present on the Field.- Specified by:
initForin interfaceConfigEditor<T>- Parameters:
field- the Field to initialise the editor for.
-
getLabel
public String getLabel()
The human readable label for this editor.- Specified by:
getLabelin interfaceConfigEditor<T>- Returns:
- the label
-
setLabel
public void setLabel(String label)
The human readable label for this editor.- Specified by:
setLabelin interfaceConfigEditor<T>- Parameters:
label- the label to set
-
getDescription
public String getDescription()
The longer description for this editor.- Specified by:
getDescriptionin interfaceConfigEditor<T>- Returns:
- the description
-
setDescription
public void setDescription(String description)
The longer description for this editor.- Specified by:
setDescriptionin interfaceConfigEditor<T>- Parameters:
description- the description to set
-
getHelpButton
public JButton getHelpButton()
-
popupDescription
public void popupDescription()
-
getHelpFrame
public static JFrame getHelpFrame()
-
-