Class CellStyleProxy
- java.lang.Object
-
- org.eclipse.nebula.widgets.nattable.style.StyleProxy
-
- org.eclipse.nebula.widgets.nattable.style.CellStyleProxy
-
- All Implemented Interfaces:
IStyle
public class CellStyleProxy extends StyleProxy
-
-
Field Summary
-
Fields inherited from class org.eclipse.nebula.widgets.nattable.style.StyleProxy
configRegistry
-
-
Constructor Summary
Constructors Constructor Description CellStyleProxy(IConfigRegistry configRegistry, String targetDisplayMode, List<String> configLabels)Deprecated.Use constructor withDisplayModeparameter.CellStyleProxy(IConfigRegistry configRegistry, DisplayMode targetDisplayMode, List<String> configLabels)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <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, wait
-
Methods inherited from interface org.eclipse.nebula.widgets.nattable.style.IStyle
getAttributeValue
-
-
-
-
Constructor Detail
-
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 Detail
-
getAttributeValue
public <T> T getAttributeValue(ConfigAttribute<T> styleAttribute)
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
public <T> T getAttributeValue(ConfigAttribute<T> styleAttribute, boolean noModification)
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
public <T> void setAttributeValue(ConfigAttribute<T> styleAttribute, T value)
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.
-
-