Interface IStyle
-
- All Known Implementing Classes:
CellStyleFixture
,CellStyleProxy
,Style
,StyleProxy
public interface IStyle
Used to store attributes reflecting a (usually display) style.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description <T> T
getAttributeValue(ConfigAttribute<T> styleAttribute)
Returns the configured value for the givenConfigAttribute
.default <T> T
getAttributeValue(ConfigAttribute<T> styleAttribute, T defaultValue)
Returns the configured value for the givenConfigAttribute
.<T> void
setAttributeValue(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
ConfigAttribute
ornull
if 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
ConfigAttribute
ornull
if 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 styleConfigAttribute
to configure.value
- The value to set for the given styleConfigAttribute
.
-
-