亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? logbrokermonitor.java

?? apache的log4j源碼
?? JAVA
?? 第 1 頁 / 共 4 頁
字號:
    String NDC = record.getNDC();    if (message == null && NDC == null || text == null) {      return false;    }    if (message.toLowerCase().indexOf(text.toLowerCase()) == -1 &&        NDC.toLowerCase().indexOf(text.toLowerCase()) == -1) {      return false;    }    return true;  }  /**   * When the fontsize of a JTextArea is changed, the word-wrapped lines   * may become garbled.  This method clears and resets the text of the   * text area.   */  protected void refresh(JTextArea textArea) {    String text = textArea.getText();    textArea.setText("");    textArea.setText(text);  }  protected void refreshDetailTextArea() {    refresh(_table._detailTextArea);  }  protected void clearDetailTextArea() {    _table._detailTextArea.setText("");  }  /**   * Changes the font selection in the combo box and returns the   * size actually selected.   * @return -1 if unable to select an appropriate font   */  protected int changeFontSizeCombo(JComboBox box, int requestedSize) {    int len = box.getItemCount();    int currentValue;    Object currentObject;    Object selectedObject = box.getItemAt(0);    int selectedValue = Integer.parseInt(String.valueOf(selectedObject));    for (int i = 0; i < len; i++) {      currentObject = box.getItemAt(i);      currentValue = Integer.parseInt(String.valueOf(currentObject));      if (selectedValue < currentValue && currentValue <= requestedSize) {        selectedValue = currentValue;        selectedObject = currentObject;      }    }    box.setSelectedItem(selectedObject);    return selectedValue;  }  /**   * Does not update gui or cause any events to be fired.   */  protected void setFontSizeSilently(int fontSize) {    _fontSize = fontSize;    setFontSize(_table._detailTextArea, fontSize);    selectRow(0);    setFontSize(_table, fontSize);  }  protected void setFontSize(Component component, int fontSize) {    Font oldFont = component.getFont();    Font newFont =        new Font(oldFont.getFontName(), oldFont.getStyle(), fontSize);    component.setFont(newFont);  }  protected void updateFrameSize() {    _logMonitorFrame.setSize(_logMonitorFrameWidth, _logMonitorFrameHeight);    centerFrame(_logMonitorFrame);  }  protected void pause(int millis) {    try {      Thread.sleep(millis);    } catch (InterruptedException e) {    }  }  protected void initComponents() {    //    // Configure the Frame.    //    _logMonitorFrame = new JFrame("LogFactor5");    _logMonitorFrame.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);    String resource =        "/org/apache/log4j/lf5/viewer/images/lf5_small_icon.gif";    URL lf5IconURL = getClass().getResource(resource);    if (lf5IconURL != null) {      _logMonitorFrame.setIconImage(new ImageIcon(lf5IconURL).getImage());    }    updateFrameSize();    //    // Configure the LogTable.    //    JTextArea detailTA = createDetailTextArea();    JScrollPane detailTAScrollPane = new JScrollPane(detailTA);    _table = new LogTable(detailTA);    setView(_currentView, _table);    _table.setFont(new Font(_fontName, Font.PLAIN, _fontSize));    _logTableScrollPane = new JScrollPane(_table);    if (_trackTableScrollPane) {      _logTableScrollPane.getVerticalScrollBar().addAdjustmentListener(          new TrackingAdjustmentListener()      );    }    // Configure the SplitPane between the LogTable & DetailTextArea    //    JSplitPane tableViewerSplitPane = new JSplitPane();    tableViewerSplitPane.setOneTouchExpandable(true);    tableViewerSplitPane.setOrientation(JSplitPane.VERTICAL_SPLIT);    tableViewerSplitPane.setLeftComponent(_logTableScrollPane);    tableViewerSplitPane.setRightComponent(detailTAScrollPane);    // Make sure to do this last..    //tableViewerSplitPane.setDividerLocation(1.0); Doesn't work    //the same under 1.2.x & 1.3    // "350" is a magic number that provides the correct default    // behaviour under 1.2.x & 1.3.  For example, bumping this    // number to 400, causes the pane to be completely open in 1.2.x    // and closed in 1.3    tableViewerSplitPane.setDividerLocation(350);    //    // Configure the CategoryExplorer    //    _categoryExplorerTree = new CategoryExplorerTree();    _table.getFilteredLogTableModel().setLogRecordFilter(createLogRecordFilter());    JScrollPane categoryExplorerTreeScrollPane =        new JScrollPane(_categoryExplorerTree);    categoryExplorerTreeScrollPane.setPreferredSize(new Dimension(130, 400));    // Load most recently used file list    _mruFileManager = new MRUFileManager();    //    // Configure the SplitPane between the CategoryExplorer & (LogTable/Detail)    //    JSplitPane splitPane = new JSplitPane();    splitPane.setOneTouchExpandable(true);    splitPane.setRightComponent(tableViewerSplitPane);    splitPane.setLeftComponent(categoryExplorerTreeScrollPane);    // Do this last.    splitPane.setDividerLocation(130);    //    // Add the MenuBar, StatusArea, CategoryExplorer|LogTable to the    // LogMonitorFrame.    //    _logMonitorFrame.getRootPane().setJMenuBar(createMenuBar());    _logMonitorFrame.getContentPane().add(splitPane, BorderLayout.CENTER);    _logMonitorFrame.getContentPane().add(createToolBar(),        BorderLayout.NORTH);    _logMonitorFrame.getContentPane().add(createStatusArea(),        BorderLayout.SOUTH);    makeLogTableListenToCategoryExplorer();    addTableModelProperties();    //    // Configure ConfigurationManager    //    _configurationManager = new ConfigurationManager(this, _table);  }  protected LogRecordFilter createLogRecordFilter() {    LogRecordFilter result = new LogRecordFilter() {      public boolean passes(LogRecord record) {        CategoryPath path = new CategoryPath(record.getCategory());        return            getMenuItem(record.getLevel()).isSelected() &&            _categoryExplorerTree.getExplorerModel().isCategoryPathActive(path);      }    };    return result;  }  // Added in version 1.2 - Creates a new filter that sorts records based on  // an NDC string passed in by the user.  protected LogRecordFilter createNDCLogRecordFilter(String text) {    _NDCTextFilter = text;    LogRecordFilter result = new LogRecordFilter() {      public boolean passes(LogRecord record) {        String NDC = record.getNDC();        CategoryPath path = new CategoryPath(record.getCategory());        if (NDC == null || _NDCTextFilter == null) {          return false;        } else if (NDC.toLowerCase().indexOf(_NDCTextFilter.toLowerCase()) == -1) {          return false;        } else {          return getMenuItem(record.getLevel()).isSelected() &&              _categoryExplorerTree.getExplorerModel().isCategoryPathActive(path);        }      }    };    return result;  }  protected void updateStatusLabel() {    _statusLabel.setText(getRecordsDisplayedMessage());  }  protected String getRecordsDisplayedMessage() {    FilteredLogTableModel model = _table.getFilteredLogTableModel();    return getStatusText(model.getRowCount(), model.getTotalRowCount());  }  protected void addTableModelProperties() {    final FilteredLogTableModel model = _table.getFilteredLogTableModel();    addDisplayedProperty(new Object() {      public String toString() {        return getRecordsDisplayedMessage();      }    });    addDisplayedProperty(new Object() {      public String toString() {        return "Maximum number of displayed LogRecords: "            + model._maxNumberOfLogRecords;      }    });  }  protected String getStatusText(int displayedRows, int totalRows) {    StringBuffer result = new StringBuffer();    result.append("Displaying: ");    result.append(displayedRows);    result.append(" records out of a total of: ");    result.append(totalRows);    result.append(" records.");    return result.toString();  }  protected void makeLogTableListenToCategoryExplorer() {    ActionListener listener = new ActionListener() {      public void actionPerformed(ActionEvent e) {        _table.getFilteredLogTableModel().refresh();        updateStatusLabel();      }    };    _categoryExplorerTree.getExplorerModel().addActionListener(listener);  }  protected JPanel createStatusArea() {    JPanel statusArea = new JPanel();    JLabel status =        new JLabel("No log records to display.");    _statusLabel = status;    status.setHorizontalAlignment(JLabel.LEFT);    statusArea.setBorder(BorderFactory.createEtchedBorder());    statusArea.setLayout(new FlowLayout(FlowLayout.LEFT, 0, 0));    statusArea.add(status);    return (statusArea);  }  protected JTextArea createDetailTextArea() {    JTextArea detailTA = new JTextArea();    detailTA.setFont(new Font("Monospaced", Font.PLAIN, 14));    detailTA.setTabSize(3);    detailTA.setLineWrap(true);    detailTA.setWrapStyleWord(false);    return (detailTA);  }  protected JMenuBar createMenuBar() {    JMenuBar menuBar = new JMenuBar();    menuBar.add(createFileMenu());    menuBar.add(createEditMenu());    menuBar.add(createLogLevelMenu());    menuBar.add(createViewMenu());    menuBar.add(createConfigureMenu());    menuBar.add(createHelpMenu());    return (menuBar);  }  protected JMenu createLogLevelMenu() {    JMenu result = new JMenu("Log Level");    result.setMnemonic('l');    Iterator levels = getLogLevels();    while (levels.hasNext()) {      result.add(getMenuItem((LogLevel) levels.next()));    }    result.addSeparator();    result.add(createAllLogLevelsMenuItem());    result.add(createNoLogLevelsMenuItem());    result.addSeparator();    result.add(createLogLevelColorMenu());    result.add(createResetLogLevelColorMenuItem());    return result;  }  protected JMenuItem createAllLogLevelsMenuItem() {    JMenuItem result = new JMenuItem("Show all LogLevels");    result.setMnemonic('s');    result.addActionListener(new ActionListener() {      public void actionPerformed(ActionEvent e) {        selectAllLogLevels(true);        _table.getFilteredLogTableModel().refresh();        updateStatusLabel();      }    });    return result;  }  protected JMenuItem createNoLogLevelsMenuItem() {    JMenuItem result = new JMenuItem("Hide all LogLevels");    result.setMnemonic('h');    result.addActionListener(new ActionListener() {      public void actionPerformed(ActionEvent e) {        selectAllLogLevels(false);        _table.getFilteredLogTableModel().refresh();        updateStatusLabel();      }    });    return result;  }  protected JMenu createLogLevelColorMenu() {    JMenu colorMenu = new JMenu("Configure LogLevel Colors");    colorMenu.setMnemonic('c');    Iterator levels = getLogLevels();    while (levels.hasNext()) {      colorMenu.add(createSubMenuItem((LogLevel) levels.next()));    }    return colorMenu;  }  protected JMenuItem createResetLogLevelColorMenuItem() {    JMenuItem result = new JMenuItem("Reset LogLevel Colors");    result.setMnemonic('r');    result.addActionListener(new ActionListener() {      public void actionPerformed(ActionEvent e) {        // reset the level colors in the map        LogLevel.resetLogLevelColorMap();        // refresh the table        _table.getFilteredLogTableModel().refresh();      }    });    return result;  }  protected void selectAllLogLevels(boolean selected) {    Iterator levels = getLogLevels();    while (levels.hasNext()) {      getMenuItem((LogLevel) levels.next()).setSelected(selected);    }  }  protected JCheckBoxMenuItem getMenuItem(LogLevel level) {    JCheckBoxMenuItem result = (JCheckBoxMenuItem) (_logLevelMenuItems.get(level));    if (result == null) {      result = createMenuItem(level);      _logLevelMenuItems.put(level, result);    }    return result;  }  protected JMenuItem createSubMenuItem(LogLevel level) {    final JMenuItem result = new JMenuItem(level.toString());    final LogLevel logLevel = level;    result.setMnemonic(level.toString().charAt(0));    result.addActionListener(new ActionListener() {      public void actionPerformed(ActionEvent e) {        showLogLevelColorChangeDialog(result, logLevel);      }    });    return result;  }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本成人中文字幕在线视频 | 欧美色网站导航| 337p亚洲精品色噜噜狠狠| 欧美国产精品一区二区三区| 亚洲国产欧美一区二区三区丁香婷| 精一区二区三区| 日本乱人伦一区| 国产欧美视频一区二区| 日韩电影在线免费观看| 97超碰欧美中文字幕| 久久人人爽爽爽人久久久| 亚洲国产欧美在线| 一本一本久久a久久精品综合麻豆 一本一道波多野结衣一区二区 | 粉嫩久久99精品久久久久久夜 | 91精品啪在线观看国产60岁| 中文字幕亚洲不卡| 狠狠狠色丁香婷婷综合激情| 6080午夜不卡| 视频一区在线播放| 在线观看一区日韩| 亚洲欧美综合网| 成人高清av在线| 久久综合久久鬼色中文字| 日本伊人午夜精品| 欧美日本一道本| 香蕉久久一区二区不卡无毒影院 | 91精品国产综合久久久久久漫画| 亚洲三级在线播放| 99国产欧美另类久久久精品| 中文字幕一区在线观看| 大胆欧美人体老妇| 国产精品高潮呻吟| 成人夜色视频网站在线观看| 国产欧美日韩在线看| 国产盗摄一区二区| 国产精品人妖ts系列视频| 国产精品资源站在线| 国产日韩欧美精品一区| 粉嫩嫩av羞羞动漫久久久| 国产精品久久久久久福利一牛影视| 国产精品 日产精品 欧美精品| 久久这里只有精品首页| 国产成人精品免费| 国产精品色在线| 91免费在线看| 亚洲第一激情av| 欧美日韩免费在线视频| 琪琪久久久久日韩精品| 欧美精品一区二区精品网| 国产精品一区三区| 中文字幕一区二区三区色视频| 91在线视频观看| 亚洲国产成人av网| 日韩视频在线永久播放| 成人综合在线视频| 一区二区三区91| 日韩午夜电影在线观看| 丁香婷婷综合激情五月色| 亚洲欧美日韩一区二区 | 爽爽淫人综合网网站| 精品久久久久久久久久久院品网 | 国产精品视频一区二区三区不卡| 99精品国产热久久91蜜凸| 亚洲夂夂婷婷色拍ww47| 日韩一级在线观看| 丁香亚洲综合激情啪啪综合| 性做久久久久久| 国产日韩高清在线| 欧洲av一区二区嗯嗯嗯啊| 六月丁香婷婷色狠狠久久| 综合欧美亚洲日本| 91精品综合久久久久久| www.欧美.com| 另类的小说在线视频另类成人小视频在线| 国产网红主播福利一区二区| 欧美日韩综合在线| 风间由美一区二区av101 | 麻豆精品一区二区av白丝在线| 国产日产欧美一区二区视频| 欧美另类videos死尸| 国产黄人亚洲片| 日韩国产在线观看| 亚洲人亚洲人成电影网站色| 欧美大片在线观看一区二区| 91久久精品一区二区| 国内精品视频一区二区三区八戒| 一区二区国产视频| 中文一区一区三区高中清不卡| 欧美人妇做爰xxxⅹ性高电影 | 欧美无砖专区一中文字| 国产成人精品免费视频网站| 免费在线观看日韩欧美| 亚洲国产精品久久人人爱蜜臀| 国产女同性恋一区二区| 日韩欧美一区二区三区在线| 在线免费视频一区二区| 成人免费av在线| 韩国av一区二区三区四区| 亚洲成人一区在线| 一区二区三区免费网站| 欧美激情艳妇裸体舞| 久久久午夜电影| 91精品国产欧美一区二区成人| 日本道精品一区二区三区| 成人午夜私人影院| 国产麻豆精品在线观看| 国产在线精品不卡| 久久99最新地址| 麻豆91在线播放免费| 五月天精品一区二区三区| 一区二区日韩电影| 亚洲欧美国产77777| 国产精品久久久99| 日本一区二区三区四区| 国产三级欧美三级| 久久伊人蜜桃av一区二区| 久久精品亚洲乱码伦伦中文| 欧美成人a视频| 精品国产一区二区国模嫣然| 精品日韩在线一区| 久久综合九色综合欧美98| 精品国产一区二区国模嫣然| 久久日一线二线三线suv| 久久这里只有精品首页| 欧美国产禁国产网站cc| 国产精品伦一区| 18涩涩午夜精品.www| 亚洲精品国产高清久久伦理二区| 一卡二卡欧美日韩| 五月婷婷激情综合网| 日韩av电影免费观看高清完整版 | 一区二区三区欧美视频| 亚洲已满18点击进入久久| 亚洲一区二区欧美| 青青草伊人久久| 国产在线精品一区在线观看麻豆| 国产精品一区在线观看你懂的| 成人激情黄色小说| 在线观看一区日韩| 欧美r级电影在线观看| 国产婷婷一区二区| 亚洲欧美一区二区三区极速播放 | 国产一区二区0| av午夜一区麻豆| 欧美日韩一区二区不卡| 日韩一级黄色片| 国产精品毛片高清在线完整版| 亚洲一级电影视频| 精品一区二区在线播放| 91亚洲资源网| 制服丝袜中文字幕一区| 国产精品久久久久一区二区三区| 亚洲一区二区三区影院| 激情深爱一区二区| 色哟哟国产精品免费观看| 日韩亚洲欧美高清| 日韩一区在线看| 麻豆精品国产传媒mv男同| 不卡区在线中文字幕| 欧美一卡二卡三卡| 国产精品网站在线观看| 日韩精品亚洲专区| 成人免费高清在线| 欧美一区二区三区白人| 亚洲欧美日韩国产综合在线| 美女国产一区二区三区| 在线亚洲免费视频| www欧美成人18+| 水蜜桃久久夜色精品一区的特点| av不卡在线播放| 日韩一区二区免费高清| 一区二区视频在线| 国产精品一区二区在线播放| 欧美精品99久久久**| 亚洲免费在线观看| 国产精品影音先锋| 日韩精品中文字幕在线一区| 伊人开心综合网| 99re热视频精品| 国产人成一区二区三区影院| 青青草国产成人99久久| 欧美日韩一区二区在线观看视频| 中文无字幕一区二区三区| 久久99久久精品| 91精品国产一区二区人妖| 亚洲国产一区二区在线播放| jiyouzz国产精品久久| 精品国产污网站| 奇米精品一区二区三区在线观看一| 91成人在线观看喷潮| 国产精品理论片| 国产精品一级二级三级| 精品久久久影院| 精品一区免费av| 精品日韩成人av| 久久精品国产99| 精品国产不卡一区二区三区| 激情文学综合丁香| 久久久国产一区二区三区四区小说 | 欧美三级韩国三级日本一级|