|
||||||
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(java.lang.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. |
java.lang.String |
buttonHtml(CmsWorkplace wp)
Returns the necessary html code for a link to this tool. |
boolean |
equals(java.lang.Object obj)
Compares two tools by name. |
I_CmsToolHandler |
getHandler()
Returns the handler. |
java.lang.String |
getId()
Returns the dhtml unique id. |
CmsToolGroup |
getToolGroup(java.lang.String name)
Returns the requested group. |
java.util.List |
getToolGroups()
Retuns a list of groups. |
java.lang.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(java.lang.String id, I_CmsToolHandler handler)
id
- a unique idhandler
- the handler that represents this toolMethod Detail |
---|
public void addToolGroup(CmsToolGroup group)
group
- the groupCmsIdentifiableObjectContainer.addIdentifiableObject(String, Object)
public void addToolGroup(CmsToolGroup group, float position)
group
- the groupposition
- the positionCmsIdentifiableObjectContainer.addIdentifiableObject(String, Object, float)
public java.lang.String buttonHtml(CmsWorkplace wp)
wp
- the jsp page to write the code to
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the other tool
true
if the tools have the same namepublic I_CmsToolHandler getHandler()
public java.lang.String getId()
public CmsToolGroup getToolGroup(java.lang.String name)
name
- the name of the group
CmsIdentifiableObjectContainer.getObject(String)
public java.util.List getToolGroups()
CmsToolGroup
public java.lang.String groupHtml(CmsWorkplace wp)
wp
- the jsp page to write the code to
public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |