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 ConfigAttributes in
a local map. Style configurations are applied for cell styling and need to be
registered for CellConfigAttributes.CELL_STYLE-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> TgetAttributeValue(ConfigAttribute<T> styleAttribute) Returns the configured value for the givenConfigAttribute.<T> voidsetAttributeValue(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, waitMethods inherited from interface org.eclipse.nebula.widgets.nattable.style.IStyle
getAttributeValue
-
Constructor Details
-
Style
public Style() -
Style
Copy constructor.- Parameters:
style- TheStyleobject to copy.- Since:
- 2.0
-
-
Method Details
-
getAttributeValue
Description copied from interface:IStyleReturns the configured value for the givenConfigAttribute.- Specified by:
getAttributeValuein interfaceIStyle- Type Parameters:
T- The value type of the styleConfigAttribute.- Parameters:
styleAttribute- The requested styleConfigAttribute.- Returns:
- The value for the given
ConfigAttributeornullif no value is found.
-
setAttributeValue
Description copied from interface:IStyleSet the value for theConfigAttribute.- Specified by:
setAttributeValuein interfaceIStyle- Type Parameters:
T- The value type of the styleConfigAttribute.- Parameters:
styleAttribute- The styleConfigAttributeto configure.value- The value to set for the given styleConfigAttribute.
-
toString
-