All Packages This Package Class Hierarchy Class Search Index
Class bmsi.tui.TUIFileDialog
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Window
|
+----java.awt.Dialog
|
+----bmsi.tui.TUIFileDialog
public class TUIFileDialog
extends java.awt.Dialog
implements java.awt.peer.FileDialogPeer
{
// Fields 17
Panel buttons;
Button cancelButton;
String dir;
List directoryList;
String file;
List fileList;
FilenameFilter filter;
Button filterButton;
TextField filterField;
GridBagConstraints gbc;
GridBagLayout gbl;
FlowLayout gblButtons;
int mode;
Button openButton;
TextField selectionField;
FileDialog target;
String title;
// Constructors 1
public TUIFileDialog(FileDialog);
// Methods 18
static String getFileName(String);
static String getParent(String);
void addComponent(Component, GridBagLayout, GridBagConstraints, int, int, int, int, Container, int, int, int, Insets);
public void beginValidate();
public void endValidate();
void handleCancel();
public void handleEvent(AWTEvent);
public boolean handleEvent(Event);
void handleFilter(String);
void handleQuit();
void handleSelection(String);
public boolean isFocusTraversable();
public void setDirectory(String);
public void setFile(String);
public void setFilenameFilter(FilenameFilter);
void setFilterEntry(String, String);
void setFilterField(String);
void setSelectionField(String);
}
This FileDialog was adapted from sun.awt.tiny.FileDialog.
We changed the hardwired insets and sizes. It still needs more work.
The layout is OK (fortunately, since I hate GridBagLayout), but
the behaviour of the fields seems confusing to me.
The FileDialog for a remote peer need to browse files on the server
since that is where the java code is running. A Java Thin Client would
still use this FileDialog, not the one for the workstation.
FileDialog target
String file
String dir
String title
int mode
FilenameFilter filter
GridBagLayout gbl
FlowLayout gblButtons
GridBagConstraints gbc
TextField filterField
TextField selectionField
List directoryList
List fileList
Panel buttons
Button openButton
Button filterButton
Button cancelButton
public TUIFileDialog(FileDialog fileDialog)
void addComponent(Component component,
GridBagLayout gridBagLayout,
GridBagConstraints gridBagConstraints,
int i1,
int j1,
int k1,
int i2,
Container container,
int j2,
int k2,
int i3,
Insets insets)
static String getFileName(String string)
static String getParent(String string)
void handleFilter(String filename)
void handleSelection(String name)
void handleCancel()
void handleQuit()
void setFilterEntry(String dirname,
String filename)
void setSelectionField(String string)
void setFilterField(String string)
public boolean handleEvent(Event event)
- Overrides:
- handleEvent in class Component
public void handleEvent(AWTEvent aWTEvent)
public void setFile(String string1)
- Implements:
- setFile in interface FileDialogPeer
public void setDirectory(String string)
- Implements:
- setDirectory in interface FileDialogPeer
public void setFilenameFilter(FilenameFilter filenameFilter)
- Implements:
- setFilenameFilter in interface FileDialogPeer
public boolean isFocusTraversable()
- Overrides:
- isFocusTraversable in class Component
public void beginValidate()
public void endValidate()
All Packages This Package Class Hierarchy Class Search Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7