Class CellStyleProxy
java.lang.Object
org.eclipse.nebula.widgets.nattable.style.StyleProxy
org.eclipse.nebula.widgets.nattable.style.CellStyleProxy
- All Implemented Interfaces:
IStyle
-
Field Summary
Fields inherited from class org.eclipse.nebula.widgets.nattable.style.StyleProxy
configRegistry
-
Constructor Summary
ConstructorsConstructorDescriptionCellStyleProxy
(IConfigRegistry configRegistry, String targetDisplayMode, List<String> configLabels) Deprecated.CellStyleProxy
(IConfigRegistry configRegistry, DisplayMode targetDisplayMode, List<String> configLabels) -
Method Summary
Modifier and TypeMethodDescription<T> T
getAttributeValue
(ConfigAttribute<T> styleAttribute) Returns the configured value for the givenConfigAttribute
.<T> T
getAttributeValue
(ConfigAttribute<T> styleAttribute, boolean noModification) Returns the configured value for the givenConfigAttribute
.<T> void
setAttributeValue
(ConfigAttribute<T> styleAttribute, T value) Set the value for theConfigAttribute
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.nebula.widgets.nattable.style.IStyle
getAttributeValue
-
Constructor Details
-
CellStyleProxy
@Deprecated public CellStyleProxy(IConfigRegistry configRegistry, String targetDisplayMode, List<String> configLabels) Deprecated.Use constructor withDisplayMode
parameter.- Parameters:
configRegistry
- TheIConfigRegistry
.targetDisplayMode
- TheDisplayMode
.configLabels
- The config labels.
-
CellStyleProxy
public CellStyleProxy(IConfigRegistry configRegistry, DisplayMode targetDisplayMode, List<String> configLabels) - Parameters:
configRegistry
- TheIConfigRegistry
.targetDisplayMode
- TheDisplayMode
.configLabels
- The config labels.- Since:
- 2.0
-
-
Method Details
-
getAttributeValue
Description copied from interface:IStyle
Returns the configured value for the givenConfigAttribute
.- Specified by:
getAttributeValue
in interfaceIStyle
- Overrides:
getAttributeValue
in classStyleProxy
- Type Parameters:
T
- The value type of the styleConfigAttribute
.- Parameters:
styleAttribute
- The requested styleConfigAttribute
.- Returns:
- The value for the given
ConfigAttribute
ornull
if no value is found.
-
getAttributeValue
Returns the configured value for the givenConfigAttribute
.- Type Parameters:
T
- The value type of the styleConfigAttribute
.- Parameters:
styleAttribute
- The requested styleConfigAttribute
.noModification
-true
if an unmodified value should be returned,false
if an internal modification like font scaling should be performed.- Returns:
- The value for the given
ConfigAttribute
ornull
if no value is found. - Since:
- 2.0
-
setAttributeValue
Description copied from interface:IStyle
Set the value for theConfigAttribute
.- Type Parameters:
T
- The value type of the styleConfigAttribute
.- Parameters:
styleAttribute
- The styleConfigAttribute
to configure.value
- The value to set for the given styleConfigAttribute
.
-
DisplayMode
parameter.