|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--java.awt.Window
|
+--java.awt.Dialog
|
+--javax.swing.JDialog
|
+--upidiff.gui.OpenDialogGUI
A dialog component to present the user with the possibility to choose two files.
| Field Summary | |
private JButton |
cancelButton
|
private boolean |
cancelled
Indicates whether the operation was cancelled. |
private JTextField |
firstFileField
|
private JCheckBox |
hiddenFilesCheckbox
|
private JButton |
okButton
|
private JButton |
openFirstButton
|
private JButton |
openSecondButton
|
private JTextField |
secondFileField
|
| Fields inherited from class javax.swing.JDialog |
accessibleContext, rootPane, rootPaneCheckingEnabled |
| Fields inherited from class java.awt.Dialog |
|
| Fields inherited from class java.awt.Window |
|
| Fields inherited from class java.awt.Container |
|
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface javax.swing.WindowConstants |
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
OpenDialogGUI(Frame owner)
Creates a new instance. |
|
| Method Summary | |
void |
actionPerformed(ActionEvent event)
Handles an action event in the dialog component. |
private String |
chooseFile()
Called once the user pressed an "Open" button. |
InputSource |
getFirstInputSource()
Returns the first selected file. |
InputSource |
getSecondInputSource()
Returns the second selected file. |
private GridBagConstraints |
makeGBC(int x,
int y,
int w,
int h)
Helper routine to create a GridBagConstraints. |
boolean |
run()
Runs the OpenDialogGUI instances. |
| Methods inherited from class java.awt.Dialog |
addNotify, dispose, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setResizable, setTitle, setUndecorated, show |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private JTextField firstFileField
private JTextField secondFileField
private JButton openFirstButton
private JButton openSecondButton
private JCheckBox hiddenFilesCheckbox
private JButton okButton
private JButton cancelButton
private boolean cancelled
| Constructor Detail |
public OpenDialogGUI(Frame owner)
owner - Parent window component.| Method Detail |
public void actionPerformed(ActionEvent event)
actionPerformed in interface ActionListenerevent - Action event description.private String chooseFile()
public boolean run()
getFirstInputSource(),
getSecondInputSource()
public InputSource getFirstInputSource()
throws InputException
InputException - Failed to fill the input buffer.
public InputSource getSecondInputSource()
throws InputException
InputException - Failed to fill the input buffer.
private GridBagConstraints makeGBC(int x,
int y,
int w,
int h)
x - X offset.y - Y offset.w - Width.h - Height.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||