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, wait
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
public ContentPolicyStyle(ContentPolicy contentPolicy, Cell cell)
public Design getDesign()
Style
public String getPath()
Style
public Cell getCell()
Style
public <T> T get(String name, Class<T> type)
Style
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)public <T> T get(String name, T defaultValue)
Style
public Resource getDefiningResource(String name)
Style
getDefiningResource
in interface Style
name
- name of the style propertynull
public String getDefiningPath(String name)
Style
getDefiningPath
in interface Style
name
- name of the style propertynull
public Style getSubStyle(String relPath)
Style
getSubStyle
in interface Style
relPath
- 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