GNU Prolog for Java

gnu.prolog.vm.buildins.dialogs
Class Predicate_file_save

java.lang.Object
  extended by gnu.prolog.vm.ExecuteOnlyCode
      extended by gnu.prolog.vm.buildins.dialogs.Predicate_dialog
          extended by gnu.prolog.vm.buildins.dialogs.Predicate_file_save
All Implemented Interfaces:
Installable, PrologCode
Direct Known Subclasses:
Predicate_file_open

public class Predicate_file_save
extends Predicate_dialog

Author:
Michiel Hendriks

Nested Class Summary
 
Nested classes/interfaces inherited from class gnu.prolog.vm.buildins.dialogs.Predicate_dialog
Predicate_dialog.DialogOptions
 
Field Summary
 
Fields inherited from class gnu.prolog.vm.buildins.dialogs.Predicate_dialog
ABORT_ATOM, CANCEL_ATOM, DIALOG_OPTION_ATOM, ERROR_ATOM, FILEMASK_TAG, IGNORE_ATOM, INFO_ATOM, MESSAGE_TAG, NO_ATOM, OK_ATOM, QUESTION_ATOM, RETRY_ATOM, SELECTION_TAG, TITLE_TAG, TYPE_TAG, WARNING_ATOM, YES_ATOM
 
Fields inherited from interface gnu.prolog.vm.PrologCode
FAIL, HALT, SUCCESS, SUCCESS_LAST
 
Constructor Summary
Predicate_file_save()
           
 
Method Summary
protected  JFileChooser createFileDialog(Term[] args)
           
 int execute(Interpreter interpreter, boolean backtrackMode, Term[] args)
          this method is used for execution of code
 
Methods inherited from class gnu.prolog.vm.buildins.dialogs.Predicate_dialog
processOptions
 
Methods inherited from class gnu.prolog.vm.ExecuteOnlyCode
install, uninstall
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Predicate_file_save

public Predicate_file_save()
Method Detail

execute

public int execute(Interpreter interpreter,
                   boolean backtrackMode,
                   Term[] args)
            throws PrologException
Description copied from interface: PrologCode
this method is used for execution of code

Specified by:
execute in interface PrologCode
Specified by:
execute in class ExecuteOnlyCode
Parameters:
interpreter - interpreter in which context code is executed
backtrackMode - true if predicate is called on backtracking and false otherwise
args - arguments of code
Returns:
either SUCCESS, SUCCESS_LAST, or FAIL.
Throws:
PrologException

createFileDialog

protected JFileChooser createFileDialog(Term[] args)
                                 throws PrologException
Parameters:
args -
Throws:
PrologException

GNU Prolog for Java