⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 systempropertiesdockedtab.java

📁 eq跨平台查询工具源码 eq跨平台查询工具源码
💻 JAVA
字号:
/* * SystemPropertiesDockedTab.java * * Copyright (C) 2002, 2003, 2004, 2005, 2006 Takis Diakoumis * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA. * */package org.executequery.gui;import java.awt.BorderLayout;import javax.swing.JTabbedPane;import org.underworldlabs.swing.HeapMemoryPanel;/* ---------------------------------------------------------- * CVS NOTE: Changes to the CVS repository prior to the  *           release of version 3.0.0beta1 has meant a  *           resetting of CVS revision numbers. * ---------------------------------------------------------- *//** * System properties docked component. * * @author   Takis Diakoumis * @version  $Revision: 1.4 $ * @date     $Date: 2006/05/14 06:56:52 $ */public class SystemPropertiesDockedTab extends AbstractDockedTabActionPanel {        public static final String TITLE = "System Properties";        /** the system properties panel */    private SystemPropertiesPanel propertiesPanel;        /** the heap resources panel */    private HeapMemoryPanel resourcesPanel;        /** Creates a new instance of SystemPropertiesDockedTab */    public SystemPropertiesDockedTab() {        super(new BorderLayout());        init();    }        private void init() {        propertiesPanel = new SystemPropertiesPanel();        resourcesPanel = new HeapMemoryPanel();                JTabbedPane tabs = new JTabbedPane();        tabs.add("System", propertiesPanel);        tabs.add("Resources", resourcesPanel);                add(tabs, BorderLayout.CENTER);    }    /**     * Override to clean up the mem thread.     */    public boolean tabViewClosing() {        resourcesPanel.stopTimer();        return true;    }    /**     * Override to make sure the timer has started.     */    public boolean tabViewSelected() {        resourcesPanel.startTimer();        return true;    }    // ----------------------------------------    // DockedTabView Implementation    // ----------------------------------------    public static final String MENU_ITEM_KEY = "viewSystemProperties";        public static final String PROPERTY_KEY = "system.display.systemprops";        /**     * Returns the display title for this view.     *     * @return the title displayed for this view     */    public String getTitle() {        return TITLE;    }    /**     * Returns the name defining the property name for this docked tab view.     *     * @return the key     */    public String getPropertyKey() {        return PROPERTY_KEY;    }    /**     * Returns the name defining the menu cache property     * for this docked tab view.     *     * @return the preferences key     */    public String getMenuItemKey() {        return MENU_ITEM_KEY;    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -