|
|||||||||||
| 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.A_CmsListToggleAction
org.opencms.workplace.list.A_CmsListTwoStatesAction
Abstract implementation of a two state action for a html list.
You have to extend this class and implement the method,
where you can use the A_CmsListToggleAction.selectAction() to access the cms context.getCms()
| Field Summary |
| Fields inherited from class org.opencms.workplace.tools.A_CmsHtmlIconButton |
EMPTY_MESSAGE, m_id |
| Constructor Summary | |
protected |
A_CmsListTwoStatesAction(String id,
CmsObject cms)
Default Constructor. |
| Method Summary | |
String |
confirmationTextHtml(CmsWorkplace wp)
Generates a confirmation text div tag, to use in lists where all items use the same confirmation text. |
CmsObject |
getCms()
Returns the cms context object. |
I_CmsListDirectAction |
getFirstAction()
Returns the first Action. |
I_CmsListDirectAction |
getSecondAction()
Returns the second Action. |
String |
helpTextHtml(CmsWorkplace wp)
Generates a help text div tag, to use in lists where all items use the same help text. |
void |
setFirstAction(I_CmsListDirectAction firstAction)
Sets the first Action. |
void |
setItem(CmsListItem item)
Sets the current item, should be called before the method. |
void |
setSecondAction(I_CmsListDirectAction secondAction)
Sets the second Action. |
| Methods inherited from class org.opencms.workplace.list.A_CmsListToggleAction |
getColumn, getConfirmationMessage, getHelpText, getIconPath, getId, getName, isEnabled, selectAction |
| Methods inherited from class org.opencms.workplace.list.CmsListDirectAction |
buttonHtml, getItem, setColumn |
| Methods inherited from class org.opencms.workplace.list.A_CmsListAction |
defaultConfirmationHtml, getListId, setConfirmationMessage, setListId |
| Methods inherited from class org.opencms.workplace.tools.A_CmsHtmlIconButton |
defaultButtonHtml, defaultButtonHtml, defaultHelpHtml, setEnabled, setHelpText, setIconPath, setName |
| 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 |
getListId, setConfirmationMessage, setListId |
| Methods inherited from interface org.opencms.workplace.tools.I_CmsHtmlIconButton |
setEnabled, setHelpText, setIconPath, setName |
| Constructor Detail |
protected A_CmsListTwoStatesAction(String id,
CmsObject cms)
Be careful while using the cms object to select the proper action, this cms object will be set only once the first time the action is needed, after that every user/session that may access to this action will be using the same cms object.
So use only methods that do not need role checks and those that do not are current user dependent.
id - the unique idcms - the cms context| Method Detail |
public String confirmationTextHtml(CmsWorkplace wp)
I_CmsListDirectAction
confirmationTextHtml in interface I_CmsListDirectActionconfirmationTextHtml in class CmsListDirectActionCmsListDirectAction.confirmationTextHtml(org.opencms.workplace.CmsWorkplace)public CmsObject getCms()
public I_CmsListDirectAction getFirstAction()
public I_CmsListDirectAction getSecondAction()
public String helpTextHtml(CmsWorkplace wp)
I_CmsListDirectAction
helpTextHtml in interface I_CmsListDirectActionhelpTextHtml in class CmsListDirectActionCmsListDirectAction.helpTextHtml(org.opencms.workplace.CmsWorkplace)public void setFirstAction(I_CmsListDirectAction firstAction)
firstAction - the activation Action to setpublic void setItem(CmsListItem item)
I_CmsListDirectActionI_CmsHtmlIconButton.buttonHtml(org.opencms.workplace.CmsWorkplace) method.
setItem in interface I_CmsListDirectActionsetItem in class CmsListDirectActionCmsListDirectAction.setItem(org.opencms.workplace.list.CmsListItem)public void setSecondAction(I_CmsListDirectAction secondAction)
secondAction - the second Action to set
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||