|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opencms.workplace.tools.A_CmsHtmlIconButton
org.opencms.workplace.list.A_CmsListAction
org.opencms.workplace.list.CmsListDirectAction
org.opencms.workplace.list.CmsListExplorerDirectAction
public class CmsListExplorerDirectAction
Displays a 16x16 icon from the explorer view in a list action.
| Field Summary |
|---|
| Fields inherited from class org.opencms.workplace.tools.A_CmsHtmlIconButton |
|---|
EMPTY_MESSAGE, m_id |
| Constructor Summary | |
|---|---|
CmsListExplorerDirectAction(String id,
A_CmsListExplorerDialog wp)
Default Constructor. |
|
| Method Summary | |
|---|---|
String |
buttonHtml(CmsWorkplace wp)
Returns the necessary html code. |
protected String |
defButtonHtml(CmsJspActionElement jsp,
String id,
String helpId,
String name,
String helpText,
boolean enabled,
String iconPath,
String confirmationMessage,
String onClick,
boolean singleHelp)
Generates a default html code where several buttons can have the same help text. |
protected CmsResourceUtil |
getResourceUtil()
Returns the current result Util. |
A_CmsListExplorerDialog |
getWp()
Returns used the dialog. |
void |
setItem(CmsListItem item)
Sets the current item, should be called before the method. |
void |
setWp(A_CmsListExplorerDialog wp)
Sets the workplace dialog. |
| Methods inherited from class org.opencms.workplace.list.CmsListDirectAction |
|---|
confirmationTextHtml, getColumnForTexts, getItem, helpTextHtml, resolveButtonStyle, resolveHelpText, resolveName, resolveOnClic, setColumnForTexts |
| Methods inherited from class org.opencms.workplace.list.A_CmsListAction |
|---|
defaultConfirmationHtml, getConfirmationMessage, getListId, setConfirmationMessage, setListId |
| Methods inherited from class org.opencms.workplace.tools.A_CmsHtmlIconButton |
|---|
defaultButtonHtml, defaultButtonHtml, defaultHelpHtml, getHelpText, getIconPath, getId, getName, isEnabled, isVisible, setEnabled, setHelpText, setIconPath, setName, setVisible |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.opencms.workplace.list.I_CmsListAction |
|---|
getConfirmationMessage, getListId, setConfirmationMessage, setListId |
| Methods inherited from interface org.opencms.workplace.tools.I_CmsHtmlIconButton |
|---|
getHelpText, getIconPath, getId, getName, isEnabled, isVisible, setEnabled, setHelpText, setIconPath, setName, setVisible |
| Constructor Detail |
|---|
public CmsListExplorerDirectAction(String id,
A_CmsListExplorerDialog wp)
id - the unique idwp - the current workplace context| Method Detail |
|---|
public String buttonHtml(CmsWorkplace wp)
I_CmsHtmlIconButton
buttonHtml in interface I_CmsHtmlIconButtonbuttonHtml in class CmsListDirectActionwp - the jsp page to write the code to
CmsListDirectAction.buttonHtml(org.opencms.workplace.CmsWorkplace)public A_CmsListExplorerDialog getWp()
public void setItem(CmsListItem item)
I_CmsListDirectActionI_CmsHtmlIconButton.buttonHtml(org.opencms.workplace.CmsWorkplace) method.
setItem in interface I_CmsListDirectActionsetItem in class CmsListDirectActionitem - the itemI_CmsListDirectAction.setItem(org.opencms.workplace.list.CmsListItem)public void setWp(A_CmsListExplorerDialog wp)
wp - the workplace dialog
protected String defButtonHtml(CmsJspActionElement jsp,
String id,
String helpId,
String name,
String helpText,
boolean enabled,
String iconPath,
String confirmationMessage,
String onClick,
boolean singleHelp)
the only diff to
is that the icons are 16x16.A_CmsHtmlIconButton.defaultButtonHtml(CmsJspActionElement, org.opencms.workplace.tools.CmsHtmlIconButtonStyleEnum, String, String, String, boolean, String, String, String)
jsp - the cms context, can be nullid - the idhelpId - the id of the helptext div tagname - the name, if empty only the icon is displayedhelpText - the help text, if empty no mouse events are generatedenabled - if enabled or not, if not set be sure to take an according helptexticonPath - the path to the icon, if empty only the name is displayedonClick - the js code to execute, if empty no link is generatedconfirmationMessage - the confirmation messagesingleHelp - if set, no helptext is written, you have to use the defaultHelpHtml() method later
A_CmsHtmlIconButton.defaultButtonHtml(CmsJspActionElement, org.opencms.workplace.tools.CmsHtmlIconButtonStyleEnum, String, String, String, boolean, String, String, String)protected CmsResourceUtil getResourceUtil()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||