public class ConfigRegistry extends Object implements IConfigRegistry
| Constructor and Description |
|---|
ConfigRegistry() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
getConfigAttribute(ConfigAttribute<T> configAttribute,
String targetDisplayMode,
List<String> configLabels) |
<T> T |
getConfigAttribute(ConfigAttribute<T> configAttribute,
String targetDisplayMode,
String... configLabels)
If retrieving registered values
|
IDisplayModeOrdering |
getDisplayModeOrdering() |
<T> T |
getSpecificConfigAttribute(ConfigAttribute<T> configAttribute,
String displayMode,
String configLabel) |
<T> void |
registerConfigAttribute(ConfigAttribute<T> configAttribute,
T attributeValue)
Register a configuration attribute.
|
<T> void |
registerConfigAttribute(ConfigAttribute<T> configAttribute,
T attributeValue,
String displayMode)
Register a configuration attribute against a
DisplayMode. |
<T> void |
registerConfigAttribute(ConfigAttribute<T> configAttribute,
T attributeValue,
String displayMode,
String configLabel)
Register an attribute against a
DisplayMode and configuration
label (applied to cells) |
void |
setDisplayModeOrdering(IDisplayModeOrdering displayModeOrdering) |
<T> void |
unregisterConfigAttribute(ConfigAttribute<T> configAttributeType)
Unregister the given configuration attribute.
|
<T> void |
unregisterConfigAttribute(ConfigAttribute<T> configAttributeType,
String displayMode)
Unregister the given configuration attribute for the given
DisplayMode. |
<T> void |
unregisterConfigAttribute(ConfigAttribute<T> configAttributeType,
String displayMode,
String configLabel)
Unregister the given configuration attribute for the given
DisplayMode that was registered against the given configuration
label. |
public <T> T getConfigAttribute(ConfigAttribute<T> configAttribute, String targetDisplayMode, String... configLabels)
IConfigRegistryExample 1:
configRegistry.getConfigAttribute(attribute, DisplayMode.EDIT);
IConfigRegistry.registerConfigAttribute(ConfigAttribute, Object)configRegistry.getConfigAttribute(attribute, DisplayMode.NORMAL, "testLabel", "testLabel_1");
getConfigAttribute in interface IConfigRegistryT - Type of the attributeconfigAttribute - to be registeredtargetDisplayMode - display mode the cell needs to be in, for this attribute to be
returnedconfigLabels - the cell needs to have, for this attribute to be returnedpublic <T> T getConfigAttribute(ConfigAttribute<T> configAttribute, String targetDisplayMode, List<String> configLabels)
getConfigAttribute in interface IConfigRegistryIConfigRegistry.getConfigAttribute(ConfigAttribute, String, String...)public <T> T getSpecificConfigAttribute(ConfigAttribute<T> configAttribute, String displayMode, String configLabel)
getSpecificConfigAttribute in interface IConfigRegistryIConfigRegistry.getConfigAttribute(ConfigAttribute, String, String...)public <T> void registerConfigAttribute(ConfigAttribute<T> configAttribute, T attributeValue)
IConfigRegistryregisterConfigAttribute in interface IConfigRegistryconfigAttribute - The ConfigAttribute for which a value should be
registered.attributeValue - The value that should be set for the given The
ConfigAttribute.public <T> void registerConfigAttribute(ConfigAttribute<T> configAttribute, T attributeValue, String displayMode)
IConfigRegistryDisplayMode.registerConfigAttribute in interface IConfigRegistryconfigAttribute - The ConfigAttribute for which a value should be
registered.attributeValue - The value that should be set for the given The
ConfigAttribute.displayMode - The DisplayMode for which the ConfigAttribute
should be registered.public <T> void registerConfigAttribute(ConfigAttribute<T> configAttribute, T attributeValue, String displayMode, String configLabel)
IConfigRegistryDisplayMode and configuration
label (applied to cells)registerConfigAttribute in interface IConfigRegistryconfigAttribute - The ConfigAttribute for which a value should be
registered.attributeValue - The value that should be set for the given The
ConfigAttribute.displayMode - The DisplayMode for which the ConfigAttribute
should be registered.configLabel - The configuration label against which the
ConfigAttribute should be registered.public <T> void unregisterConfigAttribute(ConfigAttribute<T> configAttributeType)
IConfigRegistryunregisterConfigAttribute in interface IConfigRegistryconfigAttributeType - The ConfigAttribute to unregister.public <T> void unregisterConfigAttribute(ConfigAttribute<T> configAttributeType, String displayMode)
IConfigRegistryDisplayMode.unregisterConfigAttribute in interface IConfigRegistryconfigAttributeType - The ConfigAttribute to unregister.displayMode - The DisplayMode for which the ConfigAttribute
should be unregistered.public <T> void unregisterConfigAttribute(ConfigAttribute<T> configAttributeType, String displayMode, String configLabel)
IConfigRegistryDisplayMode that was registered against the given configuration
label.unregisterConfigAttribute in interface IConfigRegistryconfigAttributeType - The ConfigAttribute to unregister.displayMode - The DisplayMode for which the ConfigAttribute
should be unregistered.configLabel - The configuration label against which the
ConfigAttribute was registered.public IDisplayModeOrdering getDisplayModeOrdering()
getDisplayModeOrdering in interface IConfigRegistryIDisplayModeOrdering which is used to specify in
which order to search through the IConfigRegistry for
DisplayMode.public void setDisplayModeOrdering(IDisplayModeOrdering displayModeOrdering)
Copyright © 2019. All rights reserved.