|
|||||||
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
Default implementation of a direct action for a html list column.
Field Summary |
Fields inherited from class org.opencms.workplace.tools.A_CmsHtmlIconButton |
EMPTY_MESSAGE, m_id |
Constructor Summary | |
CmsListDirectAction(java.lang.String id)
Default Constructor. |
Method Summary | |
java.lang.String |
buttonHtml(CmsWorkplace wp)
Returns the necessary html code. |
java.lang.String |
confirmationTextHtml(CmsWorkplace wp)
Generates a confirmation text div tag, to use in lists where all items use the same confirmation text. |
java.lang.String |
getColumnForTexts()
Returns the id of the column to use as parameter for the helptext and confirmation message. |
CmsListItem |
getItem()
Returns the current item. |
java.lang.String |
helpTextHtml(CmsWorkplace wp)
Generates a help text div tag, to use in lists where all items use the same help text. |
protected CmsHtmlIconButtonStyleEnum |
resolveButtonStyle()
Help method to resolve the style of the button. |
protected java.lang.String |
resolveHelpText(java.util.Locale locale)
Help method to resolve the help text to use. |
protected java.lang.String |
resolveName(java.util.Locale locale)
Help method to resolve the name to use. |
protected java.lang.String |
resolveOnClic(java.util.Locale locale)
Help method to resolve the on clic text to use. |
void |
setColumnForTexts(java.lang.String columnId)
Sets the id of the column to use as parameter for the helptext and confirmation message. |
void |
setItem(CmsListItem item)
Sets the current item, should be called before the method. |
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 CmsListDirectAction(java.lang.String id)
id
- unique idMethod Detail |
protected java.lang.String resolveHelpText(java.util.Locale locale)
locale
- the used locale
protected java.lang.String resolveOnClic(java.util.Locale locale)
locale
- the used locale
protected java.lang.String resolveName(java.util.Locale locale)
locale
- the used locale
protected CmsHtmlIconButtonStyleEnum resolveButtonStyle()
public java.lang.String buttonHtml(CmsWorkplace wp)
I_CmsHtmlIconButton
buttonHtml
in interface I_CmsHtmlIconButton
wp
- the jsp page to write the code to
I_CmsHtmlIconButton.buttonHtml(CmsWorkplace)
public java.lang.String confirmationTextHtml(CmsWorkplace wp)
I_CmsListDirectAction
confirmationTextHtml
in interface I_CmsListDirectAction
wp
- the workplace instance
I_CmsListDirectAction.confirmationTextHtml(org.opencms.workplace.CmsWorkplace)
public java.lang.String getColumnForTexts()
I_CmsListDirectAction
getColumnForTexts
in interface I_CmsListDirectAction
I_CmsListDirectAction.getColumnForTexts()
public CmsListItem getItem()
I_CmsListDirectAction
getItem
in interface I_CmsListDirectAction
I_CmsListDirectAction.getItem()
public java.lang.String helpTextHtml(CmsWorkplace wp)
I_CmsListDirectAction
helpTextHtml
in interface I_CmsListDirectAction
wp
- the workplace instance
I_CmsListDirectAction.helpTextHtml(org.opencms.workplace.CmsWorkplace)
public void setColumnForTexts(java.lang.String columnId)
I_CmsListDirectAction
setColumnForTexts
in interface I_CmsListDirectAction
columnId
- the id of the column to useI_CmsListDirectAction.setColumnForTexts(java.lang.String)
public void setItem(CmsListItem item)
I_CmsListDirectAction
I_CmsHtmlIconButton.buttonHtml(org.opencms.workplace.CmsWorkplace)
method.
setItem
in interface I_CmsListDirectAction
item
- the itemI_CmsListDirectAction.setItem(org.opencms.workplace.list.CmsListItem)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |