|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Component
Defines a CQ5 Component
| Method Summary | |
|---|---|
String |
getCellName()
Returns the cell name of this component. |
ComponentEditConfig |
getChildEditConfig()
Returns the child edit config of this component or the one of it's super component. |
String |
getComponentGroup()
Returns the name of the component group. |
ComponentEditConfig |
getDeclaredChildEditConfig()
Returns the child edit config of this component |
ComponentEditConfig |
getDeclaredEditConfig()
Returns the edit config of this component |
String |
getDefaultView()
Returns the default view for this component |
String |
getDesignDialogPath()
Returns the design dialog path of this component or of an inherited one. |
ComponentEditConfig |
getDesignEditConfig(String cellName)
Returns the design edit config for the given cell name |
String |
getDialogPath()
Returns the dialog path of this component or of an inherited one. |
ComponentEditConfig |
getEditConfig()
Returns the edit config of this component or the one of it's super component. |
Map<String,String> |
getHtmlTagAttributes()
Returns additional tag attributes that are added to the surrounding html tag. |
String |
getIconPath()
Returns the path to an icon for this component or null if
the component does not provide an icon. |
org.apache.sling.api.resource.Resource |
getLocalResource(String name)
Finds the resource with the given name that is stored "in" this component. |
org.apache.sling.api.resource.ValueMap |
getProperties()
Returns the properties of
this Component. |
String |
getResourceType()
Returns the resource type to be used for this component. |
Component |
getSuperComponent()
Returns the super component if the super resource type is defined and points to a valid component. |
String |
getThumbnailPath()
Returns the path to a thumbnail for this component or null
if the component does not provide a thumbnail. |
Collection<VirtualComponent> |
getVirtualComponents()
Returns a collection of virtual components that are configured for this component. |
boolean |
isContainer()
Checks if this component is a container component. |
boolean |
isDesignable()
Checks if this component is designable. |
boolean |
isEditable()
Checks if this component is editable. |
boolean |
noDecoration()
Checks if this component does not need decoration when included. |
| Methods inherited from interface org.apache.sling.api.adapter.Adaptable |
|---|
adaptTo |
| Methods inherited from interface com.day.cq.commons.LabeledResource |
|---|
getDescription, getName, getPath, getTitle |
| Method Detail |
|---|
String getCellName()
boolean isEditable()
true if the component is editable.boolean isDesignable()
true if the component is designable.boolean isContainer()
true if this component is a container.boolean noDecoration()
true if this component does not need decoration
when included.String getDialogPath()
nullString getDesignDialogPath()
nullString getIconPath()
null if
the component does not provide an icon.
If this component does not define a path the one of the super component
is returned.
Note: the path is a webapp relative URL. eg: /docroot/c1.gif
nullString getThumbnailPath()
null
if the component does not provide a thumbnail.
If this component does not define a path the one of the super component
is returned.
Note: the path is a webapp relative URL. eg: /docroot/c1.gif
nullString getComponentGroup()
null if not defined.org.apache.sling.api.resource.ValueMap getProperties()
properties of
this Component.
ComponentEditConfig getDeclaredEditConfig()
null if not availableComponentEditConfig getDeclaredChildEditConfig()
null if not availableComponentEditConfig getEditConfig()
null if not availableComponentEditConfig getChildEditConfig()
null if not availableComponentEditConfig getDesignEditConfig(String cellName)
cellName - name of the cell
Map<String,String> getHtmlTagAttributes()
Component getSuperComponent()
nullString getResourceType()
org.apache.sling.api.resource.Resource getLocalResource(String name)
name - name of the resource
Collection<VirtualComponent> getVirtualComponents()
String getDefaultView()
null is not defined.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||