Class EditorMap<T>
- java.lang.Object
-
- de.fraunhofer.iosb.ilt.configurable.editor.EditorDefault<T>
-
- de.fraunhofer.iosb.ilt.configurable.editor.AbstractEditorMap<Map<String,T>,T>
-
- de.fraunhofer.iosb.ilt.configurable.editor.EditorMap<T>
-
- Type Parameters:
T- The type of object returned by getValue.
- All Implemented Interfaces:
ConfigEditor<Map<String,T>>,ContentConfigEditor<Map<String,T>>,Iterable<String>
public class EditorMap<T> extends AbstractEditorMap<Map<String,T>,T> implements ContentConfigEditor<Map<String,T>>
An editor for a collection of editors, of various types, that can be selected from a list.- Author:
- Hylke van der Schaaf
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.fraunhofer.iosb.ilt.configurable.editor.AbstractEditorMap
AbstractEditorMap.Item<V>
-
-
Field Summary
-
Fields inherited from class de.fraunhofer.iosb.ilt.configurable.editor.AbstractEditorMap
options, value
-
Fields inherited from interface de.fraunhofer.iosb.ilt.configurable.ConfigEditor
DEFAULT_PROFILE_NAME
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetDouble(String name, double deflt)longgetLong(String name, long deflt)Map<String,Long>getLongMap()Map<String,T>getValue()Get the value configured in the editor.voidsetValue(Map<String,T> value)Set the value in the editor.-
Methods inherited from class de.fraunhofer.iosb.ilt.configurable.editor.AbstractEditorMap
addItem, addOption, addOption, addOption, addOption, addOption, addOption, canEdit, fillComponent, getColumns, getConfig, getGuiFactoryFx, getGuiFactorySwing, getJsonSchema, getOptionalOptions, getOptions, getProfile, getRawValue, getValue, isOptionSet, iterator, removeItem, setConfig, setContentsOn, setProfile, setProfilesEdit
-
Methods inherited from class de.fraunhofer.iosb.ilt.configurable.editor.EditorDefault
getDescription, getHelpButton, getHelpFrame, getLabel, initFor, popupDescription, setDescription, setLabel
-
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, getDescription, getGuiFactoryFx, getGuiFactorySwing, getJsonRootSchema, getJsonSchema, getLabel, initFor, initFor, isDefault, setConfig, setDescription, setLabel, setProfile
-
Methods inherited from interface de.fraunhofer.iosb.ilt.configurable.ContentConfigEditor
getValue, isOptionSet, setContentsOn
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
getValue
public Map<String,T> getValue() throws ConfigurationException
Description copied from interface:ConfigEditorGet the value configured in the editor.- Specified by:
getValuein interfaceConfigEditor<T>- Returns:
- the value configured in the editor.
- Throws:
ConfigurationException- when the configuration can not be used to create a value.
-
getDouble
public double getDouble(String name, double deflt) throws ConfigurationException
- Throws:
ConfigurationException
-
getLong
public long getLong(String name, long deflt) throws ConfigurationException
- Throws:
ConfigurationException
-
getLongMap
public Map<String,Long> getLongMap() throws ConfigurationException
- Throws:
ConfigurationException
-
setValue
public void setValue(Map<String,T> value)
Description copied from interface:ConfigEditorSet the value in the editor. Used for saving an (externally) updated configuration.- Specified by:
setValuein interfaceConfigEditor<T>- Parameters:
value- the value in the editor.
-
-