00001 package edu.ksu.cis.bandera.abstraction.gui; 00002 00003 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 00004 * Bandera, a Java(TM) analysis and transformation toolkit * 00005 * Copyright (C) 1998, 1999, 2000 Shawn Laubach (laubach@acm.org) * 00006 * All rights reserved. * 00007 * * 00008 * Modifications by Robby (robby@cis.ksu.edu) are * 00009 * Copyright (C) 2000 Robby. All rights reserved. * 00010 * * 00011 * This work was done as a project in the SAnToS Laboratory, * 00012 * Department of Computing and Information Sciences, Kansas State * 00013 * University, USA (http://www.cis.ksu.edu/santos). * 00014 * It is understood that any modification not identified as such is * 00015 * not covered by the preceding statement. * 00016 * * 00017 * This work is free software; you can redistribute it and/or * 00018 * modify it under the terms of the GNU Library General Public * 00019 * License as published by the Free Software Foundation; either * 00020 * version 2 of the License, or (at your option) any later version. * 00021 * * 00022 * This work is distributed in the hope that it will be useful, * 00023 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00024 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * 00025 * Library General Public License for more details. * 00026 * * 00027 * You should have received a copy of the GNU Library General Public * 00028 * License along with this toolkit; if not, write to the * 00029 * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * 00030 * Boston, MA 02111-1307, USA. * 00031 * * 00032 * Java is a trademark of Sun Microsystems, Inc. * 00033 * * 00034 * To submit a bug report, send a comment, or get the latest news on * 00035 * this project and other SAnToS projects, please visit the web-site * 00036 * http://www.cis.ksu.edu/santos * 00037 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ 00038 import java.util.Vector; 00039 import javax.swing.table.*; 00040 import java.util.Hashtable; 00041 import ca.mcgill.sable.soot.*; 00042 import javax.swing.tree.TreeNode; 00043 public class TypeTreeNode extends AbstractTreeNode { 00044 protected java.lang.String name; 00045 /** 00046 * Insert the method's description here. 00047 * Creation date: (5/12/00 12:57:14 PM) 00048 * @param name java.lang.String 00049 */ 00050 public TypeTreeNode(String name) { 00051 this.name = name; 00052 } 00053 /** 00054 * Insert the method's description here. 00055 * Creation date: (5/12/00 12:56:45 PM) 00056 * @return boolean 00057 */ 00058 public boolean getAllowsChildren() { 00059 return true; 00060 } 00061 /** 00062 * Insert the method's description here. 00063 * Creation date: (3/24/00 12:20:36 AM) 00064 * @return javax.swing.table.TableCellRenderer 00065 * @param row int 00066 * @param column int 00067 */ 00068 public TableCellEditor getCellEditor(int column) { 00069 return null; 00070 } 00071 /** 00072 * Insert the method's description here. 00073 * Creation date: (3/24/00 12:20:36 AM) 00074 * @return javax.swing.table.TableCellRenderer 00075 * @param row int 00076 * @param column int 00077 */ 00078 public TableCellRenderer getCellRenderer(int column) { 00079 return null; 00080 } 00081 /** 00082 * Insert the method's description here. 00083 * Creation date: (5/12/00 1:08:39 PM) 00084 * @return java.lang.String 00085 */ 00086 public java.lang.String getName() { 00087 return name; 00088 } 00089 /** 00090 * Insert the method's description here. 00091 * Creation date: (5/12/00 1:08:39 PM) 00092 * @param newName java.lang.String 00093 */ 00094 public void setName(java.lang.String newName) { 00095 name = newName; 00096 } 00097 /** 00098 * Insert the method's description here. 00099 * Creation date: (5/12/00 1:55:15 PM) 00100 * @return java.lang.String 00101 */ 00102 public String toString() { 00103 return getName(); 00104 } 00105 }