org.xnap.plugin.opennap.gui
Class OpenNapServerTableModel

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.opennap.gui.OpenNapServerTableModel
All Implemented Interfaces:
java.util.EventListener, javax.swing.tree.TreeModel, SwingListListener, ColumnModel, SortableModel, TreeTableModel

public class OpenNapServerTableModel
extends DefaultColumnTreeTableModel
implements SwingListListener


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
OpenNapServerTableModel()
           
 
Method Summary
 OpenNapNetworkNode add(OpenNapNetwork network)
           
 void add(OpenNapServer server)
           
 java.lang.String[] getNetworkNames()
           
 java.lang.Object getValueAt(java.lang.Object node, int column)
          Returns the value to be displayed for node node, at column number column.
 void itemsAdded(java.lang.Object[] items)
          Invoked when servers have been added.
 void itemsRemoved(java.lang.Object[] items)
          Invoked when servers have been removed.
 void move(OpenNapServer server)
          Invoked by OpenNapNetworkNode when the network of the server has changed.
 void remove(OpenNapServer server)
          Removes server from the table model.
 
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

OpenNapServerTableModel

public OpenNapServerTableModel()
Method Detail

itemsAdded

public void itemsAdded(java.lang.Object[] items)
Invoked when servers have been added.

Specified by:
itemsAdded in interface SwingListListener

itemsRemoved

public void itemsRemoved(java.lang.Object[] items)
Invoked when servers have been removed.

Specified by:
itemsRemoved in interface SwingListListener

add

public void add(OpenNapServer server)

add

public OpenNapNetworkNode add(OpenNapNetwork network)

move

public void move(OpenNapServer server)
Invoked by OpenNapNetworkNode when the network of the server has changed.


remove

public void remove(OpenNapServer 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

getNetworkNames

public java.lang.String[] getNetworkNames()


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