Package org.opencms.workplace.tools
Class CmsTool
java.lang.Object
org.opencms.workplace.tools.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)
- Since:
- 6.0.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addToolGroup
(CmsToolGroup group) Adds a group.void
addToolGroup
(CmsToolGroup group, float position) Adds a group at the given position.Returns the necessary html code for a link to this tool.boolean
Compares two tools by name.Returns the handler.getId()
Returns the dhtml unique id.getToolGroup
(String name) Returns the requested group.Returns a list of groups.Returns the necessary html code for the tool subgroups.int
hashCode()
-
Constructor Details
-
CmsTool
Default Constructor.- Parameters:
id
- a unique idhandler
- the handler that represents this tool
-
-
Method Details
-
addToolGroup
Adds a group.- Parameters:
group
- the group- See Also:
-
addToolGroup
Adds a group at the given position.- Parameters:
group
- the groupposition
- the position- See Also:
-
buttonHtml
Returns the necessary html code for a link to this tool.- Parameters:
wp
- the jsp page to write the code to- Returns:
- html code
-
equals
Compares two tools by name. -
getHandler
Returns the handler.- Returns:
- the handler
-
getId
Returns the dhtml unique id.- Returns:
- the dhtml unique id
-
getToolGroup
Returns the requested group.- Parameters:
name
- the name of the group- Returns:
- the group
- See Also:
-
getToolGroups
Returns a list of groups.- Returns:
- a list of
CmsToolGroup
-
groupHtml
Returns the necessary html code for the tool subgroups.- Parameters:
wp
- the jsp page to write the code to- Returns:
- html code
-
hashCode
-