|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Style
A style contains properties that reflect the design aspect of a cell.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
Map.Entry<K,V> |
| Field Summary |
|---|
| Fields inherited from interface org.apache.sling.api.resource.ValueMap |
|---|
EMPTY |
| Method Summary | ||
|---|---|---|
|
get(String name,
Class<T> type)
Return named value converted to type T or null if not existing. |
|
|
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. |
|
org.apache.sling.api.resource.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. |
|
| Methods inherited from interface java.util.Map |
|---|
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
| Method Detail |
|---|
Design getDesign()
String getPath()
Cell getCell()
<T> T get(String name,
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)
get in interface org.apache.sling.api.resource.ValueMapname - the name of the property or resource
<T> T get(String name,
T defaultValue)
get in interface org.apache.sling.api.resource.ValueMapname - the name of the propertydefaultValue - the default value
org.apache.sling.api.resource.Resource getDefiningResource(String name)
name - name of the style property
nullString getDefiningPath(String name)
name - name of the style property
nullStyle getSubStyle(String relPath)
relPath - relative path of the sub style.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||