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

  Summary

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.




  Fields

· target

Summary  |  Top

   FileDialog target


· file

Summary  |  Top
   String file


· dir

Summary  |  Top
   String dir


· title

Summary  |  Top
   String title


· mode

Summary  |  Top
   int mode


· filter

Summary  |  Top
   FilenameFilter filter


· gbl

Summary  |  Top
   GridBagLayout gbl


· gblButtons

Summary  |  Top
   FlowLayout gblButtons


· gbc

Summary  |  Top
   GridBagConstraints gbc


· filterField

Summary  |  Top
   TextField filterField


· selectionField

Summary  |  Top
   TextField selectionField


· directoryList

Summary  |  Top
   List directoryList


· fileList

Summary  |  Top
   List fileList


· buttons

Summary  |  Top
   Panel buttons


· openButton

Summary  |  Top
   Button openButton


· filterButton

Summary  |  Top
   Button filterButton


· cancelButton

Summary  |  Top
   Button cancelButton


  Constructors

· TUIFileDialog

Summary  |  Top

   public TUIFileDialog(FileDialog fileDialog) 


  Methods

· addComponent

Summary  |  Top
   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) 


· getFileName

Summary  |  Top
   static String getFileName(String string) 


· getParent

Summary  |  Top
   static String getParent(String string) 


· handleFilter

Summary  |  Top
   void handleFilter(String filename) 


· handleSelection

Summary  |  Top
   void handleSelection(String name) 


· handleCancel

Summary  |  Top
   void handleCancel() 


· handleQuit

Summary  |  Top
   void handleQuit() 


· setFilterEntry

Summary  |  Top
   void setFilterEntry(String dirname, 
                       String filename) 


· setSelectionField

Summary  |  Top
   void setSelectionField(String string) 


· setFilterField

Summary  |  Top
   void setFilterField(String string) 


· handleEvent

Summary  |  Top
   public boolean handleEvent(Event event) 
Overrides:
handleEvent in class Component


· handleEvent

Summary  |  Top
   public void handleEvent(AWTEvent aWTEvent) 


· setFile

Summary  |  Top
   public void setFile(String string1) 
Implements:
setFile in interface FileDialogPeer


· setDirectory

Summary  |  Top
   public void setDirectory(String string) 
Implements:
setDirectory in interface FileDialogPeer


· setFilenameFilter

Summary  |  Top
   public void setFilenameFilter(FilenameFilter filenameFilter) 
Implements:
setFilenameFilter in interface FileDialogPeer


· isFocusTraversable

Summary  |  Top
   public boolean isFocusTraversable() 
Overrides:
isFocusTraversable in class Component


· beginValidate

Summary  |  Top
   public void beginValidate() 


· endValidate

Summary  |  Top
   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