程序包 weka.gui

类 PropertyDialog

所有已实现的接口:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class PropertyDialog extends JDialog
Support for PropertyEditors with custom editors: puts the editor into a separate frame.
版本:
$Revision: 7899 $
作者:
Len Trigg (trigg@cs.waikato.ac.nz)
另请参阅:
  • 构造器详细资料

    • PropertyDialog

      public PropertyDialog(PropertyEditor pe, int x, int y)
      已过时。
      instead of this constructor, one should use the constructors with an explicit owner (either derived from java.awt.Dialog or from java.awt.Frame) or, if none available, using (Frame) null as owner.
      Creates the editor frame - only kept for backward-compatibility.
      参数:
      pe - the PropertyEditor
      x - initial x coord for the frame
      y - initial y coord for the frame
    • PropertyDialog

      public PropertyDialog(Dialog owner, PropertyEditor pe)
      Creates the (screen-centered) editor dialog. The dialog is automatically modal in case the owner is non-null.
      参数:
      owner - the dialog that opens this dialog
      pe - the PropertyEditor
    • PropertyDialog

      public PropertyDialog(Dialog owner, PropertyEditor pe, int x, int y)
      Creates the editor dialog at the given position. The dialog is automatically modal in case the owner is non-null.
      参数:
      owner - the dialog that opens this dialog
      pe - the PropertyEditor
      x - initial x coord for the dialog
      y - initial y coord for the dialog
    • PropertyDialog

      public PropertyDialog(Frame owner, PropertyEditor pe)
      Creates the (screen-centered) editor dialog. The dialog is automatically modal in case the owner is non-null.
      参数:
      owner - the frame that opens this dialog
      pe - the PropertyEditor
    • PropertyDialog

      public PropertyDialog(Frame owner, PropertyEditor pe, int x, int y)
      Creates the editor dialog at the given position. The dialog is automatically modal in case the owner is non-null.
      参数:
      owner - the frame that opens this dialog
      pe - the PropertyEditor
      x - initial x coord for the dialog
      y - initial y coord for the dialog
  • 方法详细资料

    • getEditor

      public PropertyEditor getEditor()
      Gets the current property editor.
      返回:
      a value of type 'PropertyEditor'
    • getParentFrame

      public static Frame getParentFrame(Container c)
      Tries to determine the frame this panel is part of.
      参数:
      c - the container to start with
      返回:
      the parent frame if one exists or null if not
    • getParentDialog

      public static Dialog getParentDialog(Container c)
      Tries to determine the dialog this panel is part of.
      参数:
      c - the container to start with
      返回:
      the parent dialog if one exists or null if not