Package weka.gui

Class ViewerDialog

    • Field Detail

      • APPROVE_OPTION

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

        public static final int CANCEL_OPTION
        Signifies a cancelled property selection
        See Also:
        Constant Field Values
    • Constructor Detail

      • ViewerDialog

        public ViewerDialog​(Frame parent)
        initializes the dialog with the given parent
        Parameters:
        parent - the parent for this dialog
    • Method Detail

      • setInstances

        public void setInstances​(Instances inst)
        sets the instances to display
      • getInstances

        public Instances getInstances()
        returns the currently displayed instances
      • isChanged

        public boolean isChanged()
        returns whether the data has been changed
        Returns:
        true if the data has been changed
      • showDialog

        public int showDialog()
        Pops up the modal dialog and waits for Cancel or OK.
        Returns:
        either APPROVE_OPTION, or CANCEL_OPTION
      • showDialog

        public int showDialog​(Instances inst)
        Pops up the modal dialog and waits for Cancel or OK.
        Parameters:
        inst - the instances to display
        Returns:
        either APPROVE_OPTION, or CANCEL_OPTION