Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.bcel.verifier
Class VerifierFactoryListModel  view VerifierFactoryListModel download VerifierFactoryListModel.java

java.lang.Object
  extended byorg.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 $

Field Summary
private  java.util.TreeSet cache
           
private  java.util.ArrayList listeners
           
 
Constructor Summary
VerifierFactoryListModel()
           
 
Method Summary
 void addListDataListener(javax.swing.event.ListDataListener l)
          Add a listener object to this model.
 java.lang.Object getElementAt(int index)
          Retrieves a data element at a specified index.
 int getSize()
          Return the number of data elements in the list.
 void removeListDataListener(javax.swing.event.ListDataListener l)
          Add a listener object to this model.
 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)
Description copied from interface: javax.swing.ListModel
Add a listener object to this model. The listener will be called any time the set of elements in the model is changed.

Specified by:
addListDataListener in interface javax.swing.ListModel

removeListDataListener

public void removeListDataListener(javax.swing.event.ListDataListener l)
Description copied from interface: javax.swing.ListModel
Add a listener object to this model. The listener will no longer be called when the set of elements in the model is changed.

Specified by:
removeListDataListener in interface javax.swing.ListModel

getSize

public int getSize()
Description copied from interface: javax.swing.ListModel
Return the number of data elements in the list.

Specified by:
getSize in interface javax.swing.ListModel

getElementAt

public java.lang.Object getElementAt(int index)
Description copied from interface: javax.swing.ListModel
Retrieves a data element at a specified index.

Specified by:
getElementAt in interface javax.swing.ListModel