Class GBXFileDialog

java.lang.Object
  |
  +--GBXFileDialog

public class GBXFileDialog
extends java.lang.Object

Class the contains filedialog options.


Field Summary
(package private)  java.awt.Color bgcolor
          Default background color.
(package private)  CircuitDiagram CD
          CircuitDiagram.
(package private)  GBXFilter filter
          Our gbx filter.
(package private)  GateBuilder GB
          Gatebuilder class
(package private) static int h_size
          Default horizontal size of our dialog box.
(package private) static java.lang.String title
          Default title of dialog box.
(package private) static int v_size
          Default vertical size of our dialog box.
 
Constructor Summary
GBXFileDialog(CircuitDiagram CD, GateBuilder GB)
          Default constructor.
 
Method Summary
 java.lang.String open()
          Default open dialog.
 java.lang.String open(java.lang.String Title)
          Opens an Open filedialog.
(package private)  java.lang.String real_open(java.lang.String real_title, int real_mode)
          The real method for opening a filedialog box.
 java.lang.String save()
          Default save dialog.
 java.lang.String save(java.lang.String Title)
          Opens a Save filedialog.
 java.lang.String save(java.lang.String title, boolean isMacro)
          Opens a Save filedialog.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

h_size

static final int h_size
Default horizontal size of our dialog box.

v_size

static final int v_size
Default vertical size of our dialog box.

title

static java.lang.String title
Default title of dialog box.

filter

GBXFilter filter
Our gbx filter.

bgcolor

java.awt.Color bgcolor
Default background color.

CD

CircuitDiagram CD
CircuitDiagram.

GB

GateBuilder GB
Gatebuilder class
Constructor Detail

GBXFileDialog

public GBXFileDialog(CircuitDiagram CD,
                     GateBuilder GB)
Default constructor.
Method Detail

open

public java.lang.String open(java.lang.String Title)
Opens an Open filedialog.
Parameters:
Title - title of the dialog box.
Returns:
the path to the file the user chose.

open

public java.lang.String open()
Default open dialog.

save

public java.lang.String save(java.lang.String Title)
Opens a Save filedialog.
Parameters:
Title - title of the dialog box.
Returns:
the path to the file the user chose.

save

public java.lang.String save(java.lang.String title,
                             boolean isMacro)
Opens a Save filedialog.
Parameters:
Title - title of the dialog box.
isMacro - whether or not what we're exporting is a macro.
Returns:
the path to the file the chose.

save

public java.lang.String save()
Default save dialog.
Returns:
the path to the file the user chose.

real_open

java.lang.String real_open(java.lang.String real_title,
                           int real_mode)
The real method for opening a filedialog box.
Parameters:
real_title - Title of the dialog box.
real_mode - Mode to open the dialog box in read or write.
Returns:
the path to the file the user chose.