ptolemy.vergil.unit
Class UnitSolverDialog.SolutionListModel

java.lang.Object
  extended by javax.swing.AbstractListModel
      extended by ptolemy.vergil.unit.UnitSolverDialog.SolutionListModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.ListModel
Enclosing class:
UnitSolverDialog

public static class UnitSolverDialog.SolutionListModel
extends javax.swing.AbstractListModel

List of solutions.

See Also:
Serialized Form

Field Summary
(package private)  java.util.Vector _solutions
           
 
Fields inherited from class javax.swing.AbstractListModel
listenerList
 
Constructor Summary
UnitSolverDialog.SolutionListModel()
           
 
Method Summary
 void clear()
          Clear the current set of solutions.
 java.lang.Object getElementAt(int index)
          Return an element.
 int getSize()
          Return the number of solutions.
 void setSolutions(java.util.Vector solutions)
          Set the solutions to the specified argument.
 
Methods inherited from class javax.swing.AbstractListModel
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_solutions

java.util.Vector _solutions
Constructor Detail

UnitSolverDialog.SolutionListModel

public UnitSolverDialog.SolutionListModel()
Method Detail

getElementAt

public java.lang.Object getElementAt(int index)
Return an element.

Parameters:
index - The index of the element to be returned.
Returns:
The element at the specified index.

getSize

public int getSize()
Return the number of solutions.

Returns:
The number of solutions.

setSolutions

public void setSolutions(java.util.Vector solutions)
Set the solutions to the specified argument.

Parameters:
solutions - A vector of solutions.

clear

public void clear()
Clear the current set of solutions.