I_CmsListAction detailAction = ((CmsListItemDetails)itDetails.next()).getAction(); html.append("\t\t"); html.append(detailAction.buttonHtml()); if (itDetails.hasNext()) { html.append(" "); html.append("\t\t"); html.append(" "); html.append(indepAction.buttonHtml()); html.append("\n");
defaultShowAllAction.setName(SHOWALL_NAME); defaultShowAllAction.setHelpText(SHOWALL_HELPTEXT); defaultShowAllAction.setIconPath(SHOWALL_ICON); defaultShowAllAction.setConfirmationMessage(SHOWALL_CONFIRMATION); return defaultShowAllAction;
hideAction.setIconPath(A_CmsListDialog.ICON_DETAILS_HIDE); hideAction.setName(Messages.get().container(Messages.GUI_LOCK_DETAIL_HIDE_OWN_LOCKS_NAME_0)); hideAction.setHelpText(Messages.get().container(Messages.GUI_LOCK_DETAIL_HIDE_OWN_LOCKS_HELP_0)); showAction.setIconPath(A_CmsListDialog.ICON_DETAILS_SHOW); showAction.setName(Messages.get().container(Messages.GUI_LOCK_DETAIL_SHOW_OWN_LOCKS_NAME_0)); showAction.setHelpText(Messages.get().container(Messages.GUI_LOCK_DETAIL_SHOW_OWN_LOCKS_HELP_0));
/** * @see org.opencms.workplace.list.A_CmsListDialog#executeListIndepActions() */ @Override public void executeListIndepActions() { if (LIST_IACTION_USERS.equals(getParamListAction())) { getList().getMetadata().getIndependentAction(LIST_IACTION_USERS).setVisible(false); getList().getMetadata().getIndependentAction(LIST_IACTION_GROUPS).setVisible(true); } else if (LIST_IACTION_GROUPS.equals(getParamListAction())) { getList().getMetadata().getIndependentAction(LIST_IACTION_USERS).setVisible(true); getList().getMetadata().getIndependentAction(LIST_IACTION_GROUPS).setVisible(false); } super.executeListIndepActions(); }
/** * Checks if we are currently displaying users or groups.<p> * * @return <code>true</code> if we are currently displaying users */ public boolean isShowingUsers() { return getList().getMetadata().getIndependentAction(LIST_IACTION_GROUPS).isVisible(); }
/** * Sets the help text of the hide action.<p> * * @param hideActionHelp the help text of the hide action */ public void setHideActionHelpText(CmsMessageContainer hideActionHelp) { m_hideAction.setHelpText(hideActionHelp); }
/** * Sets the name of the hide action.<p> * * @param hideActionName the name of the hide action */ public void setHideActionName(CmsMessageContainer hideActionName) { m_hideAction.setName(hideActionName); }
/** * Default constructor.<p> * * @param id the unique id */ public CmsListItemDetails(String id) { super(id); // set default actions setAlign(CmsListColumnAlignEnum.ALIGN_LEFT); m_hideAction = new CmsListIndependentAction(id); m_hideAction.setIconPath(A_CmsListDialog.ICON_DETAILS_HIDE); m_showAction = new CmsListIndependentAction(id); m_showAction.setIconPath(A_CmsListDialog.ICON_DETAILS_SHOW); }
getList().getMetadata().getIndependentAction(LIST_ACTION_VIEW1).setEnabled(getResource1().isFile()); getList().getMetadata().getIndependentAction(LIST_ACTION_VIEW2).setEnabled(getResource2().isFile());
String id = itIndepActions.next().getId(); if (ids.contains(id)) { throw new CmsIllegalStateException(Messages.get().container(Messages.ERR_DUPLICATED_ID_1, id));
hideAction.setIconPath(A_CmsListDialog.ICON_DETAILS_HIDE); hideAction.setName(Messages.get().container(Messages.GUI_LOCK_DETAIL_HIDE_OWN_LOCKS_NAME_0)); hideAction.setHelpText(Messages.get().container(Messages.GUI_LOCK_DETAIL_HIDE_OWN_LOCKS_HELP_0)); showAction.setIconPath(A_CmsListDialog.ICON_DETAILS_SHOW); showAction.setName(Messages.get().container(Messages.GUI_LOCK_DETAIL_SHOW_OWN_LOCKS_NAME_0)); showAction.setHelpText(Messages.get().container(Messages.GUI_LOCK_DETAIL_SHOW_OWN_LOCKS_HELP_0));
/** * @see org.opencms.workplace.list.A_CmsListDialog#executeListIndepActions() */ @Override public void executeListIndepActions() { if (LIST_IACTION_USERS.equals(getParamListAction())) { getList().getMetadata().getIndependentAction(LIST_IACTION_USERS).setVisible(false); getList().getMetadata().getIndependentAction(LIST_IACTION_GROUPS).setVisible(true); } else if (LIST_IACTION_GROUPS.equals(getParamListAction())) { getList().getMetadata().getIndependentAction(LIST_IACTION_USERS).setVisible(true); getList().getMetadata().getIndependentAction(LIST_IACTION_GROUPS).setVisible(false); } super.executeListIndepActions(); }
/** * Checks if we are currently displaying users or groups.<p> * * @return <code>true</code> if we are currently displaying users */ public boolean isShowingUsers() { return getList().getMetadata().getIndependentAction(LIST_IACTION_GROUPS).isVisible(); }
/** * Sets the help text of the show action.<p> * * @param showActionHelp the help text of the show action */ public void setShowActionHelpText(CmsMessageContainer showActionHelp) { m_showAction.setHelpText(showActionHelp); }
/** * Sets the name of the show action.<p> * * @param showActionName the name of the show action */ public void setShowActionName(CmsMessageContainer showActionName) { m_showAction.setName(showActionName); } }
/** * Default constructor.<p> * * @param id the unique id */ public CmsListItemDetails(String id) { super(id); // set default actions setAlign(CmsListColumnAlignEnum.ALIGN_LEFT); m_hideAction = new CmsListIndependentAction(id); m_hideAction.setIconPath(A_CmsListDialog.ICON_DETAILS_HIDE); m_showAction = new CmsListIndependentAction(id); m_showAction.setIconPath(A_CmsListDialog.ICON_DETAILS_SHOW); }
getList().getMetadata().getIndependentAction(LIST_ACTION_VIEW1).setEnabled(getResource1().isFile()); getList().getMetadata().getIndependentAction(LIST_ACTION_VIEW2).setEnabled(getResource2().isFile());