Package org.opencms.workplace.list
Class CmsListResourceIconAction
java.lang.Object
org.opencms.workplace.tools.A_CmsHtmlIconButton
org.opencms.workplace.list.A_CmsListAction
org.opencms.workplace.list.CmsListDirectAction
org.opencms.workplace.list.CmsListResourceIconAction
- All Implemented Interfaces:
- I_CmsListAction,- I_CmsListDirectAction,- org.opencms.workplace.tools.I_CmsHtmlIconButton
- Direct Known Subclasses:
- CmsDependencyIconAction
Displays an icon action for dependency lists.
- Since:
- 6.0.0
- 
Field SummaryFields inherited from class org.opencms.workplace.tools.A_CmsHtmlIconButtonEMPTY_MESSAGE, m_id
- 
Constructor SummaryConstructorsConstructorDescriptionCmsListResourceIconAction(String id, String resColumnTypeId, org.opencms.file.CmsObject cms) Default Constructor.
- 
Method SummaryModifier and TypeMethodDescriptionbuttonHtml(org.opencms.workplace.CmsWorkplace wp) protected StringdefButtonHtml(org.opencms.file.CmsObject cms, 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.org.opencms.file.CmsObjectgetCms()Returns the cms context.Methods inherited from class org.opencms.workplace.list.CmsListDirectActionconfirmationTextHtml, getColumnForTexts, getItem, helpTextHtml, resolveButtonStyle, resolveHelpText, resolveName, resolveOnClic, setColumnForTexts, setItemMethods inherited from class org.opencms.workplace.list.A_CmsListActionbuttonHtml, defaultConfirmationHtml, getConfirmationMessage, getListId, getWp, setConfirmationMessage, setListId, setWpMethods inherited from class org.opencms.workplace.tools.A_CmsHtmlIconButtondefaultButtonHtml, defaultButtonHtml, defaultHelpHtml, getHelpText, getId, getName, isEnabled, isVisible, setEnabled, setHelpText, setIconPath, setName, setVisibleMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opencms.workplace.tools.I_CmsHtmlIconButtongetHelpText, getId, getName, isEnabled, isVisible, setEnabled, setHelpText, setIconPath, setName, setVisibleMethods inherited from interface org.opencms.workplace.list.I_CmsListActionbuttonHtml, getConfirmationMessage, getListId, getWp, setConfirmationMessage, setListId, setWp
- 
Constructor Details- 
CmsListResourceIconActionDefault Constructor.- Parameters:
- id- the unique id
- resColumnTypeId- the id of the column with the resource type
- cms- the cms context
 
 
- 
- 
Method Details- 
buttonHtml- Specified by:
- buttonHtmlin interface- org.opencms.workplace.tools.I_CmsHtmlIconButton
- Overrides:
- buttonHtmlin class- CmsListDirectAction
- See Also:
 
- 
getCmsReturns the cms context.- Returns:
- the cms context
 
- 
getIconPath- Specified by:
- getIconPathin interface- org.opencms.workplace.tools.I_CmsHtmlIconButton
- Overrides:
- getIconPathin class- org.opencms.workplace.tools.A_CmsHtmlIconButton
- See Also:
 
- 
defButtonHtmlprotected String defButtonHtml(org.opencms.file.CmsObject cms, 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.the only diff to A_CmsHtmlIconButton.defaultButtonHtml(org.opencms.workplace.tools.CmsHtmlIconButtonStyleEnum, String, String, String, boolean, String, String, String)- Parameters:
- cms- the cms context, can be null
- id- the id
- helpId- the id of the helptext div tag
- name- the name, if empty only the icon is displayed
- helpText- the help text, if empty no mouse events are generated
- enabled- if enabled or not, if not set be sure to take an according helptext
- iconPath- the path to the icon, if empty only the name is displayed
- confirmationMessage- the confirmation message
- onClick- the js code to execute, if empty no link is generated
- singleHelp- if set, no helptext is written, you have to use the defaultHelpHtml() method later
- Returns:
- html code
- See Also:
 
 
-