@Override
    protected void setIndependentActions(CmsListMetadata metadata) {

        // add description details
        CmsListItemDetails descriptionDetails = new CmsListItemDetails(LIST_DETAIL_DESCRIPTION);
        descriptionDetails.setAtColumn(LIST_COLUMN_NAME);
        descriptionDetails.setVisible(true);
        descriptionDetails.setShowActionName(
            Messages.get().container(Messages.GUI_ROLEEDIT_DETAIL_SHOW_DESCRIPTION_NAME_0));
        descriptionDetails.setShowActionHelpText(
            Messages.get().container(Messages.GUI_ROLEEDIT_DETAIL_SHOW_DESCRIPTION_HELP_0));
        descriptionDetails.setHideActionName(
            Messages.get().container(Messages.GUI_ROLEEDIT_DETAIL_HIDE_DESCRIPTION_NAME_0));
        descriptionDetails.setHideActionHelpText(
            Messages.get().container(Messages.GUI_ROLEEDIT_DETAIL_HIDE_DESCRIPTION_HELP_0));
        descriptionDetails.setName(Messages.get().container(Messages.GUI_ROLEEDIT_DETAIL_DESCRIPTION_NAME_0));
        descriptionDetails.setFormatter(new I_CmsListFormatter() {

            /**
             * @see org.opencms.workplace.list.I_CmsListFormatter#format(java.lang.Object, java.util.Locale)
             */
            public String format(Object data, Locale locale) {

                StringBuffer html = new StringBuffer(512);
                html.append("<table border='0' cellspacing='0' cellpadding='0'>\n");
                html.append("\t<tr>\n");
                html.append("\t\t<td style='white-space:normal;' >\n");
                html.append("\t\t\t");
                html.append(data == null ? "" : data);
                html.append("\n");
                html.append("\t\t</td>\n");
                html.append("\t</tr>\n");
                html.append("</table>\n");
                return html.toString();
            }
        });
        metadata.addItemDetails(descriptionDetails);
    }
@ Override protected void setIndependentActions ( CmsListMetadata metadata ) { CmsListItemDetails descriptionDetails = new CmsListItemDetails ( LIST_DETAIL_DESCRIPTION ) ; descriptionDetails . setAtColumn ( LIST_COLUMN_NAME ) ; descriptionDetails . setVisible ( true ) ; descriptionDetails . setShowActionName ( Messages . get ( ) . container ( Messages . GUI_ROLEEDIT_DETAIL_SHOW_DESCRIPTION_NAME_0 ) ) ; descriptionDetails . setShowActionHelpText ( Messages . get ( ) . container ( Messages . GUI_ROLEEDIT_DETAIL_SHOW_DESCRIPTION_HELP_0 ) ) ; descriptionDetails . setHideActionName ( Messages . get ( ) . container ( Messages . GUI_ROLEEDIT_DETAIL_HIDE_DESCRIPTION_NAME_0 ) ) ; descriptionDetails . setHideActionHelpText ( Messages . get ( ) . container ( Messages . GUI_ROLEEDIT_DETAIL_HIDE_DESCRIPTION_HELP_0 ) ) ; descriptionDetails . setName ( Messages . get ( ) . container ( Messages . GUI_ROLEEDIT_DETAIL_DESCRIPTION_NAME_0 ) ) ; descriptionDetails . setFormatter ( new I_CmsListFormatter ( ) { public String format ( Object data , Locale locale ) { StringBuffer html = new StringBuffer ( 512 ) ; html . append ( "<table border='0' cellspacing='0' cellpadding='0'>\n" ) ; html . append ( "\t<tr>\n" ) ; html . append ( "\t\t<td style='white-space:normal;' >\n" ) ; html . append ( "\t\t\t" ) ; html . append ( data == null ? "" : data ) ; html . append ( "\n" ) ; html . append ( "\t\t</td>\n" ) ; html . append ( "\t</tr>\n" ) ; html . append ( "</table>\n" ) ; return html . toString ( ) ; } } ) ; metadata . addItemDetails ( descriptionDetails ) ; }
@see org.opencms.workplace.list.A_CmsListDialog#setIndependentActions(org.opencms.workplace.list.CmsListMetadata)