Package weka.gui

Class PropertySelectorDialog

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class PropertySelectorDialog extends JDialog
Allows the user to select any (supported) property of an object, including properties that any of it's property values may have.
Version:
$Revision: 14494 $
Author:
Len Trigg (trigg@cs.waikato.ac.nz)
See Also:
  • Field Details

    • APPROVE_OPTION

      public static final int APPROVE_OPTION
      Signifies an OK property selection
      See Also:
    • CANCEL_OPTION

      public static final int CANCEL_OPTION
      Signifies a cancelled property selection
      See Also:
  • Constructor Details

    • PropertySelectorDialog

      public PropertySelectorDialog(Frame parentFrame, Object rootObject)
      Create the property selection dialog.
      Parameters:
      parentFrame - the parent frame of the dialog
      rootObject - the object containing properties to select from
  • Method Details

    • showDialog

      public int showDialog()
      Pops up the modal dialog and waits for cancel or a selection.
      Returns:
      either APPROVE_OPTION, or CANCEL_OPTION
    • getPath

      public PropertyNode[] getPath()
      Gets the path of property nodes to the selected property.
      Returns:
      an array of PropertyNodes
    • main

      public static void main(String[] args)
      Tests out the property selector from the command line.
      Parameters:
      args - ignored