Class TwoListPanel

All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible

public class TwoListPanel extends JPanel implements ActionListener
This supports exchanging entries between two jlists
Version:
$Revision: 1.12 $
Author:
IDV Development Team
See Also:
  • Constructor Details

    • TwoListPanel

      public TwoListPanel(List fromEntries, String fromLabel, List toEntries, String toLabel, JComponent extraButtons)
      _more_
      Parameters:
      fromEntries - All available entries
      fromLabel - _more_
      toEntries - Currently use entries
      toLabel - _more_
      extraButtons - _more_
    • TwoListPanel

      public TwoListPanel(List fromEntries, String fromLabel, List toEntries, String toLabel, JComponent extraButtons, boolean showUpDownButtons)
      _more_
      Parameters:
      fromEntries - _more_
      fromLabel - _more_
      toEntries - _more_
      toLabel - _more_
      extraButtons - _more_
      showUpDownButtons - _more_
  • Method Details

    • showDialog

      public boolean showDialog(String title, String windowLabel, List labels, List ids, Hashtable current)
      _more_
      Parameters:
      title - _more_
      windowLabel - _more_
      labels - _more_
      ids - _more_
      current - _more_
      Returns:
      _more_
    • getContents

      public JComponent getContents(String windowLabel, List labels, List ids, Hashtable current)
      _more_
      Parameters:
      windowLabel - _more_
      labels - _more_
      ids - _more_
      current - _more_
      Returns:
      _more_
    • reinitialize

      public void reinitialize(List fromEntries, List toEntries)
      _more_
      Parameters:
      fromEntries - _more_
      toEntries - _more_
    • getCurrentEntries

      public List getCurrentEntries()
      _more_
      Returns:
      _more_
    • insertEntry

      public void insertEntry(Object tfo)
      Insert the given entry into the toEntries lsit
      Parameters:
      tfo - The new entry
    • getFromList

      public JList getFromList()
      Return the from list
      Returns:
      The from list
    • getToList

      public JList getToList()
      Return the to list
      Returns:
      The to list
    • reload

      public void reload()
      Set the initial list of toEntries
    • actionPerformed

      public void actionPerformed(ActionEvent ae)
      Handle the action
      Specified by:
      actionPerformed in interface ActionListener
      Parameters:
      ae - The action
    • getChanged

      public boolean getChanged()
      Keeps track if there were any changes
      Returns:
      Any changes