public class CmsTool extends java.lang.Object
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 and Description |
|---|
CmsTool(java.lang.String id,
I_CmsToolHandler handler)
Default Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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<CmsToolGroup> |
getToolGroups()
Returns a list of groups.
|
java.lang.String |
groupHtml(CmsWorkplace wp)
Returns the necessary html code for the tool subgroups.
|
int |
hashCode() |
public CmsTool(java.lang.String id, I_CmsToolHandler handler)
id - a unique idhandler - the handler that represents this toolpublic 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 topublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the other tooltrue 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 groupCmsIdentifiableObjectContainer.getObject(String)public java.util.List<CmsToolGroup> getToolGroups()
CmsToolGrouppublic java.lang.String groupHtml(CmsWorkplace wp)
wp - the jsp page to write the code topublic int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()