public interface Style extends ValueMap
Modifier and Type | Method and Description |
---|---|
<T> T |
get(java.lang.String name,
java.lang.Class<T> type)
Return named value converted to type T or
null if not existing. |
<T> T |
get(java.lang.String name,
T defaultValue)
return named value converted to the type T of
the default value or the default value if the
named value does not exist
|
Cell |
getCell()
Returns the cell of this style
|
java.lang.String |
getDefiningPath(java.lang.String name)
Returns the cell path that defines the style property with the given name.
|
Resource |
getDefiningResource(java.lang.String name)
Returns the resource that defines the style property with the given name.
|
Design |
getDesign()
Returns the design this style is defined in.
|
java.lang.String |
getPath()
Returns the path to this cell resource
|
Style |
getSubStyle(java.lang.String relPath)
Returns a sub style for the give one, by virtually extending the cell
stack.
|
Design getDesign()
java.lang.String getPath()
Cell getCell()
<T> T get(java.lang.String name, java.lang.Class<T> type)
null
if not existing.
Please note that this also supports a Resource
class as type
in order to retrieve a style resource (e.g. image)<T> T get(java.lang.String name, T defaultValue)
Resource getDefiningResource(java.lang.String name)
name
- name of the style propertynull
java.lang.String getDefiningPath(java.lang.String name)
name
- name of the style propertynull
Style getSubStyle(java.lang.String relPath)
relPath
- relative path of the sub style."Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"