yu.ac.bg.etf.javaqx.qswing
Class JQFileChooser

java.lang.Object
  extended byyu.ac.bg.etf.javaqx.core.AbstractDisposable
      extended byyu.ac.bg.etf.javaqx.qswing.JQComponent
          extended byyu.ac.bg.etf.javaqx.qswing.JQContainer
              extended byyu.ac.bg.etf.javaqx.qswing.JQWindow
                  extended byyu.ac.bg.etf.javaqx.qswing.JQDialog
                      extended byyu.ac.bg.etf.javaqx.qswing.JQFileChooser
All Implemented Interfaces:
Disposable, JQComponentProperties, JQContainerProperties, JQWindowConstants, JQWindowProperties

public final class JQFileChooser
extends JQDialog

File Chooser Component.

NOTE: This class is not compatible with javax.swing.JFileChooser class!

Version:
0.2.0
Author:
Slobodan Vrkacevic (slobodan.vrkacevic@gmail.com)

Field Summary
 
Fields inherited from class yu.ac.bg.etf.javaqx.qswing.JQDialog
ACCEPTED, REJECTED
 
Fields inherited from class yu.ac.bg.etf.javaqx.qswing.JQWindow
ALWAYS_ON_TOP_WINDOW_SUPPORTED, BORDER_HELP_BUTTON, BORDER_MAXIMIZE_BUTTON, BORDER_MINIMIZE_BUTTON, BORDER_SYSTEM_MENU, BORDER_TITLE, BORDER_UNDECORATED, FULL_SCREEN_WINDOW_SUPPORTED, TYPE_DIALOG, TYPE_POPUP, TYPE_SPLASH_SCREEN, TYPE_TOOL, TYPE_WINDOW, WINDOW_OPACITY_SUPPORTED, WINDOW_SHAPE_SUPPORTED
 
Fields inherited from class yu.ac.bg.etf.javaqx.qswing.JQComponent
listenerList
 
Fields inherited from interface yu.ac.bg.etf.javaqx.qswing.JQWindowConstants
APPLICATION_MODAL, DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, FULL_SCREEN, HIDE_ON_CLOSE, ICONIFIED, MAXIMIZED, NON_MODAL, NORMAL, POSITION_CUSTOM, QUIT_ON_CLOSE, WINDOW_MODAL
 
Fields inherited from interface yu.ac.bg.etf.javaqx.qswing.properties.JQWindowProperties
PROPERTY_ALWAYS_ON_TOP, PROPERTY_DEFAULT_CLOSE_OPERATION, PROPERTY_ICON_IMAGE, PROPERTY_OPACITY, PROPERTY_SHAPE, PROPERTY_TITLE
 
Fields inherited from interface yu.ac.bg.etf.javaqx.qswing.properties.JQContainerProperties
PROPERTY_LAYOUT_MANAGER
 
Fields inherited from interface yu.ac.bg.etf.javaqx.qswing.properties.JQComponentProperties
PROPERTY_BACKGROUND, PROPERTY_COMPONENT_ORIENTATION, PROPERTY_CONTEXT_MENU, PROPERTY_ENABLED, PROPERTY_FIXED_SIZE, PROPERTY_FOCUSABLE, PROPERTY_FONT, PROPERTY_FOREGROUND, PROPERTY_INSETS, PROPERTY_LOCALE, PROPERTY_MAXIMUM_SIZE, PROPERTY_MINIMUM_SIZE, PROPERTY_NAME, PROPERTY_OPAQUE, PROPERTY_PREFERRED_SIZE, PROPERTY_RESOURCE_BUNDLE_NAME, PROPERTY_STATUS_TIP_TEXT, PROPERTY_STYLE_SHEET, PROPERTY_TOOL_TIP_TEXT, PROPERTY_VISIBLE, PROPERTY_WHATS_THIS_TEXT
 
Method Summary
static java.io.File getExistingDirectory(JQComponent parent)
          Returns directory selected by the user.
static java.io.File getExistingDirectory(JQComponent parent, java.lang.String caption, java.lang.String directory)
          Returns directory selected by the user.
static java.lang.String getExistingDirectoryName(JQComponent parent)
          Returns directory selected by the user.
static java.lang.String getExistingDirectoryName(JQComponent parent, java.lang.String caption, java.lang.String directory)
          Returns directory selected by the user.
static java.io.File getOpenFile(JQComponent parent)
          Returns file selected by the user.
static java.io.File getOpenFile(JQComponent parent, java.lang.String caption, java.lang.String directory, java.lang.String filter, java.lang.String selectedFilter)
          Returns file selected by the user.
static java.lang.String getOpenFileName(JQComponent parent)
          Returns file selected by the user.
static java.lang.String getOpenFileName(JQComponent parent, java.lang.String caption, java.lang.String directory, java.lang.String filter, java.lang.String selectedFilter)
          Returns file selected by the user.
static java.io.File getSaveFile(JQComponent parent)
          Returns file selected by the user.
static java.io.File getSaveFile(JQComponent parent, java.lang.String caption, java.lang.String directory, java.lang.String filter, java.lang.String selectedFilter)
          Returns file selected by the user.
static java.lang.String getSaveFileName(JQComponent parent)
          Returns file selected by the user.
static java.lang.String getSaveFileName(JQComponent parent, java.lang.String caption, java.lang.String directory, java.lang.String filter, java.lang.String selectedFilter)
          Returns file selected by the user.
 
Methods inherited from class yu.ac.bg.etf.javaqx.qswing.JQDialog
closeDialog, getDialogResult, isAccepted, isRejected, setAccepted, setModal, showDialog
 
Methods inherited from class yu.ac.bg.etf.javaqx.qswing.JQWindow
addWindowListener, getActiveWindow, getBorderDecoration, getDefaultCloseOperation, getIconImage, getModalityType, getOpacity, getOwnedComponents, getOwnedWindows, getState, getTitle, getWindowListeners, getWindowOwner, getWindows, getWindowType, isAlwaysOnTop, isFullScreen, isModal, isUndecorated, paramString, processWindowEvent, removeWindowListener, setAlwaysOnTop, setBorderDecoration, setDefaultCloseOperation, setFixedSize, setFullScreen, setIconImage, setLocationRelativeTo, setModalityType, setOpacity, setState, setTitle, setUndecorated, setWindowOwner, setWindowType, toBack, toFront, toggleFullScreen, updateLocalization
 
Methods inherited from class yu.ac.bg.etf.javaqx.qswing.JQContainer
add, add, add, add, addImpl, doLayout, getComponent, getComponentCount, getComponentIndex, getComponents, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, invalidate, pack, remove, remove, removeAll, setBackground, setComponentOrientation, setForeground, setLayout, validate
 
Methods inherited from class yu.ac.bg.etf.javaqx.qswing.JQComponent
addComponentListener, addFocusListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addPropertyChangeListener, addPropertyChangeListener, disableEvents, disposeComponent, disposeObject, enableEvents, eventEnabled, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getClientProperty, getComponentListeners, getComponentOrientation, getContextMenu, getCursor, getEventMask, getFocusListener, getFont, getFontMetrics, getForeground, getHeight, getInsets, getKeyListeners, getLocale, getLocation, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getOwner, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getResourceBundleName, getSize, getStatusTipText, getStyleSheet, getToolTipText, getToolTipText, getWhatsThisText, getWidth, getX, getY, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFontSet, isForegroundSet, isLeftToRight, isLocaleSet, isOpaque, isOwnerOf, isPainting, isResizable, isResourceBundleNameSet, isUpdatesEnabled, isValid, isVisible, localizeObject, localizeString, localizeString, localizeStrings, paintComponent, processComponentEvent, processContextMenuEvent, processFocusEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, processStyleChange, putClientProperty, removeComponentListener, removeFocusListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, removeStyleSheet, repaint, repaint, repaint, requestFocus, revalidate, setBounds, setBounds, setContextMenu, setCursor, setDefaultResourceBundleName, setDisplayable, setEnabled, setFixedSize, setFocusable, setFont, setInsets, setInsets, setLeftToRightComponentOrientation, setLocale, setLocation, setLocation, setMaximumSize, setMaximumSize, setMinimumSize, setMinimumSize, setName, setOpaque, setPreferredSize, setPreferredSize, setResizable, setResourceBundleName, setRightToLeftComponentOrientation, setSize, setSize, setStatusTipText, setStyleSheet, setStyleSheet, setToolTipText, setUpdatesEnabled, setVisible, setWhatsThisText, toString, unsetComponentOrientation, update, update, update, updateComponentOrientation
 
Methods inherited from class yu.ac.bg.etf.javaqx.core.AbstractDisposable
addDisposeListener, dispose, disposedCheck, disposedErrorString, finalize, isDisposed, removeDisposeListener
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getExistingDirectoryName

public static java.lang.String getExistingDirectoryName(JQComponent parent)
Returns directory selected by the user.

Parameters:
parent - the parent component
Returns:
directory selected by the user

getExistingDirectoryName

public static java.lang.String getExistingDirectoryName(JQComponent parent,
                                                        java.lang.String caption,
                                                        java.lang.String directory)
Returns directory selected by the user.

Parameters:
parent - the parent component
caption - the dialog caption
directory - the directory
Returns:
directory selected by the user

getExistingDirectory

public static java.io.File getExistingDirectory(JQComponent parent)
Returns directory selected by the user.

Parameters:
parent - the parent component
Returns:
directory selected by the user

getExistingDirectory

public static java.io.File getExistingDirectory(JQComponent parent,
                                                java.lang.String caption,
                                                java.lang.String directory)
Returns directory selected by the user.

Parameters:
parent - the parent component
caption - the dialog caption
directory - the directory
Returns:
directory selected by the user

getOpenFileName

public static java.lang.String getOpenFileName(JQComponent parent)
Returns file selected by the user.

Parameters:
parent - the parent component
Returns:
file selected by the user

getOpenFileName

public static java.lang.String getOpenFileName(JQComponent parent,
                                               java.lang.String caption,
                                               java.lang.String directory,
                                               java.lang.String filter,
                                               java.lang.String selectedFilter)
Returns file selected by the user.

Parameters:
parent - the parent component
caption - the dialog caption
directory - the directory
filter - the file directory
selectedFilter - the selected filter
Returns:
file selected by the user

getOpenFile

public static java.io.File getOpenFile(JQComponent parent)
Returns file selected by the user.

Parameters:
parent - the parent component
Returns:
file selected by the user

getOpenFile

public static java.io.File getOpenFile(JQComponent parent,
                                       java.lang.String caption,
                                       java.lang.String directory,
                                       java.lang.String filter,
                                       java.lang.String selectedFilter)
Returns file selected by the user.

Parameters:
parent - the parent component
caption - the dialog caption
directory - the directory
filter - the file directory
selectedFilter - the selected filter
Returns:
file selected by the user

getSaveFileName

public static java.lang.String getSaveFileName(JQComponent parent)
Returns file selected by the user.

Parameters:
parent - the parent component
Returns:
file selected by the user

getSaveFileName

public static java.lang.String getSaveFileName(JQComponent parent,
                                               java.lang.String caption,
                                               java.lang.String directory,
                                               java.lang.String filter,
                                               java.lang.String selectedFilter)
Returns file selected by the user.

Parameters:
parent - the parent component
caption - the dialog caption
directory - the directory
filter - the file directory
selectedFilter - the selected filter
Returns:
file selected by the user

getSaveFile

public static java.io.File getSaveFile(JQComponent parent)
Returns file selected by the user.

Parameters:
parent - the parent component
Returns:
file selected by the user

getSaveFile

public static java.io.File getSaveFile(JQComponent parent,
                                       java.lang.String caption,
                                       java.lang.String directory,
                                       java.lang.String filter,
                                       java.lang.String selectedFilter)
Returns file selected by the user.

Parameters:
parent - the parent component
caption - the dialog caption
directory - the directory
filter - the file directory
selectedFilter - the selected filter
Returns:
file selected by the user


Copyright © 2007 ETF and contributors. All Rights Reserved.