Class Style
- java.lang.Object
-
- org.eclipse.nebula.widgets.nattable.style.Style
-
- All Implemented Interfaces:
IStyle
- Direct Known Subclasses:
CellStyleFixture
public class Style extends Object implements IStyle
IStyle
implementation that carries styleConfigAttribute
s in a local map. Style configurations are applied for cell styling and need to be registered forCellConfigAttributes.CELL_STYLE
-
-
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> void
setAttributeValue(ConfigAttribute<T> styleAttribute, T value)
Set the value for theConfigAttribute
.String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.nebula.widgets.nattable.style.IStyle
getAttributeValue
-
-
-
-
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.
-
setAttributeValue
public <T> void setAttributeValue(ConfigAttribute<T> styleAttribute, T value)
Description copied from interface:IStyle
Set the value for theConfigAttribute
.- Specified by:
setAttributeValue
in interfaceIStyle
- Type Parameters:
T
- The value type of the styleConfigAttribute
.- Parameters:
styleAttribute
- The styleConfigAttribute
to configure.value
- The value to set for the given styleConfigAttribute
.
-
-