Class CellStyleProxy
java.lang.Object
org.eclipse.nebula.widgets.nattable.style.StyleProxy
org.eclipse.nebula.widgets.nattable.style.CellStyleProxy
- All Implemented Interfaces:
IStyle
-
Field Summary
Fields inherited from class org.eclipse.nebula.widgets.nattable.style.StyleProxy
configRegistry -
Constructor Summary
ConstructorsConstructorDescriptionCellStyleProxy(IConfigRegistry configRegistry, String targetDisplayMode, List<String> configLabels) Deprecated.CellStyleProxy(IConfigRegistry configRegistry, DisplayMode targetDisplayMode, List<String> configLabels) -
Method Summary
Modifier and TypeMethodDescription<T> TgetAttributeValue(ConfigAttribute<T> styleAttribute) Returns the configured value for the givenConfigAttribute.<T> TgetAttributeValue(ConfigAttribute<T> styleAttribute, boolean noModification) Returns the configured value for the givenConfigAttribute.<T> voidsetAttributeValue(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, waitMethods inherited from interface org.eclipse.nebula.widgets.nattable.style.IStyle
getAttributeValue
-
Constructor Details
-
CellStyleProxy
@Deprecated public CellStyleProxy(IConfigRegistry configRegistry, String targetDisplayMode, List<String> configLabels) Deprecated.Use constructor withDisplayModeparameter.- 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 Details
-
getAttributeValue
Description copied from interface:IStyleReturns the configured value for the givenConfigAttribute.- Specified by:
getAttributeValuein interfaceIStyle- Overrides:
getAttributeValuein classStyleProxy- 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.
-
getAttributeValue
Returns the configured value for the givenConfigAttribute.- Type Parameters:
T- The value type of the styleConfigAttribute.- Parameters:
styleAttribute- The requested styleConfigAttribute.noModification-trueif an unmodified value should be returned,falseif an internal modification like font scaling should be performed.- Returns:
- The value for the given
ConfigAttributeornullif no value is found. - Since:
- 2.0
-
setAttributeValue
Description copied from interface:IStyleSet the value for theConfigAttribute.- Type Parameters:
T- The value type of the styleConfigAttribute.- Parameters:
styleAttribute- The styleConfigAttributeto configure.value- The value to set for the given styleConfigAttribute.
-
DisplayModeparameter.