Interface IStyle
-
- All Known Implementing Classes:
CellStyleFixture,CellStyleProxy,Style,StyleProxy
public interface IStyleUsed to store attributes reflecting a (usually display) style.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description <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 Detail
-
getAttributeValue
<T> T getAttributeValue(ConfigAttribute<T> styleAttribute)
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
default <T> T getAttributeValue(ConfigAttribute<T> styleAttribute, T defaultValue)
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
<T> void setAttributeValue(ConfigAttribute<T> styleAttribute, T value)
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.
-
-