com.limegroup.gnutella.gui
Class GroupModel
java.lang.Object
com.limegroup.gnutella.gui.AbstractTreeTableModel
com.limegroup.gnutella.gui.GroupModel
- All Implemented Interfaces:
- javax.swing.tree.TreeModel, TreeTableModel
- public class GroupModel
- extends AbstractTreeTableModel
- implements TreeTableModel
GroupModel is a TreeTableModel representing a hierarchical set of groups.
Field Summary |
protected static java.lang.String[] |
cNames
|
protected static java.lang.Class[] |
cTypes
|
Method Summary |
java.lang.Object |
getChild(java.lang.Object node,
int i)
|
int |
getChildCount(java.lang.Object node)
|
protected java.lang.Object[] |
getChildren(java.lang.Object node)
|
java.lang.Class |
getColumnClass(int column)
Returns the type for column number column . |
int |
getColumnCount()
Returns the number ofs availible column. |
java.lang.String |
getColumnName(int column)
Returns the name for column number column . |
protected java.lang.String |
getDescription(java.lang.Object node)
|
protected java.lang.String |
getGroup(java.lang.Object node)
|
java.lang.Object |
getValueAt(java.lang.Object node,
int column)
Returns the value to be displayed for node node ,
at column number column . |
boolean |
isLeaf(java.lang.Object node)
|
Methods inherited from class com.limegroup.gnutella.gui.AbstractTreeTableModel |
addTreeModelListener, fireTreeNodesChanged, fireTreeNodesInserted, fireTreeNodesRemoved, fireTreeStructureChanged, getIndexOfChild, getRoot, isCellEditable, removeTreeModelListener, setValueAt, valueForPathChanged |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.swing.tree.TreeModel |
addTreeModelListener, getIndexOfChild, getRoot, removeTreeModelListener, valueForPathChanged |
cNames
protected static java.lang.String[] cNames
cTypes
protected static java.lang.Class[] cTypes
GroupModel
public GroupModel(GroupNode root)
getGroup
protected java.lang.String getGroup(java.lang.Object node)
getDescription
protected java.lang.String getDescription(java.lang.Object node)
getChildren
protected java.lang.Object[] getChildren(java.lang.Object node)
getChildCount
public int getChildCount(java.lang.Object node)
- Specified by:
getChildCount
in interface javax.swing.tree.TreeModel
getChild
public java.lang.Object getChild(java.lang.Object node,
int i)
- Specified by:
getChild
in interface javax.swing.tree.TreeModel
isLeaf
public boolean isLeaf(java.lang.Object node)
- Specified by:
isLeaf
in interface javax.swing.tree.TreeModel
- Overrides:
isLeaf
in class AbstractTreeTableModel
getColumnCount
public int getColumnCount()
- Description copied from interface:
TreeTableModel
- Returns the number ofs availible column.
- Specified by:
getColumnCount
in interface TreeTableModel
getColumnName
public java.lang.String getColumnName(int column)
- Description copied from interface:
TreeTableModel
- Returns the name for column number
column
.
- Specified by:
getColumnName
in interface TreeTableModel
getColumnClass
public java.lang.Class getColumnClass(int column)
- Description copied from interface:
TreeTableModel
- Returns the type for column number
column
.
- Specified by:
getColumnClass
in interface TreeTableModel
- Overrides:
getColumnClass
in class AbstractTreeTableModel
getValueAt
public java.lang.Object getValueAt(java.lang.Object node,
int column)
- Description copied from interface:
TreeTableModel
- Returns the value to be displayed for node
node
,
at column number column
.
- Specified by:
getValueAt
in interface TreeTableModel