public interface IConfigRegistry
See ConfigRegistryTest for a better understanding.
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 targetDisplayMode)
Register a configuration attribute against a
DisplayMode. |
<T> void |
registerConfigAttribute(ConfigAttribute<T> configAttribute,
T attributeValue,
String targetDisplayMode,
String configLabel)
Register an attribute against a
DisplayMode and configuration
label (applied to cells) |
<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. |
<T> T getConfigAttribute(ConfigAttribute<T> configAttribute, String targetDisplayMode, String... configLabels)
Example 1:
configRegistry.getConfigAttribute(attribute, DisplayMode.EDIT);
registerConfigAttribute(ConfigAttribute, Object)configRegistry.getConfigAttribute(attribute, DisplayMode.NORMAL, "testLabel", "testLabel_1");
T - 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 returned<T> T getConfigAttribute(ConfigAttribute<T> configAttribute, String targetDisplayMode, List<String> configLabels)
<T> T getSpecificConfigAttribute(ConfigAttribute<T> configAttribute, String displayMode, String configLabel)
<T> void registerConfigAttribute(ConfigAttribute<T> configAttribute, T attributeValue)
configAttribute - The ConfigAttribute for which a value should be
registered.attributeValue - The value that should be set for the given The
ConfigAttribute.<T> void registerConfigAttribute(ConfigAttribute<T> configAttribute, T attributeValue, String targetDisplayMode)
DisplayMode.configAttribute - The ConfigAttribute for which a value should be
registered.attributeValue - The value that should be set for the given The
ConfigAttribute.targetDisplayMode - The DisplayMode for which the ConfigAttribute
should be registered.<T> void registerConfigAttribute(ConfigAttribute<T> configAttribute, T attributeValue, String targetDisplayMode, String configLabel)
DisplayMode and configuration
label (applied to cells)configAttribute - The ConfigAttribute for which a value should be
registered.attributeValue - The value that should be set for the given The
ConfigAttribute.targetDisplayMode - The DisplayMode for which the ConfigAttribute
should be registered.configLabel - The configuration label against which the
ConfigAttribute should be registered.<T> void unregisterConfigAttribute(ConfigAttribute<T> configAttributeType)
configAttributeType - The ConfigAttribute to unregister.<T> void unregisterConfigAttribute(ConfigAttribute<T> configAttributeType, String displayMode)
DisplayMode.configAttributeType - The ConfigAttribute to unregister.displayMode - The DisplayMode for which the ConfigAttribute
should be unregistered.<T> void unregisterConfigAttribute(ConfigAttribute<T> configAttributeType, String displayMode, String configLabel)
DisplayMode that was registered against the given configuration
label.configAttributeType - The ConfigAttribute to unregister.displayMode - The DisplayMode for which the ConfigAttribute
should be unregistered.configLabel - The configuration label against which the
ConfigAttribute was registered.IDisplayModeOrdering getDisplayModeOrdering()
IDisplayModeOrdering which is used to specify in
which order to search through the IConfigRegistry for
DisplayMode.Copyright © 2016. All rights reserved.