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 $
-
connectionListBox
-
-
connectionTable
-
-
moduleListBox
-
-
network
-
-
ListView(Network, List, List)
-
-
addConnection(Connection)
-
-
addModule(Module)
-
-
clear()
-
-
connectionString(Connection)
-
-
moduleString(Module)
-
-
removeConnection(Connection)
-
-
removeModule(Module)
- Remove the view counterpart of a specified Module from the view.
-
update(Observable, Object)
-
network
private Network network
connectionListBox
private List connectionListBox
moduleListBox
private List moduleListBox
connectionTable
private Hashtable connectionTable
ListView
ListView(Network network,
List moduleListBox,
List connectionListBox)
update
public void update(Observable o,
Object arg)
addModule
private void addModule(Module m)
removeModule
private void removeModule(Module m)
- Remove the view counterpart of a specified Module from the view.
addConnection
private void addConnection(Connection c)
removeConnection
private void removeConnection(Connection c)
clear
private void clear()
connectionString
private String connectionString(Connection c)
moduleString
private String moduleString(Module m)