Interface IStyle
- All Known Implementing Classes:
CellStyleFixture,CellStyleProxy,Style,StyleProxy
public interface IStyle
Used to store attributes reflecting a (usually display) style.
-
Method Summary
Modifier and TypeMethodDescription<T> TgetAttributeValue(ConfigAttribute<T> styleAttribute) Returns the configured value for the givenConfigAttribute.default <T> TgetAttributeValue(ConfigAttribute<T> styleAttribute, T defaultValue) Returns the configured value for the givenConfigAttribute.<T> voidsetAttributeValue(ConfigAttribute<T> styleAttribute, T value) Set the value for theConfigAttribute.
-
Method Details
-
getAttributeValue
Returns the configured value for the givenConfigAttribute.- 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.defaultValue- The value that should be returned if no value is found for theConfigAttribute.- Returns:
- The value for the given
ConfigAttributeornullif no value is found. - Since:
- 2.0
-
setAttributeValue
Set 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.
-