Class Style
java.lang.Object
org.eclipse.nebula.widgets.nattable.style.Style
- All Implemented Interfaces:
IStyle
- Direct Known Subclasses:
CellStyleFixture
IStyle
implementation that carries style ConfigAttribute
s in
a local map. Style configurations are applied for cell styling and need to be
registered for CellConfigAttributes.CELL_STYLE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<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
.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
-
Constructor Details
-
Style
public Style() -
Style
Copy constructor.- Parameters:
style
- TheStyle
object to copy.- Since:
- 2.0
-
-
Method Details
-
getAttributeValue
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
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
.
-
toString
-