Class ListView

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----ListView

class ListView
extends Panel
implements Observer
An user interface component that shows a Network by means of two lists; one containing the Modules and one containing the Connections between the Modules. This class can be used as a view in the Model-View-Controller paradigm, because it implements Observer.

Version:
$Revision: 1.8 $

Variable Index

 o connectionListBox
 o connectionTable
 o moduleListBox
 o network

Constructor Index

 o ListView(Network, List, List)

Method Index

 o addConnection(Connection)
 o addModule(Module)
 o clear()
 o connectionString(Connection)
 o moduleString(Module)
 o removeConnection(Connection)
 o removeModule(Module)
Remove the view counterpart of a specified Module from the view.
 o update(Observable, Object)

Variables

 o network
 private Network network
 o connectionListBox
 private List connectionListBox
 o moduleListBox
 private List moduleListBox
 o connectionTable
 private Hashtable connectionTable

Constructors

 o ListView
 ListView(Network network,
          List moduleListBox,
          List connectionListBox)

Methods

 o update
 public void update(Observable o,
                    Object arg)
 o addModule
 private void addModule(Module m)
 o removeModule
 private void removeModule(Module m)
Remove the view counterpart of a specified Module from the view.

 o addConnection
 private void addConnection(Connection c)
 o removeConnection
 private void removeConnection(Connection c)
 o clear
 private void clear()
 o connectionString
 private String connectionString(Connection c)
 o moduleString
 private String moduleString(Module m)