|
|||||||
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.CmsListDefaultAction
org.opencms.workplace.list.A_CmsListDefaultJsAction
org.opencms.workplace.list.CmsListOpenResourceAction
Opens the selected resource in a new window.
Be sure your list updates the cms context, overriding the A_CmsListDialog.getList()
method, like:
// assure we have the right cms CmsHtmlList list = super.getList(); if (list != null) { CmsListColumnDefinition col = list.getMetadata().getColumnDefinition(LIST_COLUMN_NAME); if (col != null) { ((CmsListOpenResourceAction)col.getDefaultAction(LIST_DEFACTION_OPEN)).setCms(getCms()); } } return list;
Field Summary |
Fields inherited from class org.opencms.workplace.tools.A_CmsHtmlIconButton |
EMPTY_MESSAGE, m_id |
Constructor Summary | |
CmsListOpenResourceAction(java.lang.String id,
CmsObject cms,
java.lang.String resColumnPathId)
Default Constructor. |
Method Summary | |
CmsMessageContainer |
getHelpText()
Returns the help text. |
boolean |
isEnabled()
Returns if enabled or disabled. |
java.lang.String |
jsCode()
The js code to execute. |
void |
setCms(CmsObject cms)
Sets the cms context. |
Methods inherited from class org.opencms.workplace.list.A_CmsListDefaultJsAction |
resolveOnClic |
Methods inherited from class org.opencms.workplace.list.CmsListDefaultAction |
resolveButtonStyle, resolveName, setColumnForLink |
Methods inherited from class org.opencms.workplace.list.CmsListDirectAction |
buttonHtml, confirmationTextHtml, getColumnForTexts, getItem, helpTextHtml, resolveHelpText, setColumnForTexts, setItem |
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, getIconPath, getId, getName, 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 |
getIconPath, getId, getName, isVisible, setEnabled, setHelpText, setIconPath, setName, setVisible |
Constructor Detail |
public CmsListOpenResourceAction(java.lang.String id, CmsObject cms, java.lang.String resColumnPathId)
id
- the unique idcms
- the cms contextresColumnPathId
- the id of the column with the resource root pathMethod Detail |
public CmsMessageContainer getHelpText()
I_CmsHtmlIconButton
getHelpText
in interface I_CmsHtmlIconButton
getHelpText
in class A_CmsHtmlIconButton
I_CmsHtmlIconButton.getHelpText()
public boolean isEnabled()
I_CmsHtmlIconButton
isEnabled
in interface I_CmsHtmlIconButton
isEnabled
in class A_CmsHtmlIconButton
I_CmsHtmlIconButton.isEnabled()
public java.lang.String jsCode()
A_CmsListDefaultJsAction
jsCode
in class A_CmsListDefaultJsAction
A_CmsListDefaultJsAction.jsCode()
public void setCms(CmsObject cms)
cms
- the cms context to set
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |