/** * @see org.opencms.workplace.tools.accounts.A_CmsUsersList#setEditAction(org.opencms.workplace.list.CmsListColumnDefinition) */ @Override protected void setEditAction(CmsListColumnDefinition editCol) { CmsListDirectAction editAction = new CmsListDirectAction(LIST_ACTION_EDIT); editAction.setName(Messages.get().container(Messages.GUI_USERS_LIST_ACTION_EDIT_NAME_0)); editAction.setIconPath(PATH_BUTTONS + "user.png"); editAction.setEnabled(false); editCol.addDirectAction(editAction); }
/** * @see org.opencms.workplace.tools.accounts.A_CmsUsersList#setDeleteAction(org.opencms.workplace.list.CmsListColumnDefinition) */ @Override protected void setDeleteAction(CmsListColumnDefinition deleteCol) { CmsListDirectAction deleteAction = new CmsListDirectAction(LIST_ACTION_DELETE); deleteAction.setName(Messages.get().container(Messages.GUI_USERS_LIST_ACTION_DELETE_NAME_0)); deleteAction.setHelpText(Messages.get().container(Messages.GUI_USERS_LIST_ACTION_DELETE_HELP_0)); deleteAction.setIconPath(ICON_DELETE); deleteCol.addDirectAction(deleteAction); }
/** * @see org.opencms.workplace.tools.accounts.A_CmsGroupsList#setDeleteAction(org.opencms.workplace.list.CmsListColumnDefinition) */ @Override protected void setDeleteAction(CmsListColumnDefinition deleteCol) { CmsListDirectAction deleteAction = new CmsListDirectAction(LIST_ACTION_DELETE); deleteAction.setName(Messages.get().container(Messages.GUI_GROUPS_LIST_ACTION_DELETE_NAME_0)); deleteAction.setHelpText(Messages.get().container(Messages.GUI_GROUPS_LIST_ACTION_DELETE_HELP_0)); deleteAction.setIconPath(ICON_DELETE); deleteCol.addDirectAction(deleteAction); }
/** * @see org.opencms.workplace.tools.accounts.A_CmsUsersList#setEditAction(org.opencms.workplace.list.CmsListColumnDefinition) */ @Override protected void setEditAction(CmsListColumnDefinition editCol) { CmsListDirectAction editAction = new CmsListDirectAction(LIST_ACTION_EDIT); editAction.setName(Messages.get().container(Messages.GUI_USERS_LIST_ACTION_EDIT_NAME_0)); editAction.setHelpText(Messages.get().container(Messages.GUI_USERS_LIST_ACTION_EDIT_HELP_0)); editAction.setIconPath(PATH_BUTTONS + "user.png"); editCol.addDirectAction(editAction); }
/** * @see org.opencms.workplace.tools.accounts.A_CmsUsersList#setEditAction(org.opencms.workplace.list.CmsListColumnDefinition) */ @Override protected void setEditAction(CmsListColumnDefinition editCol) { CmsListDirectAction editAction = new CmsListDirectAction(LIST_ACTION_OVERVIEW); editAction.setName(Messages.get().container(Messages.GUI_USERS_LIST_DEFACTION_EDIT_NAME_0)); editAction.setHelpText(Messages.get().container(Messages.GUI_USERS_LIST_DEFACTION_EDIT_HELP_0)); editAction.setIconPath(PATH_BUTTONS + "user.png"); editCol.addDirectAction(editAction); }
/** * @see org.opencms.workplace.tools.accounts.A_CmsGroupsList#setEditAction(org.opencms.workplace.list.CmsListColumnDefinition) */ @Override protected void setEditAction(CmsListColumnDefinition editCol) { CmsListDirectAction editAction = new CmsListDirectAction(LIST_ACTION_EDIT); editAction.setName(Messages.get().container(Messages.GUI_GROUPS_LIST_ACTION_EDIT_NAME_0)); editAction.setHelpText(Messages.get().container(Messages.GUI_GROUPS_LIST_ACTION_EDIT_HELP_0)); editAction.setIconPath(A_CmsUsersList.PATH_BUTTONS + "group.png"); editCol.addDirectAction(editAction); } }
/** * Sets the icon actions for the transfer list.<p> * * @param transferCol the column to set the action */ protected void setTransferAction(CmsListColumnDefinition transferCol) { CmsListDirectAction transferAction = new CmsListDirectAction(LIST_ACTION_TRANSFER); transferAction.setName(Messages.get().container(Messages.GUI_GROUPS_TRANSFER_LIST_ACTION_TRANSFER_NAME_0)); transferAction.setHelpText(Messages.get().container(Messages.GUI_GROUPS_TRANSFER_LIST_ACTION_TRANSFER_HELP_0)); transferAction.setIconPath(A_CmsUsersList.PATH_BUTTONS + "group.png"); transferCol.addDirectAction(transferAction); }
/** * Sets the icon actions for the transfer list.<p> * * @param transferCol the column to set the action */ protected void setTransferAction(CmsListColumnDefinition transferCol) { CmsListDirectAction transferAction = new CmsListDirectAction(LIST_ACTION_TRANSFER); transferAction.setName(Messages.get().container(Messages.GUI_USERS_TRANSFER_LIST_ACTION_TRANSFER_NAME_0)); transferAction.setHelpText(Messages.get().container(Messages.GUI_USERS_TRANSFER_LIST_ACTION_TRANSFER_HELP_0)); transferAction.setIconPath(PATH_BUTTONS + "user.png"); transferCol.addDirectAction(transferAction); }
/** * @see org.opencms.workplace.tools.accounts.A_CmsGroupsList#setEditAction(org.opencms.workplace.list.CmsListColumnDefinition) */ @Override protected void setEditAction(CmsListColumnDefinition editCol) { CmsListDirectAction editAction = new CmsListDirectAction(LIST_ACTION_OVERVIEW); editAction.setName(Messages.get().container(Messages.GUI_GROUPS_LIST_DEFACTION_EDIT_NAME_0)); editAction.setHelpText(Messages.get().container(Messages.GUI_GROUPS_LIST_DEFACTION_EDIT_HELP_0)); editAction.setIconPath(A_CmsUsersList.PATH_BUTTONS + "group.png"); editCol.addDirectAction(editAction); }
/** * @see org.opencms.workplace.tools.accounts.A_CmsUserGroupsList#setIconAction(org.opencms.workplace.list.CmsListColumnDefinition) */ @Override protected void setIconAction(CmsListColumnDefinition iconCol) { CmsListDirectAction iconAction = new CmsListDirectAction(LIST_ACTION_ICON); iconAction.setName(Messages.get().container(Messages.GUI_GROUPS_LIST_AVAILABLE_NAME_0)); iconAction.setHelpText(Messages.get().container(Messages.GUI_GROUPS_LIST_AVAILABLE_HELP_0)); iconAction.setIconPath(A_CmsUsersList.PATH_BUTTONS + "group.png"); iconAction.setEnabled(false); iconCol.addDirectAction(iconAction); }
/** * @see org.opencms.workplace.tools.accounts.A_CmsOrgUnitUsersList#setIconAction(org.opencms.workplace.list.CmsListColumnDefinition) */ @Override protected void setIconAction(CmsListColumnDefinition iconCol) { CmsListDirectAction iconAction = new CmsListDirectAction(LIST_ACTION_ICON) { /** * @see org.opencms.workplace.tools.I_CmsHtmlIconButton#getIconPath() */ @Override public String getIconPath() { return ((A_CmsOrgUnitUsersList)getWp()).getIconPath(getItem()); } }; iconAction.setName(Messages.get().container(Messages.GUI_ORGUNITUSERS_LIST_INORGUNIT_NAME_0)); iconAction.setHelpText(Messages.get().container(Messages.GUI_ORGUNITUSERS_LIST_INORGUNIT_HELP_0)); iconAction.setIconPath(A_CmsUsersList.PATH_BUTTONS + "user.png"); iconAction.setEnabled(false); iconCol.addDirectAction(iconAction); }
/** * @see org.opencms.workplace.tools.accounts.A_CmsGroupUsersList#setStateActionCol(org.opencms.workplace.list.CmsListMetadata) */ @Override protected void setStateActionCol(CmsListMetadata metadata) { // create column for state change CmsListColumnDefinition stateCol = new CmsListColumnDefinition(LIST_COLUMN_STATE); stateCol.setName(Messages.get().container(Messages.GUI_USERS_LIST_COLS_STATE_0)); stateCol.setHelpText(Messages.get().container(Messages.GUI_USERS_LIST_COLS_STATE_HELP_0)); stateCol.setWidth("20"); stateCol.setAlign(CmsListColumnAlignEnum.ALIGN_CENTER); stateCol.setSorteable(false); // add remove action CmsListDirectAction stateAction = new CmsListDirectAction(LIST_ACTION_REMOVE); stateAction.setName(Messages.get().container(Messages.GUI_USERS_LIST_DEFACTION_REMOVE_NAME_0)); stateAction.setHelpText(Messages.get().container(Messages.GUI_USERS_LIST_DEFACTION_REMOVE_HELP_0)); stateAction.setIconPath(ICON_MINUS); stateCol.addDirectAction(stateAction); // add it to the list definition metadata.addColumn(stateCol); // keep the id m_removeActionIds.add(stateAction.getId()); }
/** * @see org.opencms.workplace.tools.accounts.A_CmsGroupUsersList#setStateActionCol(org.opencms.workplace.list.CmsListMetadata) */ @Override protected void setStateActionCol(CmsListMetadata metadata) { // create column for state change CmsListColumnDefinition stateCol = new CmsListColumnDefinition(LIST_COLUMN_STATE); stateCol.setName(Messages.get().container(Messages.GUI_USERS_LIST_COLS_STATE_0)); stateCol.setHelpText(Messages.get().container(Messages.GUI_USERS_LIST_COLS_STATE_HELP_0)); stateCol.setWidth("20"); stateCol.setAlign(CmsListColumnAlignEnum.ALIGN_CENTER); stateCol.setSorteable(false); // add add action CmsListDirectAction stateAction = new CmsListDirectAction(LIST_ACTION_ADD); stateAction.setName(Messages.get().container(Messages.GUI_USERS_LIST_DEFACTION_ADD_NAME_0)); stateAction.setHelpText(Messages.get().container(Messages.GUI_USERS_LIST_DEFACTION_ADD_HELP_0)); stateAction.setIconPath(ICON_ADD); stateCol.addDirectAction(stateAction); // add it to the list definition metadata.addColumn(stateCol); // keep the id m_addActionIds.add(stateAction.getId()); }
/** * @see org.opencms.workplace.tools.accounts.A_CmsOrgUnitUsersList#setStateActionCol(org.opencms.workplace.list.CmsListMetadata) */ @Override protected void setStateActionCol(CmsListMetadata metadata) { // create column for state change CmsListColumnDefinition stateCol = new CmsListColumnDefinition(LIST_COLUMN_STATE); stateCol.setName(Messages.get().container(Messages.GUI_ORGUNITUSERS_LIST_COLS_STATE_0)); stateCol.setHelpText(Messages.get().container(Messages.GUI_ORGUNITUSERS_LIST_COLS_STATE_HELP_0)); stateCol.setWidth("20"); stateCol.setAlign(CmsListColumnAlignEnum.ALIGN_CENTER); stateCol.setSorteable(false); // add remove action CmsListDirectAction stateAction = new CmsListDirectAction(LIST_ACTION_REMOVE); stateAction.setName(Messages.get().container(Messages.GUI_ORGUNITUSERS_LIST_DEFACTION_REMOVE_NAME_0)); stateAction.setHelpText(Messages.get().container(Messages.GUI_ORGUNITUSERS_LIST_DEFACTION_REMOVE_HELP_0)); stateAction.setIconPath(ICON_MINUS); stateCol.addDirectAction(stateAction); // add it to the list definition metadata.addColumn(stateCol); // keep the id m_removeActionIds.add(stateAction.getId()); }
/** * @see org.opencms.workplace.tools.accounts.A_CmsUserGroupsList#setStateActionCol(org.opencms.workplace.list.CmsListMetadata) */ @Override protected void setStateActionCol(CmsListMetadata metadata) { // create column for state change CmsListColumnDefinition stateCol = new CmsListColumnDefinition(LIST_COLUMN_STATE); stateCol.setName(Messages.get().container(Messages.GUI_GROUPS_LIST_COLS_STATE_0)); stateCol.setHelpText(Messages.get().container(Messages.GUI_GROUPS_LIST_COLS_STATE_HELP_0)); stateCol.setWidth("20"); stateCol.setAlign(CmsListColumnAlignEnum.ALIGN_CENTER); stateCol.setSorteable(false); // add it to the list definition metadata.addColumn(stateCol); // add add action CmsListDirectAction stateAction = new CmsListDirectAction(LIST_ACTION_ADD); stateAction.setName(Messages.get().container(Messages.GUI_GROUPS_LIST_DEFACTION_ADD_NAME_0)); stateAction.setHelpText(Messages.get().container(Messages.GUI_GROUPS_LIST_DEFACTION_ADD_HELP_0)); stateAction.setIconPath(ICON_ADD); stateCol.addDirectAction(stateAction); // keep the id m_addActionIds.add(stateAction.getId()); } }
/** * @see org.opencms.workplace.tools.accounts.A_CmsRoleUsersList#setColumns(org.opencms.workplace.list.CmsListMetadata) */ @Override protected void setColumns(CmsListMetadata metadata) { if (m_lazy) { metadata.setSelfManaged(true); } super.setColumns(metadata); // create column for state change CmsListColumnDefinition stateCol = new CmsListColumnDefinition(LIST_COLUMN_STATE); stateCol.setName(Messages.get().container(Messages.GUI_USERS_LIST_COLS_STATE_0)); stateCol.setHelpText(Messages.get().container(Messages.GUI_USERS_LIST_COLS_STATE_HELP_0)); stateCol.setWidth("20"); stateCol.setAlign(CmsListColumnAlignEnum.ALIGN_CENTER); stateCol.setSorteable(false); // add remove action CmsListDirectAction stateAction = new CmsListDirectAction(LIST_ACTION_REMOVE); stateAction.setName(Messages.get().container(Messages.GUI_USERS_LIST_DEFACTION_REMOVE_NAME_0)); stateAction.setHelpText(Messages.get().container(Messages.GUI_ROLEUSERS_LIST_DEFACTION_REMOVE_HELP_0)); stateAction.setIconPath(ICON_MINUS); stateCol.addDirectAction(stateAction); // add it to the list definition metadata.addColumn(stateCol, 1); // keep the id m_removeActionIds.add(stateAction.getId()); }
/** * @see org.opencms.workplace.list.A_CmsListDialog#setColumns(org.opencms.workplace.list.CmsListMetadata) */ @Override protected void setColumns(CmsListMetadata metadata) { // create dummy column for corporate design reasons CmsListColumnDefinition dummyCol = new CmsListColumnDefinition(LIST_COLUMN_ICON); dummyCol.setName(Messages.get().container(Messages.GUI_LIST_RESOURCES_NAME_0)); dummyCol.setHelpText(Messages.get().container(Messages.GUI_LIST_RESOURCES_NAME_HELP_0)); dummyCol.setWidth("20"); dummyCol.setAlign(CmsListColumnAlignEnum.ALIGN_LEFT); dummyCol.setSorteable(false); // add dummy icon CmsListDirectAction dummyAction = new CmsListDirectAction(LIST_ACTION_NONE); dummyAction.setName(Messages.get().container(Messages.GUI_LIST_INDEXSOURCE_COL_ICON_NAME_0)); dummyAction.setHelpText(Messages.get().container(Messages.GUI_LIST_INDEXSOURCE_COL_ICON_NAME_HELP_0)); dummyAction.setIconPath(CmsSearchIndexSourceControlList.ICON_FOLDER); dummyCol.addDirectAction(dummyAction); // add it to the list definition metadata.addColumn(dummyCol); // add column for name CmsListColumnDefinition pathCol = new CmsListColumnDefinition(LIST_COLUMN_PATH); pathCol.setAlign(CmsListColumnAlignEnum.ALIGN_LEFT); pathCol.setName(Messages.get().container(Messages.GUI_LIST_SEARCHINDEX_COL_NAME_0)); pathCol.setWidth("100%"); metadata.addColumn(pathCol); }
iconCol.setSorteable(false); CmsListDirectAction iconAction = new CmsListDirectAction(LIST_ACTION_ICON); iconAction.setName(Messages.get().container(Messages.GUI_FLEXCACHE_LIST_ACTION_ICON_NAME_0)); iconAction.setIconPath("tools/cache/buttons/flexentry.png");
dummyCol.setSorteable(false); CmsListDirectAction dummyAction = new CmsListDirectAction(LIST_ACTION_NONE); dummyAction.setName(Messages.get().container(Messages.GUI_LIST_INDEXSOURCE_COL_ICON_NAME_0)); dummyAction.setHelpText(Messages.get().container(Messages.GUI_LIST_INDEXSOURCE_COL_ICON_NAME_HELP_0));
iconCol.setSorteable(false); CmsListDirectAction iconAction = new CmsListDirectAction(LIST_ACTION_ICON); iconAction.setName(Messages.get().container(Messages.GUI_IMAGECACHE_LIST_ACTION_ICON_NAME_0)); iconAction.setIconPath("tools/cache/buttons/imageentry.png");