Class 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

      • Fields inherited from class javax.swing.AbstractListModel

        listenerList
    • 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.
      • 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
    • Constructor Detail

      • SolutionListModel

        public 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.