|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.nebula.widgets.nattable.config.ConfigRegistry
public class ConfigRegistry
Constructor Summary | |
---|---|
ConfigRegistry()
|
Method Summary | ||
---|---|---|
|
getConfigAttribute(ConfigAttribute<T> configAttribute,
String targetDisplayMode,
List<String> configLabels)
|
|
|
getConfigAttribute(ConfigAttribute<T> configAttribute,
String targetDisplayMode,
String... configLabels)
If retrieving registered values |
|
IDisplayModeOrdering |
getDisplayModeOrdering()
|
|
|
getSpecificConfigAttribute(ConfigAttribute<T> configAttribute,
String displayMode,
String configLabel)
|
|
|
registerConfigAttribute(ConfigAttribute<T> configAttribute,
T attributeValue)
Register a configuration attribute. |
|
|
registerConfigAttribute(ConfigAttribute<T> configAttribute,
T attributeValue,
String displayMode)
Register a configuration attribute against a DisplayMode . |
|
|
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)
|
|
|
unregisterConfigAttribute(ConfigAttribute<T> configAttributeType)
Unregister the given configuration attribute. |
|
|
unregisterConfigAttribute(ConfigAttribute<T> configAttributeType,
String displayMode)
Unregister the given configuration attribute for the given DisplayMode . |
|
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConfigRegistry()
Method Detail |
---|
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 returned
public <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
configAttribute
- 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)
IConfigRegistry
DisplayMode
.
registerConfigAttribute
in interface IConfigRegistry
configAttribute
- 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)
IConfigRegistry
DisplayMode
and configuration label (applied to cells)
registerConfigAttribute
in interface IConfigRegistry
configAttribute
- 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)
IConfigRegistry
unregisterConfigAttribute
in interface IConfigRegistry
configAttributeType
- The ConfigAttribute
to unregister.public <T> void unregisterConfigAttribute(ConfigAttribute<T> configAttributeType, String displayMode)
IConfigRegistry
DisplayMode
.
unregisterConfigAttribute
in interface IConfigRegistry
configAttributeType
- 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)
IConfigRegistry
DisplayMode
that was registered
against the given configuration label.
unregisterConfigAttribute
in interface IConfigRegistry
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.public IDisplayModeOrdering getDisplayModeOrdering()
getDisplayModeOrdering
in interface IConfigRegistry
IDisplayModeOrdering
which is used to specify in which order to search through the
IConfigRegistry
for DisplayMode
.public void setDisplayModeOrdering(IDisplayModeOrdering displayModeOrdering)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |