public class ContentPolicyStyle extends Object implements Style
| Constructor and Description |
|---|
ContentPolicyStyle(ContentPolicy contentPolicy,
Cell cell) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
containsKey(Object o) |
boolean |
containsValue(Object o) |
Set<Map.Entry<String,Object>> |
entrySet() |
Object |
get(Object o) |
<T> T |
get(String name,
Class<T> type)
Return named value converted to type T or
null if not existing. |
<T> T |
get(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
|
String |
getDefiningPath(String name)
Returns the cell path that defines the style property with the given name.
|
Resource |
getDefiningResource(String name)
Returns the resource that defines the style property with the given name.
|
Design |
getDesign()
Returns the design this style is defined in.
|
String |
getPath()
Returns the path to this cell resource
|
Style |
getSubStyle(String relPath)
Returns a sub style for the give one, by virtually extending the cell
stack.
|
boolean |
isEmpty() |
Set<String> |
keySet() |
Object |
put(String s,
Object o) |
void |
putAll(Map<? extends String,?> map) |
Object |
remove(Object o) |
int |
size() |
Collection<Object> |
values() |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAllpublic ContentPolicyStyle(ContentPolicy contentPolicy, Cell cell)
public Design getDesign()
Stylepublic String getPath()
Stylepublic Cell getCell()
Stylepublic <T> T get(String name, Class<T> type)
Stylenull if not existing.
Please note that this also supports a Resource class as type
in order to retrieve a style resource (e.g. image)public <T> T get(String name, T defaultValue)
Stylepublic Resource getDefiningResource(String name)
StylegetDefiningResource in interface Stylename - name of the style propertynullpublic String getDefiningPath(String name)
StylegetDefiningPath in interface Stylename - name of the style propertynullpublic Style getSubStyle(String relPath)
StylegetSubStyle in interface StylerelPath - relative path of the sub style.public boolean containsKey(Object o)
containsKey in interface Map<String,Object>public boolean containsValue(Object o)
containsValue in interface Map<String,Object>Copyright © 2010 - 2020 Adobe. All Rights Reserved