|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opencms.workplace.tools.CmsTool
public class CmsTool
Implementation of an administration tool.
An admin tool can be a link to itself through
the method,
as also a group of buttonHtml(CmsWorkplace)s through the
CmsToolGroup method.groupHtml(CmsWorkplace)
| Constructor Summary | |
|---|---|
CmsTool(String id,
I_CmsToolHandler handler)
Default Constructor. |
|
| Method Summary | |
|---|---|
void |
addToolGroup(CmsToolGroup group)
Adds a group. |
void |
addToolGroup(CmsToolGroup group,
float position)
Adds a group at the given position. |
String |
buttonHtml(CmsWorkplace wp)
Returns the necessary html code for a link to this tool. |
boolean |
equals(Object obj)
Compares two tools by name. |
I_CmsToolHandler |
getHandler()
Returns the handler. |
String |
getId()
Returns the dhtml unique id. |
CmsToolGroup |
getToolGroup(String name)
Returns the requested group. |
List |
getToolGroups()
Retuns a list of groups. |
String |
groupHtml(CmsWorkplace wp)
Returns the necessary html code for the tool subgroups. |
int |
hashCode()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CmsTool(String id,
I_CmsToolHandler handler)
id - a unique idhandler - the handler that represents this tool| Method Detail |
|---|
public void addToolGroup(CmsToolGroup group)
group - the groupI_CmsIdentifiableObjectContainer.addIdentifiableObject(String, Object)
public void addToolGroup(CmsToolGroup group,
float position)
group - the groupposition - the positionI_CmsIdentifiableObjectContainer.addIdentifiableObject(String, Object, float)public String buttonHtml(CmsWorkplace wp)
wp - the jsp page to write the code to
public boolean equals(Object obj)
equals in class Objectobj - the other tool
true if the tools have the same namepublic I_CmsToolHandler getHandler()
public String getId()
public CmsToolGroup getToolGroup(String name)
name - the name of the group
I_CmsIdentifiableObjectContainer.getObject(String)public List getToolGroups()
CmsToolGrouppublic String groupHtml(CmsWorkplace wp)
wp - the jsp page to write the code to
public int hashCode()
hashCode in class ObjectObject.hashCode()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||