org.apache.bcel.verifier
Class VerifierFactoryListModel

java.lang.Object
  extended by org.apache.bcel.verifier.VerifierFactoryListModel
All Implemented Interfaces:
javax.swing.ListModel, VerifierFactoryObserver

public class VerifierFactoryListModel
extends java.lang.Object
implements VerifierFactoryObserver, javax.swing.ListModel

This class implements an adapter; it implements both a Swing ListModel and a VerifierFactoryObserver.

Version:
$Id: VerifierFactoryListModel.java 386056 2006-03-15 11:31:56Z tcurdt $
Author:
Enver Haase

Field Summary
private  java.util.TreeSet cache
           
private  java.util.ArrayList listeners
           
 
Constructor Summary
VerifierFactoryListModel()
           
 
Method Summary
 void addListDataListener(javax.swing.event.ListDataListener l)
           
 java.lang.Object getElementAt(int index)
           
 int getSize()
           
 void removeListDataListener(javax.swing.event.ListDataListener l)
           
 void update(java.lang.String s)
          VerifierFactoryObserver instances are notified invoking this method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

listeners

private java.util.ArrayList listeners

cache

private java.util.TreeSet cache
Constructor Detail

VerifierFactoryListModel

public VerifierFactoryListModel()
Method Detail

update

public void update(java.lang.String s)
Description copied from interface: VerifierFactoryObserver
VerifierFactoryObserver instances are notified invoking this method. The String argument is the fully qualified class name of a class a new Verifier instance created by the VerifierFactory operates on.

Specified by:
update in interface VerifierFactoryObserver

addListDataListener

public void addListDataListener(javax.swing.event.ListDataListener l)
Specified by:
addListDataListener in interface javax.swing.ListModel

removeListDataListener

public void removeListDataListener(javax.swing.event.ListDataListener l)
Specified by:
removeListDataListener in interface javax.swing.ListModel

getSize

public int getSize()
Specified by:
getSize in interface javax.swing.ListModel

getElementAt

public java.lang.Object getElementAt(int index)
Specified by:
getElementAt in interface javax.swing.ListModel