Class StyleProxy
- java.lang.Object
-
- org.eclipse.nebula.widgets.nattable.style.StyleProxy
-
- All Implemented Interfaces:
IStyle
- Direct Known Subclasses:
CellStyleProxy
public abstract class StyleProxy extends Object implements IStyle
-
-
Field Summary
Fields Modifier and Type Field Description protected IConfigRegistry
configRegistry
-
Constructor Summary
Constructors Constructor Description StyleProxy(ConfigAttribute<IStyle> styleConfigAttribute, IConfigRegistry configRegistry, String targetDisplayMode, List<String> configLabels)
Deprecated.Use constructor withDisplayMode
parameter.StyleProxy(ConfigAttribute<IStyle> styleConfigAttribute, 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
.-
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, setAttributeValue
-
-
-
-
Field Detail
-
configRegistry
protected final IConfigRegistry configRegistry
- Since:
- 2.0
-
-
Constructor Detail
-
StyleProxy
@Deprecated public StyleProxy(ConfigAttribute<IStyle> styleConfigAttribute, IConfigRegistry configRegistry, String targetDisplayMode, List<String> configLabels)
Deprecated.Use constructor withDisplayMode
parameter.- Parameters:
styleConfigAttribute
- The style config attribute.configRegistry
- TheIConfigRegistry
.targetDisplayMode
- TheDisplayMode
.configLabels
- The config labels.
-
StyleProxy
public StyleProxy(ConfigAttribute<IStyle> styleConfigAttribute, IConfigRegistry configRegistry, DisplayMode targetDisplayMode, List<String> configLabels)
- Parameters:
styleConfigAttribute
- The style config attribute.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
- 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.
-
-