All Packages  Class Hierarchy  This Package  Previous  Next  Index  WEKA's home

Class weka.gui.ListSelectorDialog

java.lang.Object
    |
    +----java.awt.Component
            |
            +----java.awt.Container
                    |
                    +----java.awt.Window
                            |
                            +----java.awt.Dialog
                                    |
                                    +----javax.swing.JDialog
                                            |
                                            +----weka.gui.ListSelectorDialog

public class ListSelectorDialog
extends javax.swing.JDialog
A dialog to present the user with a list of items, that the user can make a selection from, or cancel the selection.

Version:
$Revision: 1.4 $
Author:
Len Trigg (trigg@cs.waikato.ac.nz)

Variable Index

 o APPROVE_OPTION
Signifies an OK property selection
 o CANCEL_OPTION
Signifies a cancelled property selection

Constructor Index

 o ListSelectorDialog(Frame, JList)
Create the list selection dialog.

Method Index

 o main(String[])
Tests out the list selector from the command line.
 o showDialog()
Pops up the modal dialog and waits for cancel or a selection.

Field Detail

 o APPROVE_OPTION
public static final int APPROVE_OPTION
          Signifies an OK property selection
 o CANCEL_OPTION
public static final int CANCEL_OPTION
          Signifies a cancelled property selection

Constructor Detail

 o ListSelectorDialog
public ListSelectorDialog(java.awt.Frame parentFrame,
                          javax.swing.JList userList)
          Create the list selection dialog.
Parameters:
parentFrame - the parent frame of the dialog
userList - the JList component the user will select from

Method Detail

 o showDialog
public int showDialog()
          Pops up the modal dialog and waits for cancel or a selection.
Returns:
either APPROVE_OPTION, or CANCEL_OPTION
 o main
public static void main(java.lang.String args[])
          Tests out the list selector from the command line.
Parameters:
args - ignored

All Packages  Class Hierarchy  This Package  Previous  Next  Index  WEKA's home