Class CellStyleProxy
- java.lang.Object
-
- org.eclipse.nebula.widgets.nattable.style.StyleProxy
-
- org.eclipse.nebula.widgets.nattable.style.CellStyleProxy
-
- All Implemented Interfaces:
IStyle
public class CellStyleProxy extends StyleProxy
-
-
Field Summary
-
Fields inherited from class org.eclipse.nebula.widgets.nattable.style.StyleProxy
configRegistry
-
-
Constructor Summary
Constructors Constructor Description CellStyleProxy(IConfigRegistry configRegistry, String targetDisplayMode, List<String> configLabels)
Deprecated.Use constructor withDisplayMode
parameter.CellStyleProxy(IConfigRegistry configRegistry, DisplayMode targetDisplayMode, List<String> configLabels)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <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 Detail
-
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 Detail
-
getAttributeValue
public <T> T getAttributeValue(ConfigAttribute<T> styleAttribute)
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
public <T> T getAttributeValue(ConfigAttribute<T> styleAttribute, boolean noModification)
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
public <T> void setAttributeValue(ConfigAttribute<T> styleAttribute, T value)
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
.
-
-