public class CmsListResourceIconAction extends CmsListDirectAction
EMPTY_MESSAGE, m_id
构造器和说明 |
---|
CmsListResourceIconAction(java.lang.String id,
java.lang.String resColumnTypeId,
CmsObject cms)
Default Constructor.
|
限定符和类型 | 方法和说明 |
---|---|
java.lang.String |
buttonHtml(CmsWorkplace wp)
Returns the necessary html code.
|
protected java.lang.String |
defButtonHtml(CmsObject cms,
java.lang.String id,
java.lang.String helpId,
java.lang.String name,
java.lang.String helpText,
boolean enabled,
java.lang.String iconPath,
java.lang.String confirmationMessage,
java.lang.String onClick,
boolean singleHelp)
Generates a default html code where several buttons can have the same help text.
|
CmsObject |
getCms()
Returns the cms context.
|
java.lang.String |
getIconPath()
Returns the path to the icon.
|
confirmationTextHtml, getColumnForTexts, getItem, helpTextHtml, resolveButtonStyle, resolveHelpText, resolveName, resolveOnClic, setColumnForTexts, setItem
buttonHtml, defaultConfirmationHtml, getConfirmationMessage, getListId, getWp, setConfirmationMessage, setListId, setWp
defaultButtonHtml, defaultButtonHtml, defaultHelpHtml, getHelpText, getId, getName, isEnabled, isVisible, setEnabled, setHelpText, setIconPath, setName, setVisible
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
buttonHtml, getConfirmationMessage, getListId, getWp, setConfirmationMessage, setListId, setWp
getHelpText, getId, getName, isEnabled, isVisible, setEnabled, setHelpText, setIconPath, setName, setVisible
public CmsListResourceIconAction(java.lang.String id, java.lang.String resColumnTypeId, CmsObject cms)
id
- the unique idresColumnTypeId
- the id of the column with the resource typecms
- the cms contextpublic java.lang.String buttonHtml(CmsWorkplace wp)
I_CmsHtmlIconButton
buttonHtml
在接口中 I_CmsHtmlIconButton
buttonHtml
在类中 CmsListDirectAction
wp
- the jsp page to write the code toCmsListDirectAction.buttonHtml(org.opencms.workplace.CmsWorkplace)
public CmsObject getCms()
public java.lang.String getIconPath()
I_CmsHtmlIconButton
getIconPath
在接口中 I_CmsHtmlIconButton
getIconPath
在类中 A_CmsHtmlIconButton
A_CmsHtmlIconButton.getIconPath()
protected java.lang.String defButtonHtml(CmsObject cms, java.lang.String id, java.lang.String helpId, java.lang.String name, java.lang.String helpText, boolean enabled, java.lang.String iconPath, java.lang.String confirmationMessage, java.lang.String onClick, boolean singleHelp)
the only diff to
is that the icons are 16x16.A_CmsHtmlIconButton.defaultButtonHtml(org.opencms.workplace.tools.CmsHtmlIconButtonStyleEnum, String, String, String, boolean, String, String, String)
cms
- 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 laterA_CmsHtmlIconButton.defaultButtonHtml(org.opencms.workplace.tools.CmsHtmlIconButtonStyleEnum, String, String, String, boolean, String, String, String)