Package ptolemy.vergil.unit
Class UnitSolverDialog.SolutionListModel
- java.lang.Object
-
- javax.swing.AbstractListModel
-
- 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
-
-
Constructor Summary
Constructors Constructor Description SolutionListModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
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.
-
-