public class ContentPolicyStyle extends java.lang.Object implements Style
Constructor and Description |
---|
ContentPolicyStyle(ContentPolicy contentPolicy,
Cell cell) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsKey(java.lang.Object o) |
boolean |
containsValue(java.lang.Object o) |
java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.Object>> |
entrySet() |
java.lang.Object |
get(java.lang.Object o) |
<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.
|
boolean |
isEmpty() |
java.util.Set<java.lang.String> |
keySet() |
java.lang.Object |
put(java.lang.String s,
java.lang.Object o) |
void |
putAll(java.util.Map<? extends java.lang.String,?> map) |
java.lang.Object |
remove(java.lang.Object o) |
int |
size() |
java.util.Collection<java.lang.Object> |
values() |
public ContentPolicyStyle(ContentPolicy contentPolicy, Cell cell)
public Design getDesign()
Style
public java.lang.String getPath()
Style
public Cell getCell()
Style
public <T> T get(java.lang.String name, java.lang.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(java.lang.String name, T defaultValue)
Style
public Resource getDefiningResource(java.lang.String name)
Style
getDefiningResource
in interface Style
name
- name of the style propertynull
public java.lang.String getDefiningPath(java.lang.String name)
Style
getDefiningPath
in interface Style
name
- name of the style propertynull
public Style getSubStyle(java.lang.String relPath)
Style
getSubStyle
in interface Style
relPath
- relative path of the sub style.public int size()
size
in interface java.util.Map<java.lang.String,java.lang.Object>
public boolean isEmpty()
isEmpty
in interface java.util.Map<java.lang.String,java.lang.Object>
public boolean containsKey(java.lang.Object o)
containsKey
in interface java.util.Map<java.lang.String,java.lang.Object>
public boolean containsValue(java.lang.Object o)
containsValue
in interface java.util.Map<java.lang.String,java.lang.Object>
public java.lang.Object get(java.lang.Object o)
get
in interface java.util.Map<java.lang.String,java.lang.Object>
public java.lang.Object put(java.lang.String s, java.lang.Object o)
put
in interface java.util.Map<java.lang.String,java.lang.Object>
public java.lang.Object remove(java.lang.Object o)
remove
in interface java.util.Map<java.lang.String,java.lang.Object>
public void putAll(java.util.Map<? extends java.lang.String,?> map)
putAll
in interface java.util.Map<java.lang.String,java.lang.Object>
public void clear()
clear
in interface java.util.Map<java.lang.String,java.lang.Object>
public java.util.Set<java.lang.String> keySet()
keySet
in interface java.util.Map<java.lang.String,java.lang.Object>
public java.util.Collection<java.lang.Object> values()
values
in interface java.util.Map<java.lang.String,java.lang.Object>
public java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.Object>> entrySet()
entrySet
in interface java.util.Map<java.lang.String,java.lang.Object>
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"