@Override
    protected void setColumns(CmsListMetadata metadata) {

        //////////////////
        // FATAL COLUMN //
        //////////////////
        CmsListColumnDefinition fatalColumn = new CmsListColumnDefinition(COLUMN_FATAL);
        fatalColumn.setName(Messages.get().container(Messages.GUI_LOG_LEVEL_FATAL_0));
        fatalColumn.setAlign(CmsListColumnAlignEnum.ALIGN_CENTER);
        fatalColumn.setWidth("50");
        fatalColumn.setListItemComparator(new CmsLogLevelListItemComparator());
        fatalColumn.setPrintable(false);
        fatalColumn.setAlign(CmsListColumnAlignEnum.ALIGN_CENTER);
        fatalColumn.setListItemComparator(new CmsLogLevelListItemComparator());
        CmsListDirectAction fatalActAction = new CmsChangeLogLevelAction(ACTION_LOGGING_LEVEL_FATAL, Level.FATAL) {

            /**
             * @see org.opencms.workplace.tools.A_CmsHtmlIconButton#isVisible()
             */
            @Override
            public boolean isVisible() {

                Level actuallevel = Level.toLevel((String)getItem().get(COLUMN_LOG_LEVEL));
                if (actuallevel != null) {

                    if (actuallevel.intLevel() < Level.FATAL.intLevel()) {
                        setIconPath(PATH_FATAL_ACTIVE);
                        setName(Messages.get().container(Messages.GUI_LOG_LEVEL_FATAL_HELP_DEACTIVATE_0));
                    } else if (actuallevel.intLevel() == Level.FATAL.intLevel()) {
                        setIconPath(PATH_FATAL_ACTIVE);
                        setName(Messages.get().container(Messages.GUI_LOG_LEVEL_ACTIVE_0));
                    } else {
                        setIconPath(PATH_FATAL_INACTIVE);
                        setName(Messages.get().container(Messages.GUI_LOG_LEVEL_FATAL_HELP_ACTIVATE_0));
                    }
                }
                return super.isVisible();
            }
        };
        fatalActAction.setHelpText(Messages.get().container(Messages.GUI_LOG_LEVEL_FATAL_HELP_0));
        fatalColumn.addDirectAction(fatalActAction);
        metadata.addColumn(fatalColumn);

        //////////////////
        // ERROR COLUMN //
        //////////////////
        CmsListColumnDefinition errorColumn = new CmsListColumnDefinition(COLUMN_ERROR);
        errorColumn.setName(Messages.get().container(Messages.GUI_LOG_LEVEL_ERROR_0));
        errorColumn.setAlign(CmsListColumnAlignEnum.ALIGN_CENTER);
        errorColumn.setWidth("50");
        errorColumn.setPrintable(false);
        errorColumn.setAlign(CmsListColumnAlignEnum.ALIGN_CENTER);
        errorColumn.setListItemComparator(new CmsLogLevelListItemComparator());
        CmsListDirectAction errorActAction = new CmsChangeLogLevelAction(ACTION_LOGGING_LEVEL_ERROR, Level.ERROR) {

            /**
             * @see org.opencms.workplace.tools.A_CmsHtmlIconButton#isVisible()
             */
            @Override
            public boolean isVisible() {

                Level actuallevel = Level.toLevel((String)getItem().get(COLUMN_LOG_LEVEL));
                if (actuallevel != null) {
                    if ((actuallevel.intLevel() < Level.ERROR.intLevel())) {
                        setIconPath(PATH_ERROR_ACTIVE);
                        setName(Messages.get().container(Messages.GUI_LOG_LEVEL_ERROR_HELP_DEACTIVATE_0));
                    } else if (actuallevel.intLevel() == Level.ERROR.intLevel()) {
                        setIconPath(PATH_ERROR_ACTIVE);
                        setName(Messages.get().container(Messages.GUI_LOG_LEVEL_ACTIVE_0));
                    } else {
                        setIconPath(PATH_ERROR_INACTIVE);
                        setName(Messages.get().container(Messages.GUI_LOG_LEVEL_ERROR_HELP_ACTIVATE_0));
                    }
                }
                return super.isVisible();
            }
        };
        errorActAction.setHelpText(Messages.get().container(Messages.GUI_LOG_LEVEL_ERROR_HELP_0));
        errorColumn.addDirectAction(errorActAction);
        metadata.addColumn(errorColumn);

        /////////////////
        // WARN COLUMN //
        /////////////////
        CmsListColumnDefinition warnColumn = new CmsListColumnDefinition(COLUMN_WARN);
        warnColumn.setName(Messages.get().container(Messages.GUI_LOG_LEVEL_WARN_0));
        warnColumn.setAlign(CmsListColumnAlignEnum.ALIGN_CENTER);
        warnColumn.setWidth("50");
        warnColumn.setPrintable(false);
        warnColumn.setAlign(CmsListColumnAlignEnum.ALIGN_CENTER);
        warnColumn.setListItemComparator(new CmsLogLevelListItemComparator());
        CmsListDirectAction warnAction = new CmsChangeLogLevelAction(ACTION_LOGGING_LEVEL_WARN, Level.WARN) {

            /**
             * @see org.opencms.workplace.tools.A_CmsHtmlIconButton#isVisible()
             */
            @Override
            public boolean isVisible() {

                Level actuallevel = Level.toLevel((String)getItem().get(COLUMN_LOG_LEVEL));
                if (actuallevel != null) {
                    if ((actuallevel.intLevel() < Level.WARN.intLevel())) {
                        setIconPath(PATH_WARN_ACTIVE);
                        setName(Messages.get().container(Messages.GUI_LOG_LEVEL_WARN_HELP_DEACTIVATE_0));
                    } else if (actuallevel.intLevel() == Level.WARN.intLevel()) {
                        setIconPath(PATH_WARN_ACTIVE);
                        setName(Messages.get().container(Messages.GUI_LOG_LEVEL_ACTIVE_0));
                    } else {
                        setIconPath(PATH_WARN_INACTIVE);
                        setName(Messages.get().container(Messages.GUI_LOG_LEVEL_WARN_HELP_ACTIVATE_0));
                    }
                }
                return super.isVisible();
            }
        };
        warnAction.setHelpText(Messages.get().container(Messages.GUI_LOG_LEVEL_WARN_HELP_0));
        warnColumn.addDirectAction(warnAction);
        metadata.addColumn(warnColumn);

        /////////////////
        // INFO COLUMN //
        /////////////////
        CmsListColumnDefinition infoColumn = new CmsListColumnDefinition(COLUMN_INFO);
        infoColumn.setName(Messages.get().container(Messages.GUI_LOG_LEVEL_INFO_0));
        infoColumn.setAlign(CmsListColumnAlignEnum.ALIGN_CENTER);
        infoColumn.setWidth("50");
        infoColumn.setPrintable(false);
        infoColumn.setAlign(CmsListColumnAlignEnum.ALIGN_CENTER);
        infoColumn.setListItemComparator(new CmsLogLevelListItemComparator());
        CmsListDirectAction infoAction = new CmsChangeLogLevelAction(ACTION_LOGGING_LEVEL_INFO, Level.INFO) {

            /**
             * @see org.opencms.workplace.tools.A_CmsHtmlIconButton#isVisible()
             */
            @Override
            public boolean isVisible() {

                // check the Loglevel from hidden column and set the right icon
                Level actuallevel = Level.toLevel((String)getItem().get(COLUMN_LOG_LEVEL));
                if (actuallevel != null) {
                    if ((actuallevel.intLevel() < Level.INFO.intLevel())) {
                        setIconPath(PATH_INFO_ACTIVE);
                        setName(Messages.get().container(Messages.GUI_LOG_LEVEL_INFO_HELP_DEACTIVATE_0));
                    } else if (actuallevel.intLevel() == Level.INFO.intLevel()) {
                        setIconPath(PATH_INFO_ACTIVE);
                        setName(Messages.get().container(Messages.GUI_LOG_LEVEL_ACTIVE_0));
                    } else {
                        setIconPath(PATH_INFO_INACTIVE);
                        setName(Messages.get().container(Messages.GUI_LOG_LEVEL_INFO_HELP_ACTIVATE_0));
                    }
                }
                return super.isVisible();
            }
        };
        infoAction.setHelpText(Messages.get().container(Messages.GUI_LOG_LEVEL_INFO_HELP_0));
        infoColumn.addDirectAction(infoAction);
        metadata.addColumn(infoColumn);

        //////////////////
        // DEBUG COLUMN //
        //////////////////
        CmsListColumnDefinition debugColumn = new CmsListColumnDefinition(COLUMN_DEBUG);
        debugColumn.setName(Messages.get().container(Messages.GUI_LOG_LEVEL_DEBUG_0));
        debugColumn.setAlign(CmsListColumnAlignEnum.ALIGN_CENTER);
        debugColumn.setWidth("50");
        debugColumn.setAlign(CmsListColumnAlignEnum.ALIGN_CENTER);
        debugColumn.setPrintable(false);
        debugColumn.setListItemComparator(new CmsLogLevelListItemComparator());
        // generate an Action to activate the change of a log-channel
        CmsListDirectAction debugAction = new CmsChangeLogLevelAction(ACTION_LOGGING_LEVEL_DEBUG, Level.DEBUG) {

            /**
             * @see org.opencms.workplace.tools.A_CmsHtmlIconButton#isVisible()
             */
            @Override
            public boolean isVisible() {

                Level actuallevel = Level.toLevel((String)getItem().get(COLUMN_LOG_LEVEL));
                if (actuallevel != null) {
                    if (actuallevel.intLevel() < Level.DEBUG.intLevel()) {
                        setIconPath(PATH_DEBUG_ACTIVE);
                        setName(Messages.get().container(Messages.GUI_LOG_LEVEL_DEBUG_HELP_DEACTIVATE_0));
                    } else if (actuallevel.intLevel() == Level.DEBUG.intLevel()) {
                        setIconPath(PATH_DEBUG_ACTIVE);
                        setName(Messages.get().container(Messages.GUI_LOG_LEVEL_ACTIVE_0));
                    } else {
                        setIconPath(PATH_DEBUG_INACTIVE);
                        setName(Messages.get().container(Messages.GUI_LOG_LEVEL_DEBUG_HELP_ACTIVATE_0));
                    }
                }
                return super.isVisible();
            }
        };
        debugAction.setHelpText(Messages.get().container(Messages.GUI_LOG_LEVEL_DEBUG_HELP_0));
        debugColumn.addDirectAction(debugAction);
        metadata.addColumn(debugColumn);

        /////////////////////
        // TRUN OFF COLUMN //
        /////////////////////
        CmsListColumnDefinition offColumn = new CmsListColumnDefinition(COLUMN_OFF);
        offColumn.setName(Messages.get().container(Messages.GUI_LOG_LEVEL_OFF_0));
        offColumn.setAlign(CmsListColumnAlignEnum.ALIGN_CENTER);
        offColumn.setWidth("50");
        offColumn.setSorteable(true);
        offColumn.setPrintable(false);
        offColumn.setAlign(CmsListColumnAlignEnum.ALIGN_CENTER);
        offColumn.setListItemComparator(new CmsLogLevelListItemComparator());
        CmsListDirectAction offAction = new CmsChangeLogLevelAction(ACTION_LOGGING_LEVEL_OFF, Level.OFF) {

            /**
             * @see org.opencms.workplace.tools.A_CmsHtmlIconButton#isVisible()
             */
            @Override
            public boolean isVisible() {

                Level actuallevel = Level.toLevel((String)getItem().get(COLUMN_LOG_LEVEL));
                if (actuallevel != null) {
                    if (actuallevel.intLevel() == Level.OFF.intLevel()) {
                        setIconPath(PATH_OFF_ACTIVE);
                        setName(Messages.get().container(Messages.GUI_LOG_LEVEL_OFF_HELP_ACTIVATE_0));
                    } else {
                        setIconPath(PATH_OFF_INACTIVE);
                        setName(Messages.get().container(Messages.GUI_LOG_LEVEL_OFF_HELP_DEACTIVATE_0));
                    }
                }
                return super.isVisible();
            }
        };
        offAction.setHelpText(Messages.get().container(Messages.GUI_LOG_LEVEL_OFF_HELP_0));
        offColumn.addDirectAction(offAction);
        metadata.addColumn(offColumn);

        //////////////////////////////
        // CURRENT LOG LEVEL COLUMN //
        //////////////////////////////
        CmsListColumnDefinition logLevelHidden = new CmsListColumnDefinition(COLUMN_LOG_LEVEL);
        logLevelHidden.setName(Messages.get().container(Messages.GUI_LOG_LEVEL_CURRENT_0));
        logLevelHidden.setAlign(CmsListColumnAlignEnum.ALIGN_CENTER);
        logLevelHidden.setWidth("10%");
        logLevelHidden.setSorteable(true);
        logLevelHidden.setPrintable(true);
        logLevelHidden.setVisible(false);
        metadata.addColumn(logLevelHidden);

        //////////////////
        // LOG CHANNELS //
        //////////////////
        CmsListColumnDefinition channels = new CmsListColumnDefinition(COLUMN_CHANNELS);
        channels.setName(Messages.get().container(Messages.GUI_LOG_CHANNELS_0));
        channels.setAlign(CmsListColumnAlignEnum.ALIGN_LEFT);
        channels.setSorteable(true);
        channels.setWidth("50%");
        channels.setPrintable(true);
        metadata.addColumn(channels);

        ///////////////////////////////
        // PARENT LOG CHANNEL COLUMN //
        ///////////////////////////////
        CmsListColumnDefinition parentChannel = new CmsListColumnDefinition(COLUMN_PARENT_CHANNELS);
        parentChannel.setName(Messages.get().container(Messages.GUI_LOG_PARENT_CHANNEL_0));
        parentChannel.setAlign(CmsListColumnAlignEnum.ALIGN_LEFT);
        parentChannel.setSorteable(true);
        parentChannel.setWidth("20%");
        parentChannel.setPrintable(false);
        metadata.addColumn(parentChannel);

        /////////////////////
        // LOG FILE COLUMN //
        /////////////////////
        CmsListColumnDefinition selectedFile = new CmsListColumnDefinition(COLUMN_LOG_FILE);
        selectedFile.setName(Messages.get().container(Messages.GUI_LOG_FILE_SELECTED_0));
        selectedFile.setAlign(CmsListColumnAlignEnum.ALIGN_LEFT);
        selectedFile.setSorteable(true);
        selectedFile.setWidth("20%");
        selectedFile.setPrintable(false);
        metadata.addColumn(selectedFile);

        ////////////////////////
        // CHANGE FILE COLUMN //
        ////////////////////////
        CmsListColumnDefinition changeFile = new CmsListColumnDefinition(COLUMN_CHANGE_LOGFILE);
        changeFile.setName(Messages.get().container(Messages.GUI_LOG_FILE_CHANGE_FILE_0));
        changeFile.setAlign(CmsListColumnAlignEnum.ALIGN_LEFT);
        changeFile.setSorteable(false);
        changeFile.setWidth("25");
        changeFile.setPrintable(false);
        CmsListDirectAction changeFileAction = new CmsListDirectAction(ACTION_ACTIVATE_LOGFILE) {

            /**
             * @see org.opencms.workplace.tools.A_CmsHtmlIconButton#isVisible()
             */
            @Override
            public boolean isVisible() {

                Logger logger = getLoggerImpl((String)getItem().get(COLUMN_CHANNELS));
                if (logger != null) {
                    if (isloggingactivated(logger)) {
                        setIconPath(PATH_FILE_ACTIVE);
                        setName(Messages.get().container(Messages.GUI_LOG_FILE_CHANGE_FILE_HELP_DEACTIVATE_0));
                    } else {
                        setIconPath(PATH_FILE_INACTIVE);
                        setName(Messages.get().container(Messages.GUI_LOG_FILE_CHANGE_FILE_HELP_ACTIVATE_0));
                    }
                }
                return super.isVisible();
            }
        };
        changeFileAction.setHelpText(Messages.get().container(Messages.GUI_LOG_FILE_CHANGE_FILE_HELP_0));
        changeFileAction.setIconPath(PATH_OFF_ACTIVE);
        changeFile.addDirectAction(changeFileAction);
        metadata.addColumn(changeFile);

        ///////////////////
        // SEARCH ACTION //
        ///////////////////
        CmsListSearchAction searchAction = new CmsListSearchAction(metadata.getColumnDefinition(COLUMN_CHANNELS));
        metadata.setSearchAction(searchAction);
    }
@ Override protected void setColumns ( CmsListMetadata metadata ) { CmsListColumnDefinition fatalColumn = new CmsListColumnDefinition ( COLUMN_FATAL ) ; fatalColumn . setName ( Messages . get ( ) . container ( Messages . GUI_LOG_LEVEL_FATAL_0 ) ) ; fatalColumn . setAlign ( CmsListColumnAlignEnum . ALIGN_CENTER ) ; fatalColumn . setWidth ( "50" ) ; fatalColumn . setListItemComparator ( new CmsLogLevelListItemComparator ( ) ) ; fatalColumn . setPrintable ( false ) ; fatalColumn . setAlign ( CmsListColumnAlignEnum . ALIGN_CENTER ) ; fatalColumn . setListItemComparator ( new CmsLogLevelListItemComparator ( ) ) ; CmsListDirectAction fatalActAction = new CmsChangeLogLevelAction ( ACTION_LOGGING_LEVEL_FATAL , Level . FATAL ) { @ Override public boolean isVisible ( ) { Level actuallevel = Level . toLevel ( ( String ) getItem ( ) . get ( COLUMN_LOG_LEVEL ) ) ; if ( actuallevel != null ) { if ( actuallevel . intLevel ( ) < Level . FATAL . intLevel ( ) ) { setIconPath ( PATH_FATAL_ACTIVE ) ; setName ( Messages . get ( ) . container ( Messages . GUI_LOG_LEVEL_FATAL_HELP_DEACTIVATE_0 ) ) ; } else if ( actuallevel . intLevel ( ) == Level . FATAL . intLevel ( ) ) { setIconPath ( PATH_FATAL_ACTIVE ) ; setName ( Messages . get ( ) . container ( Messages . GUI_LOG_LEVEL_ACTIVE_0 ) ) ; } else { setIconPath ( PATH_FATAL_INACTIVE ) ; setName ( Messages . get ( ) . container ( Messages . GUI_LOG_LEVEL_FATAL_HELP_ACTIVATE_0 ) ) ; } } return super . isVisible ( ) ; } } ; fatalActAction . setHelpText ( Messages . get ( ) . container ( Messages . GUI_LOG_LEVEL_FATAL_HELP_0 ) ) ; fatalColumn . addDirectAction ( fatalActAction ) ; metadata . addColumn ( fatalColumn ) ; CmsListColumnDefinition errorColumn = new CmsListColumnDefinition ( COLUMN_ERROR ) ; errorColumn . setName ( Messages . get ( ) . container ( Messages . GUI_LOG_LEVEL_ERROR_0 ) ) ; errorColumn . setAlign ( CmsListColumnAlignEnum . ALIGN_CENTER ) ; errorColumn . setWidth ( "50" ) ; errorColumn . setPrintable ( false ) ; errorColumn . setAlign ( CmsListColumnAlignEnum . ALIGN_CENTER ) ; errorColumn . setListItemComparator ( new CmsLogLevelListItemComparator ( ) ) ; CmsListDirectAction errorActAction = new CmsChangeLogLevelAction ( ACTION_LOGGING_LEVEL_ERROR , Level . ERROR ) { @ Override public boolean isVisible ( ) { Level actuallevel = Level . toLevel ( ( String ) getItem ( ) . get ( COLUMN_LOG_LEVEL ) ) ; if ( actuallevel != null ) { if ( ( actuallevel . intLevel ( ) < Level . ERROR . intLevel ( ) ) ) { setIconPath ( PATH_ERROR_ACTIVE ) ; setName ( Messages . get ( ) . container ( Messages . GUI_LOG_LEVEL_ERROR_HELP_DEACTIVATE_0 ) ) ; } else if ( actuallevel . intLevel ( ) == Level . ERROR . intLevel ( ) ) { setIconPath ( PATH_ERROR_ACTIVE ) ; setName ( Messages . get ( ) . container ( Messages . GUI_LOG_LEVEL_ACTIVE_0 ) ) ; } else { setIconPath ( PATH_ERROR_INACTIVE ) ; setName ( Messages . get ( ) . container ( Messages . GUI_LOG_LEVEL_ERROR_HELP_ACTIVATE_0 ) ) ; } } return super . isVisible ( ) ; } } ; errorActAction . setHelpText ( Messages . get ( ) . container ( Messages . GUI_LOG_LEVEL_ERROR_HELP_0 ) ) ; errorColumn . addDirectAction ( errorActAction ) ; metadata . addColumn ( errorColumn ) ; CmsListColumnDefinition warnColumn = new CmsListColumnDefinition ( COLUMN_WARN ) ; warnColumn . setName ( Messages . get ( ) . container ( Messages . GUI_LOG_LEVEL_WARN_0 ) ) ; warnColumn . setAlign ( CmsListColumnAlignEnum . ALIGN_CENTER ) ; warnColumn . setWidth ( "50" ) ; warnColumn . setPrintable ( false ) ; warnColumn . setAlign ( CmsListColumnAlignEnum . ALIGN_CENTER ) ; warnColumn . setListItemComparator ( new CmsLogLevelListItemComparator ( ) ) ; CmsListDirectAction warnAction = new CmsChangeLogLevelAction ( ACTION_LOGGING_LEVEL_WARN , Level . WARN ) { @ Override public boolean isVisible ( ) { Level actuallevel = Level . toLevel ( ( String ) getItem ( ) . get ( COLUMN_LOG_LEVEL ) ) ; if ( actuallevel != null ) { if ( ( actuallevel . intLevel ( ) < Level . WARN . intLevel ( ) ) ) { setIconPath ( PATH_WARN_ACTIVE ) ; setName ( Messages . get ( ) . container ( Messages . GUI_LOG_LEVEL_WARN_HELP_DEACTIVATE_0 ) ) ; } else if ( actuallevel . intLevel ( ) == Level . WARN . intLevel ( ) ) { setIconPath ( PATH_WARN_ACTIVE ) ; setName ( Messages . get ( ) . container ( Messages . GUI_LOG_LEVEL_ACTIVE_0 ) ) ; } else { setIconPath ( PATH_WARN_INACTIVE ) ; setName ( Messages . get ( ) . container ( Messages . GUI_LOG_LEVEL_WARN_HELP_ACTIVATE_0 ) ) ; } } return super . isVisible ( ) ; } } ; warnAction . setHelpText ( Messages . get ( ) . container ( Messages . GUI_LOG_LEVEL_WARN_HELP_0 ) ) ; warnColumn . addDirectAction ( warnAction ) ; metadata . addColumn ( warnColumn ) ; CmsListColumnDefinition infoColumn = new CmsListColumnDefinition ( COLUMN_INFO ) ; infoColumn . setName ( Messages . get ( ) . container ( Messages . GUI_LOG_LEVEL_INFO_0 ) ) ; infoColumn . setAlign ( CmsListColumnAlignEnum . ALIGN_CENTER ) ; infoColumn . setWidth ( "50" ) ; infoColumn . setPrintable ( false ) ; infoColumn . setAlign ( CmsListColumnAlignEnum . ALIGN_CENTER ) ; infoColumn . setListItemComparator ( new CmsLogLevelListItemComparator ( ) ) ; CmsListDirectAction infoAction = new CmsChangeLogLevelAction ( ACTION_LOGGING_LEVEL_INFO , Level . INFO ) { @ Override public boolean isVisible ( ) { Level actuallevel = Level . toLevel ( ( String ) getItem ( ) . get ( COLUMN_LOG_LEVEL ) ) ; if ( actuallevel != null ) { if ( ( actuallevel . intLevel ( ) < Level . INFO . intLevel ( ) ) ) { setIconPath ( PATH_INFO_ACTIVE ) ; setName ( Messages . get ( ) . container ( Messages . GUI_LOG_LEVEL_INFO_HELP_DEACTIVATE_0 ) ) ; } else if ( actuallevel . intLevel ( ) == Level . INFO . intLevel ( ) ) { setIconPath ( PATH_INFO_ACTIVE ) ; setName ( Messages . get ( ) . container ( Messages . GUI_LOG_LEVEL_ACTIVE_0 ) ) ; } else { setIconPath ( PATH_INFO_INACTIVE ) ; setName ( Messages . get ( ) . container ( Messages . GUI_LOG_LEVEL_INFO_HELP_ACTIVATE_0 ) ) ; } } return super . isVisible ( ) ; } } ; infoAction . setHelpText ( Messages . get ( ) . container ( Messages . GUI_LOG_LEVEL_INFO_HELP_0 ) ) ; infoColumn . addDirectAction ( infoAction ) ; metadata . addColumn ( infoColumn ) ; CmsListColumnDefinition debugColumn = new CmsListColumnDefinition ( COLUMN_DEBUG ) ; debugColumn . setName ( Messages . get ( ) . container ( Messages . GUI_LOG_LEVEL_DEBUG_0 ) ) ; debugColumn . setAlign ( CmsListColumnAlignEnum . ALIGN_CENTER ) ; debugColumn . setWidth ( "50" ) ; debugColumn . setAlign ( CmsListColumnAlignEnum . ALIGN_CENTER ) ; debugColumn . setPrintable ( false ) ; debugColumn . setListItemComparator ( new CmsLogLevelListItemComparator ( ) ) ; CmsListDirectAction debugAction = new CmsChangeLogLevelAction ( ACTION_LOGGING_LEVEL_DEBUG , Level . DEBUG ) { @ Override public boolean isVisible ( ) { Level actuallevel = Level . toLevel ( ( String ) getItem ( ) . get ( COLUMN_LOG_LEVEL ) ) ; if ( actuallevel != null ) { if ( actuallevel . intLevel ( ) < Level . DEBUG . intLevel ( ) ) { setIconPath ( PATH_DEBUG_ACTIVE ) ; setName ( Messages . get ( ) . container ( Messages . GUI_LOG_LEVEL_DEBUG_HELP_DEACTIVATE_0 ) ) ; } else if ( actuallevel . intLevel ( ) == Level . DEBUG . intLevel ( ) ) { setIconPath ( PATH_DEBUG_ACTIVE ) ; setName ( Messages . get ( ) . container ( Messages . GUI_LOG_LEVEL_ACTIVE_0 ) ) ; } else { setIconPath ( PATH_DEBUG_INACTIVE ) ; setName ( Messages . get ( ) . container ( Messages . GUI_LOG_LEVEL_DEBUG_HELP_ACTIVATE_0 ) ) ; } } return super . isVisible ( ) ; } } ; debugAction . setHelpText ( Messages . get ( ) . container ( Messages . GUI_LOG_LEVEL_DEBUG_HELP_0 ) ) ; debugColumn . addDirectAction ( debugAction ) ; metadata . addColumn ( debugColumn ) ; CmsListColumnDefinition offColumn = new CmsListColumnDefinition ( COLUMN_OFF ) ; offColumn . setName ( Messages . get ( ) . container ( Messages . GUI_LOG_LEVEL_OFF_0 ) ) ; offColumn . setAlign ( CmsListColumnAlignEnum . ALIGN_CENTER ) ; offColumn . setWidth ( "50" ) ; offColumn . setSorteable ( true ) ; offColumn . setPrintable ( false ) ; offColumn . setAlign ( CmsListColumnAlignEnum . ALIGN_CENTER ) ; offColumn . setListItemComparator ( new CmsLogLevelListItemComparator ( ) ) ; CmsListDirectAction offAction = new CmsChangeLogLevelAction ( ACTION_LOGGING_LEVEL_OFF , Level . OFF ) { @ Override public boolean isVisible ( ) { Level actuallevel = Level . toLevel ( ( String ) getItem ( ) . get ( COLUMN_LOG_LEVEL ) ) ; if ( actuallevel != null ) { if ( actuallevel . intLevel ( ) == Level . OFF . intLevel ( ) ) { setIconPath ( PATH_OFF_ACTIVE ) ; setName ( Messages . get ( ) . container ( Messages . GUI_LOG_LEVEL_OFF_HELP_ACTIVATE_0 ) ) ; } else { setIconPath ( PATH_OFF_INACTIVE ) ; setName ( Messages . get ( ) . container ( Messages . GUI_LOG_LEVEL_OFF_HELP_DEACTIVATE_0 ) ) ; } } return super . isVisible ( ) ; } } ; offAction . setHelpText ( Messages . get ( ) . container ( Messages . GUI_LOG_LEVEL_OFF_HELP_0 ) ) ; offColumn . addDirectAction ( offAction ) ; metadata . addColumn ( offColumn ) ; CmsListColumnDefinition logLevelHidden = new CmsListColumnDefinition ( COLUMN_LOG_LEVEL ) ; logLevelHidden . setName ( Messages . get ( ) . container ( Messages . GUI_LOG_LEVEL_CURRENT_0 ) ) ; logLevelHidden . setAlign ( CmsListColumnAlignEnum . ALIGN_CENTER ) ; logLevelHidden . setWidth ( "10%" ) ; logLevelHidden . setSorteable ( true ) ; logLevelHidden . setPrintable ( true ) ; logLevelHidden . setVisible ( false ) ; metadata . addColumn ( logLevelHidden ) ; CmsListColumnDefinition channels = new CmsListColumnDefinition ( COLUMN_CHANNELS ) ; channels . setName ( Messages . get ( ) . container ( Messages . GUI_LOG_CHANNELS_0 ) ) ; channels . setAlign ( CmsListColumnAlignEnum . ALIGN_LEFT ) ; channels . setSorteable ( true ) ; channels . setWidth ( "50%" ) ; channels . setPrintable ( true ) ; metadata . addColumn ( channels ) ; CmsListColumnDefinition parentChannel = new CmsListColumnDefinition ( COLUMN_PARENT_CHANNELS ) ; parentChannel . setName ( Messages . get ( ) . container ( Messages . GUI_LOG_PARENT_CHANNEL_0 ) ) ; parentChannel . setAlign ( CmsListColumnAlignEnum . ALIGN_LEFT ) ; parentChannel . setSorteable ( true ) ; parentChannel . setWidth ( "20%" ) ; parentChannel . setPrintable ( false ) ; metadata . addColumn ( parentChannel ) ; CmsListColumnDefinition selectedFile = new CmsListColumnDefinition ( COLUMN_LOG_FILE ) ; selectedFile . setName ( Messages . get ( ) . container ( Messages . GUI_LOG_FILE_SELECTED_0 ) ) ; selectedFile . setAlign ( CmsListColumnAlignEnum . ALIGN_LEFT ) ; selectedFile . setSorteable ( true ) ; selectedFile . setWidth ( "20%" ) ; selectedFile . setPrintable ( false ) ; metadata . addColumn ( selectedFile ) ; CmsListColumnDefinition changeFile = new CmsListColumnDefinition ( COLUMN_CHANGE_LOGFILE ) ; changeFile . setName ( Messages . get ( ) . container ( Messages . GUI_LOG_FILE_CHANGE_FILE_0 ) ) ; changeFile . setAlign ( CmsListColumnAlignEnum . ALIGN_LEFT ) ; changeFile . setSorteable ( false ) ; changeFile . setWidth ( "25" ) ; changeFile . setPrintable ( false ) ; CmsListDirectAction changeFileAction = new CmsListDirectAction ( ACTION_ACTIVATE_LOGFILE ) { @ Override public boolean isVisible ( ) { Logger logger = getLoggerImpl ( ( String ) getItem ( ) . get ( COLUMN_CHANNELS ) ) ; if ( logger != null ) { if ( isloggingactivated ( logger ) ) { setIconPath ( PATH_FILE_ACTIVE ) ; setName ( Messages . get ( ) . container ( Messages . GUI_LOG_FILE_CHANGE_FILE_HELP_DEACTIVATE_0 ) ) ; } else { setIconPath ( PATH_FILE_INACTIVE ) ; setName ( Messages . get ( ) . container ( Messages . GUI_LOG_FILE_CHANGE_FILE_HELP_ACTIVATE_0 ) ) ; } } return super . isVisible ( ) ; } } ; changeFileAction . setHelpText ( Messages . get ( ) . container ( Messages . GUI_LOG_FILE_CHANGE_FILE_HELP_0 ) ) ; changeFileAction . setIconPath ( PATH_OFF_ACTIVE ) ; changeFile . addDirectAction ( changeFileAction ) ; metadata . addColumn ( changeFile ) ; CmsListSearchAction searchAction = new CmsListSearchAction ( metadata . getColumnDefinition ( COLUMN_CHANNELS ) ) ; metadata . setSearchAction ( searchAction ) ; }
@see org.opencms.workplace.list.A_CmsListDialog#setColumns(org.opencms.workplace.list.CmsListMetadata)