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 an 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,
String displayMode,
String configLabel) |
<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)
<T> void registerConfigAttribute(ConfigAttribute<T> configAttribute, T attributeValue, String targetDisplayMode)
DisplayMode
.<T> void registerConfigAttribute(ConfigAttribute<T> configAttribute, T attributeValue, String targetDisplayMode, String configLabel)
DisplayMode
and configuration label (applied to cells)<T> void unregisterConfigAttribute(ConfigAttribute<T> configAttributeType, String displayMode, String configLabel)
IDisplayModeOrdering getDisplayModeOrdering()
Copyright © 2013. All Rights Reserved.