swingwt.awt
Class FileDialog

java.lang.Object
  extended byswingwt.awt.Component
      extended byswingwt.awt.Container
          extended byswingwt.awt.Window
              extended byswingwt.awt.Dialog
                  extended byswingwt.awt.FileDialog
All Implemented Interfaces:
ImageObserver, MenuContainer

public class FileDialog
extends Dialog

Wrapper around JFileChooser to enable AWT compatibility.


Field Summary
protected  java.lang.String dir
           
protected  java.lang.String file
           
protected  java.io.FileFilter filter
           
static int LOAD
           
protected  int mode
           
protected  Component parent
           
static int SAVE
           
protected  JFileChooser swingFileChooser
           
 
Fields inherited from class swingwt.awt.Dialog
isModal, isResizable
 
Fields inherited from class swingwt.awt.Window
delayPack, display, FRAME_DECORATION_HEIGHT, FRAME_DECORATION_WIDTH, iconImage, isClosed, isIcon, peer, pMenu, pMenuBar, rootPane, title, windowListeners
 
Fields inherited from class swingwt.awt.Container
composite, comps, containerListeners, layout, queuedValidateRequest
 
Fields inherited from class swingwt.awt.Component
accessibleContext, actionCommand, actionListeners, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, componentListeners, componentName, consumeAvailableHeight, consumeAvailableWidth, focusable, focusListeners, inputMethodListeners, isUserSetFont, keyListeners, layoutModifier, LEFT_ALIGNMENT, LOCK, mouseListeners, mouseMotionListeners, mouseWheelListeners, pBackground, pCursor, pDoubleBuffered, pEnabled, pFont, pForeground, pLayoutData, pLocation, pMaxSize, pMinSize, ppeer, pPrefSize, pSize, pToolTipText, pVisible, RIGHT_ALIGNMENT, swingWTDefaultActionEventAdapter, swingWTEventAdapter, TOP_ALIGNMENT
 
Fields inherited from interface swingwt.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
FileDialog(Frame parent)
           
FileDialog(Frame parent, java.lang.String title)
           
FileDialog(Frame parent, java.lang.String title, int mode)
           
 
Method Summary
 java.lang.String getDirectory()
           
 java.lang.String getFile()
           
 java.io.FileFilter getFilenameFilter()
           
 int getMode()
           
 void setDirectory(java.lang.String dir)
           
 void setFile(java.lang.String file)
           
 void setFilenameFilter(java.io.FileFilter f)
           
 void setMode(int mode)
           
 void setVisible(boolean b)
          Overridden from Window to force private events dispatching for modality
 void show()
          Makes the component visible
 
Methods inherited from class swingwt.awt.Dialog
getSWTFrameType, isModal, isResizable, setCustomSWTShellStyle, setModal, setResizable
 
Methods inherited from class swingwt.awt.Window
add, add, addMouseListener, addWindowListener, create, create, dispatchEvents, dispose, getBounds, getDefaultButton, getIconImage, getJMenuBar, getLayout, getLocationOnScreen, getMenuBar, getSize, getSWTPeer, getTitle, hide, isActive, pack, processWindowEvent, processWindowEvent, registerWindowEvents, remove, removeMouseListener, removeWindowListener, repaintFix, setBounds, setBounds, setCachedProperties, setDefaultButton, setIconImage, setJMenuBar, setLayout, setLayout, setLocation, setLocation, setLocationRelativeTo, setMenuBar, setSize, setSize, setSwingWTParent, setTitle, toBack, toFront
 
Methods inherited from class swingwt.awt.Container
add, add, add, addComponentToLayout, addContainerListener, debug_showContainmentTree, doAdd, doLayout, getComponent, getComponentCount, getComponentOrientation, getComponents, getComposite, getInsets, getMaximumSize, getMinimumSize, getParent, getPreferredSize, invalidate, minimumSize, preferredSize, processContainerEvent, processEvent, queuedValidate, remove, removeAll, removeComponentFromCache, removeContainerListener, revalidate, setLayoutImpl, setSwingWTParent, validate
 
Methods inherited from class swingwt.awt.Component
add, addActionListener, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseMotionListener, addMouseWheelListener, addNotify, calculatePreferredSize, componentOnlyDispose, computePreferredSize, contains, contains, createImage, createListenerArrayFromVector, createVolatileImage, dispatchEvent, getAccessibleContext, getActionCommand, getAlignmentX, getAlignmentY, getBackground, getCursor, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getListeners, getLocation, getName, getPeer, getPeerSize, getSize, getToolkit, getToolTipText, getTreeLock, getWidth, getX, getY, grabFocus, hasFocus, hasSetFont, imageUpdate, inside, isEnabled, isFocusable, isMinimumSizeSet, isShowing, isVisible, paint, paintComponent, processActionEvent, processComponentEvent, processFocusEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, processTraverseEvent, registerActionEvents, registerComponentEvents, registerEvents, registerExtendedModifyEvents, registerFocusEvents, registerKeyEvents, registerModifyEvents, registerMouseEvents, registerPaintEvents, registerTraversalEvents, remove, removeActionListener, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, repaint, repaint, repaint, requestFocus, setActionCommand, setAlignmentX, setAlignmentY, setBackground, setComponentOrientation, setComponentRemoved, setCursor, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setFont, setForeground, setHeight, setMaximumSize, setMinimumSize, setName, setPreferredSize, setToolTipText, setWidth, transferFocus, transferFocusBackward, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOAD

public static final int LOAD
See Also:
Constant Field Values

SAVE

public static final int SAVE
See Also:
Constant Field Values

mode

protected int mode

swingFileChooser

protected JFileChooser swingFileChooser

parent

protected Component parent

file

protected java.lang.String file

dir

protected java.lang.String dir

filter

protected java.io.FileFilter filter
Constructor Detail

FileDialog

public FileDialog(Frame parent)

FileDialog

public FileDialog(Frame parent,
                  java.lang.String title)

FileDialog

public FileDialog(Frame parent,
                  java.lang.String title,
                  int mode)
Method Detail

show

public void show()
Description copied from class: Component
Makes the component visible

Overrides:
show in class Window

setVisible

public void setVisible(boolean b)
Description copied from class: Dialog
Overridden from Window to force private events dispatching for modality

Overrides:
setVisible in class Dialog

getDirectory

public java.lang.String getDirectory()

getFile

public java.lang.String getFile()

getFilenameFilter

public java.io.FileFilter getFilenameFilter()

setFilenameFilter

public void setFilenameFilter(java.io.FileFilter f)

setDirectory

public void setDirectory(java.lang.String dir)

setFile

public void setFile(java.lang.String file)

getMode

public int getMode()

setMode

public void setMode(int mode)