Top Description Fields Constructors Methods
org.apache.bcel.verifier

public Class VerifierFactoryListModel

extends Object
implements VerifierFactoryObserver, ListModel<String>
Class Inheritance
All Implemented Interfaces
javax.swing.ListModel, org.apache.bcel.verifier.VerifierFactoryObserver
Imports
java.util.ArrayList, .List, .Set, .TreeSet, javax.swing.ListModel, javax.swing.event.ListDataEvent, .ListDataListener, org.apache.commons.lang3.ArrayUtils

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

Field Summary

Modifier and TypeField and Description
private final Set<String>
private final List<ListDataListener>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public synchronized void
addListDataListener(final ListDataListener
the ListDataListener to be added
l
)

Implements javax.swing.ListModel.addListDataListener.

Adds a listener to the list that's notified each time a change to the data model occurs.
public synchronized String
getElementAt(final int
the requested index
index
)

Implements javax.swing.ListModel.getElementAt.

Returns the value at the specified index.
public synchronized int
getSize()

Implements javax.swing.ListModel.getSize.

Returns the length of the list.
public synchronized void
removeListDataListener(final ListDataListener
the ListDataListener to be removed
l
)

Implements javax.swing.ListModel.removeListDataListener.

Removes a listener from the list that's notified each time a change to the data model occurs.
public synchronized void
update(final String s)

Implements org.apache.bcel.verifier.VerifierFactoryObserver.update.

VerifierFactoryObserver instances are notified invoking this method.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

cacheback to summary
private final Set<String> cache
listenersback to summary
private final List<ListDataListener> listeners

Constructor Detail

VerifierFactoryListModelback to summary
public VerifierFactoryListModel()

Method Detail

addListDataListenerback to summary
public synchronized void addListDataListener(final ListDataListener l)

Implements javax.swing.ListModel.addListDataListener.

Doc from javax.swing.ListModel.addListDataListener.

Adds a listener to the list that's notified each time a change to the data model occurs.

Parameters
l:ListDataListener

the ListDataListener to be added

Annotations
@Override
getElementAtback to summary
public synchronized String getElementAt(final int index)

Implements javax.swing.ListModel.getElementAt.

Doc from javax.swing.ListModel.getElementAt.

Returns the value at the specified index.

Parameters
index:int

the requested index

Returns:String

the value at index

Annotations
@Override
getSizeback to summary
public synchronized int getSize()

Implements javax.swing.ListModel.getSize.

Doc from javax.swing.ListModel.getSize.

Returns the length of the list.

Returns:int

the length of the list

Annotations
@Override
removeListDataListenerback to summary
public synchronized void removeListDataListener(final ListDataListener l)

Implements javax.swing.ListModel.removeListDataListener.

Doc from javax.swing.ListModel.removeListDataListener.

Removes a listener from the list that's notified each time a change to the data model occurs.

Parameters
l:ListDataListener

the ListDataListener to be removed

Annotations
@Override
updateback to summary
public synchronized void update(final String s)

Implements org.apache.bcel.verifier.VerifierFactoryObserver.update.

Doc from org.apache.bcel.verifier.VerifierFactoryObserver.update.

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.

Annotations
@Override