org.xnap.plugin.pircbot
Class PircBotServerTableModel

java.lang.Object
  extended by org.xnap.gui.table.AbstractTreeTableModel
      extended by org.xnap.gui.table.AbstractColumnTreeTableModel
          extended by org.xnap.gui.table.DefaultColumnTreeTableModel
              extended by org.xnap.plugin.pircbot.PircBotServerTableModel
All Implemented Interfaces:
javax.swing.tree.TreeModel, ColumnModel, SortableModel, TreeTableModel

public class PircBotServerTableModel
extends DefaultColumnTreeTableModel


Field Summary
 
Fields inherited from class org.xnap.gui.table.AbstractColumnTreeTableModel
columns
 
Fields inherited from class org.xnap.gui.table.AbstractTreeTableModel
listenerList, root
 
Constructor Summary
PircBotServerTableModel()
           
 
Method Summary
 void add(PircBotServer server)
           
 PircBotNetworkNode add(java.lang.String network)
           
 java.lang.String[] getNetworks()
           
 java.lang.Object getValueAt(java.lang.Object node, int column)
          Returns the value to be displayed for node node, at column number column.
 void move(PircBotServer server)
          Invoked by PircBotNetworkNode when the network of the server has changed.
 void remove(PircBotServer server)
          Removes server from the table model.
 java.util.Iterator servers()
           
 
Methods inherited from class org.xnap.gui.table.DefaultColumnTreeTableModel
add, getChild, getChildCount, getSortedColumn, indexOfByData, isSortedAscending, iterator, remove, remove, setMaintainSortOrder, sortByColumn
 
Methods inherited from class org.xnap.gui.table.AbstractColumnTreeTableModel
addColumn, addColumns, createColumnMenu, createTreeTable, getColumnAt, getColumnClass, getColumnCount, getColumnName, isLeaf
 
Methods inherited from class org.xnap.gui.table.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 org.xnap.gui.table.SortableModel
getColumnClass
 

Constructor Detail

PircBotServerTableModel

public PircBotServerTableModel()
Method Detail

add

public void add(PircBotServer server)

add

public PircBotNetworkNode add(java.lang.String network)

move

public void move(PircBotServer server)
Invoked by PircBotNetworkNode when the network of the server has changed.


remove

public void remove(PircBotServer server)
Removes server from the table model.


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
Overrides:
getValueAt in class DefaultColumnTreeTableModel

getNetworks

public java.lang.String[] getNetworks()

servers

public java.util.Iterator servers()


Copyright © 2001-2005 XNap Team. All Rights Reserved.