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 an 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,
String displayMode,
String configLabel) |
public <T> T getConfigAttribute(ConfigAttribute<T> configAttribute, String targetDisplayMode, String... configLabels)
IConfigRegistry
Example 1:
configRegistry.getConfigAttribute(attribute, DisplayMode.EDIT);
IConfigRegistry.registerConfigAttribute(ConfigAttribute, Object)
configRegistry.getConfigAttribute(attribute, DisplayMode.NORMAL, "testLabel", "testLabel_1");
getConfigAttribute
in interface IConfigRegistry
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 returnedpublic <T> T getConfigAttribute(ConfigAttribute<T> configAttribute, String targetDisplayMode, List<String> configLabels)
getConfigAttribute
in interface IConfigRegistry
IConfigRegistry.getConfigAttribute(ConfigAttribute, String, String...)
public <T> T getSpecificConfigAttribute(ConfigAttribute<T> configAttribute, String displayMode, String configLabel)
getSpecificConfigAttribute
in interface IConfigRegistry
IConfigRegistry.getConfigAttribute(ConfigAttribute, String, String...)
public <T> void registerConfigAttribute(ConfigAttribute<T> configAttribute, T attributeValue)
IConfigRegistry
registerConfigAttribute
in interface IConfigRegistry
public <T> void registerConfigAttribute(ConfigAttribute<T> configAttribute, T attributeValue, String displayMode)
IConfigRegistry
DisplayMode
.registerConfigAttribute
in interface IConfigRegistry
public <T> void registerConfigAttribute(ConfigAttribute<T> configAttribute, T attributeValue, String displayMode, String configLabel)
IConfigRegistry
DisplayMode
and configuration label (applied to cells)registerConfigAttribute
in interface IConfigRegistry
public <T> void unregisterConfigAttribute(ConfigAttribute<T> configAttributeType, String displayMode, String configLabel)
unregisterConfigAttribute
in interface IConfigRegistry
public IDisplayModeOrdering getDisplayModeOrdering()
getDisplayModeOrdering
in interface IConfigRegistry
public void setDisplayModeOrdering(IDisplayModeOrdering displayModeOrdering)
Copyright © 2013. All Rights Reserved.