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

📄 basicnode.java

📁 java开源的企业总线.xmlBlaster
💻 JAVA
字号:
/*------------------------------------------------------------------------------Name:      BasicNode.javaProject:   xmlBlaster.orgCopyright: xmlBlaster.org, see xmlBlaster-LICENSE file------------------------------------------------------------------------------*/package org.xmlBlaster.jmxgui;import javax.swing.Icon;import javax.swing.JPanel;/** * Wraps Information about a Node in the TreeView * Used to create a TreeView that contains the Nodes with their functionality * <p>Title: </p> * <p>Description: </p> * <p>Copyright: Copyright (c) 2003</p> * <p>Company: </p> * @author unascribed * @version 1.0 */public class BasicNode {  protected JPanel panel = null;  protected String m_name;  protected String className;  protected Icon expandedIcon = null;  protected Icon normalIcon = null;  public BasicNode(JPanel panel, String m_name) {    this.m_name = m_name;    this.panel = panel;  }  public void setClassName(String className) {    this.className = className;  }  public String getClassName() {    return this.className;  }  public void setExpandedIcon(Icon myIcon) {    this.expandedIcon = myIcon;  }  public void setNormalIcon(Icon myIcon) {    this.normalIcon = myIcon;  }  public Icon getExpandedIcon() {    return this.expandedIcon;  }  public Icon getNormalIcon() {    return this.normalIcon;  }  public void setName(String name) {    this.m_name = name;  }  public String getName() {    return this.m_name;  }  public void setPanel(JPanel panel) {    this.panel = panel;  }  public JPanel getPanel() {    return this.panel;  }  public boolean hasPanel() {    if (this.panel == null)      return false;      else        return true;  }  public String toString() {    return this.m_name;  }}

⌨️ 快捷键说明

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