com.bigzip.plugin.support.ui
Class FileQueue

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Window
                    |
                    +--java.awt.Dialog
                          |
                          +--javax.swing.JDialog
                                |
                                +--com.bigzip.plugin.support.ui.FileQueue
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, javax.swing.RootPaneContainer, java.io.Serializable, javax.swing.WindowConstants

public class FileQueue
extends javax.swing.JDialog

The FileQueue allows a user to select a multitude of files. The user can chooser files from different directories and/or file systems, and can remove files from the queue before it is dismissed.

An accessory component can be added to the dialog box to allow the user to chooser task-spacific options. Each file added to the queue has its own set of accessory options so different files in the queue can have different settings selected for it.

The file queue used in a number of ways:

See Also:
Serialized Form

Inner classes inherited from class javax.swing.JDialog
javax.swing.JDialog.AccessibleJDialog
 
Inner classes inherited from class java.awt.Dialog
java.awt.Dialog.AccessibleAWTDialog
 
Inner classes inherited from class java.awt.Window
java.awt.Window.AccessibleAWTWindow
 
Inner classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Inner classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent
 
Field Summary
protected  FileQueueAccessory accessory
          This is the accessory component to be displayed in the queue.
protected  javax.swing.JButton addAllButton
          This is the button to add all the files in a directory to the queue.
protected  javax.swing.JButton addButton
          This is the button to add a selected file to the queue.
static int APPROVE_OPTION
          Return value if approve (yes, ok) is chosen.
protected  javax.swing.JButton approveButton
          This is the approve button.
protected  int approved
          The approval status of the queue.
static int CANCEL_OPTION
          Return value if cancel is chosen.
protected  javax.swing.JButton cancelButton
          This is the cancel button.
protected  java.lang.Object[][] chooserFiles
           
protected  com.bigzip.plugin.support.ui.DirectoryChooserPane directoryChooserPane
          This is the directory chooser pane.
static int ERROR_OPTION
          Return value if an error occured.
protected  com.bigzip.plugin.support.ui.BiGZiPTable fileChooserTable
          This is the table which lists the files in directory so that a user can add one/them to the queue.
protected  javax.swing.JButton goHomeButton
          This is the button to open the user's home directory in the directory chooser pane.
protected  java.awt.Frame parent
          This is the parent of the chooser.
protected  java.util.Vector queueFiles
          This is the list of FileQueueEntry objects that each hold a file and its accessory options for the files added to the queue.
protected  com.bigzip.plugin.support.ui.BiGZiPTable queueTable
          This is the table which displays the FileQueueEntry objects in the queueFiles vector.
protected  javax.swing.JButton removeAllButton
          This button removes all the queued files from the queue.
protected  javax.swing.JButton removeButton
          This buttom removes the file selected in the queue table.
protected  com.bigzip.plugin.support.ui.FileQueue.TypeRenderer typeRenderer
          This is a column renderer which used in the tables to render an icon to represent the types of the files in the table.
 
Fields inherited from class javax.swing.JDialog
accessibleContext, rootPane, rootPaneCheckingEnabled
 
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, HIDE_ON_CLOSE
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
FileQueue()
          Creates a new file queue with user's working directory open by default.
FileQueue(java.io.File initialPath)
          Creates a new file queue with directory refered to by the given path open by default.
FileQueue(java.awt.Frame parent, java.io.File initialPath)
          Creates a new file queue with directory refered to by the given path open by default.
FileQueue(java.awt.Frame parent, java.lang.String initialPath)
          Creates a new file queue with directory refered to by the given path open by default.
FileQueue(java.lang.String initialPath)
          Creates a new file queue with directory refered to by the given path open by default.
 
Method Summary
protected  javax.swing.JButton createDefaultAddAllButton()
          Creates a button with the label "Add All", mnemonic 'd', and which calls calls the doAddAllAction method when clicked.
protected  javax.swing.JButton createDefaultAddButton()
          Creates a button with the label "Add", mnemonic 'a', and which calls calls the doAddAction method when clicked.
protected  javax.swing.JButton createDefaultApproveButton()
          Creates a button with the label "Ok", mnemonic 'o', and which calls the doApproveAction method when clicked.
protected  javax.swing.JButton createDefaultCancelButton()
          Creates a button with the label "Cancel", mnemonic 'c', and which calls the doCancelAction method when clicked.
protected  javax.swing.JButton createDefaultGoHomeButton()
          Creates a button with the default 'go home' icon for the current look'n'feel, mnemonic 'c', and which calls the doGoHomeAction method when clicked.
protected  javax.swing.JButton createDefaultRemoveAllButton()
          Creates a button with the label "Remove All", mnemonic 'e', and which calls the doRemoveAllAction method when clicked.
protected  javax.swing.JButton createDefaultRemoveButton()
          Creates a button with the label "Remove", mnemonic 'r', and which calls the doRemoveAction method when clicked.
protected  javax.swing.table.TableColumn createDirectoryColumn()
          Creates a table column that is setup to display the directory path of file in the queue table.
protected  javax.swing.table.TableColumn createFilenameColumn()
          Creates a table column that is setup to display the filename of the files in a table.
protected  javax.swing.table.TableColumn createOptionsColumn()
          Creates a table column that is setup to display the options associated with a file in the queue table.
protected  javax.swing.table.TableColumn createTypeColumn()
          Creates a table column that is setup to display the type icon for a file.
protected  void doAddAction()
          Performs the standard response to the add button being clicked.
protected  void doAddAllAction()
          Performs the standard response to the add all button being clicked.
protected  void doApproveAction()
          Performs the standard response to the approve button being clicked.
protected  void doCancelAction()
          Performs the standard response to the cancel button being clicked.
protected  void doGoHomeAction()
          Performs the standard response to the go home button being clicked.
protected  void doRemoveAction()
          Performs the standard response to the remove all button being clicked.
protected  void doRemoveAllAction()
          Performs the standard response to the remove button being clicked.
 FileQueueAccessory getAccessory()
          Retrieves the accessory component displayed in the file queue.
 int getApproveButtonMnemonic()
          Retrieves the the approve button's mnemonic.
 java.lang.String getApproveButtonText()
          Retrieves the text that appears in the approve button.
 java.lang.String getApproveButtonToolTipText()
          Retrieves the approve button's tooltip text.
 java.io.File getCurrentDirectory()
          Retrieves the currently open directory.
 FileQueueEntry[] getSelectedEntries()
          Retrieves the files selected in the queue table.
 boolean isApproved()
          Tests if the directory chooser was approved.
 void setAccessory(FileQueueAccessory accessory)
          Sets the accessory to display in the directory chooser.
 void setApproveButtonMnemonic(char mnemonic)
          Sets the approve button's mnemonic.
 void setApproveButtonText(java.lang.String label)
          Sets the text that appears in the approve button.
 void setApproveButtonToolTipText(java.lang.String text)
          Sets the approve button's tooltip text.
 void setCurrentDirectory(java.io.File path)
          Sets the currently open directory.
 int showDialog()
          Shows the file queue to the user.
static FileQueueEntry[] showFileQueue(java.awt.Frame parent)
          Shows the standard file queue with the user's home directory initially opened.
static FileQueueEntry[] showFileQueue(java.awt.Frame parent, java.io.File initialPath)
          Shows the standard file queue.
static FileQueueEntry[] showFileQueue(java.awt.Frame parent, java.io.File initialPath, FileQueueAccessory accessory)
          Shows the standard file queue with a custom accessory.
static FileQueueEntry[] showFileQueue(java.awt.Frame parent, java.io.File initialPath, java.lang.String title)
          Shows the standard file queue with a custom dialog box title.
static FileQueueEntry[] showFileQueue(java.awt.Frame parent, java.io.File initialPath, java.lang.String title, FileQueueAccessory accessory)
          Shows the standard file queue with a custom dialog box title and accessory.
static FileQueueEntry[] showFileQueue(java.awt.Frame parent, java.io.File initialPath, java.lang.String dialogTitle, FileQueueAccessory accessory, java.lang.String approveButtonText, char approveButtonMnemonic, java.lang.String approveButtonToolTipText)
          Shows the standard file queue with a custom dialog box title, accessory and approve button.
static FileQueueEntry[] showFileQueue(java.awt.Frame parent, java.lang.String initialPath)
          Shows the standard file queue.
static FileQueueEntry[] showFileQueue(java.awt.Frame parent, java.lang.String initialPath, FileQueueAccessory accessory)
          Shows the standard file queue with a custom accessory.
static FileQueueEntry[] showFileQueue(java.awt.Frame parent, java.lang.String initialPath, java.lang.String title)
          Shows the standard file queue with a custom dialog box title.
static FileQueueEntry[] showFileQueue(java.awt.Frame parent, java.lang.String initialPath, java.lang.String title, FileQueueAccessory accessory)
          Shows the standard file queue with a custom dialog box title and accessory.
 
Methods inherited from class javax.swing.JDialog
addImpl, createRootPane, dialogInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isRootPaneCheckingEnabled, paramString, processKeyEvent, processWindowEvent, remove, setContentPane, setDefaultCloseOperation, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setLocationRelativeTo, setRootPane, setRootPaneCheckingEnabled, update
 
Methods inherited from class java.awt.Dialog
addNotify, dispose, getTitle, hide, isModal, isResizable, setModal, setResizable, setTitle, show
 
Methods inherited from class java.awt.Window
addWindowListener, applyResourceBundle, applyResourceBundle, finalize, getFocusOwner, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getOwnedWindows, getOwner, getToolkit, getWarningString, isShowing, pack, postEvent, processEvent, removeWindowListener, setCursor, toBack, toFront
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, removeNotify, setFont, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputMethodRequests, getLocation, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseMotionEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, size, toString, transferFocus
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

APPROVE_OPTION

public static final int APPROVE_OPTION
Return value if approve (yes, ok) is chosen.

CANCEL_OPTION

public static final int CANCEL_OPTION
Return value if cancel is chosen.

ERROR_OPTION

public static final int ERROR_OPTION
Return value if an error occured.

accessory

protected FileQueueAccessory accessory
This is the accessory component to be displayed in the queue.

addAllButton

protected javax.swing.JButton addAllButton
This is the button to add all the files in a directory to the queue. It can be customized by over-riding the createDefaultAddAllButton method.

addButton

protected javax.swing.JButton addButton
This is the button to add a selected file to the queue. It can be customized by over-riding the createDefaultAddButton method.

approved

protected int approved
The approval status of the queue. If the user uses the approve button to dismiss the dialog, this value should be set to APPROVE_OPTION. If the user dismisses the dialog in any other way, this value should be set to CANCEL_OPTION. If an error occurs while initializing the chooser, this value should be set to ERROR_OPTION.

approveButton

protected javax.swing.JButton approveButton
This is the approve button. It can be customized by over-riding the createDefaultApproveButton method.

cancelButton

protected javax.swing.JButton cancelButton
This is the cancel button. It can be customized by over-riding the createDefaultCancelButton method.

chooserFiles

protected java.lang.Object[][] chooserFiles

directoryChooserPane

protected com.bigzip.plugin.support.ui.DirectoryChooserPane directoryChooserPane
This is the directory chooser pane. The directory chooser pane displays the available file systems, and the directory tree for the selected file system.

fileChooserTable

protected com.bigzip.plugin.support.ui.BiGZiPTable fileChooserTable
This is the table which lists the files in directory so that a user can add one/them to the queue.

goHomeButton

protected javax.swing.JButton goHomeButton
This is the button to open the user's home directory in the directory chooser pane. It can be customized by over-riding the createDefaultGoHomeButton method.

parent

protected java.awt.Frame parent
This is the parent of the chooser. It can be null.

queueFiles

protected java.util.Vector queueFiles
This is the list of FileQueueEntry objects that each hold a file and its accessory options for the files added to the queue.

queueTable

protected com.bigzip.plugin.support.ui.BiGZiPTable queueTable
This is the table which displays the FileQueueEntry objects in the queueFiles vector.

removeAllButton

protected javax.swing.JButton removeAllButton
This button removes all the queued files from the queue. It can be customized by over-riding the createDefaultRemoveAllButton method.

removeButton

protected javax.swing.JButton removeButton
This buttom removes the file selected in the queue table. It can be customized by over-riding the createDefaultRemoveButton method.

typeRenderer

protected com.bigzip.plugin.support.ui.FileQueue.TypeRenderer typeRenderer
This is a column renderer which used in the tables to render an icon to represent the types of the files in the table.
Constructor Detail

FileQueue

public FileQueue()
Creates a new file queue with user's working directory open by default.

FileQueue

public FileQueue(java.lang.String initialPath)
Creates a new file queue with directory refered to by the given path open by default.

FileQueue

public FileQueue(java.awt.Frame parent,
                 java.lang.String initialPath)
Creates a new file queue with directory refered to by the given path open by default. The chooser will be set as a child dialog of the specified parent.

FileQueue

public FileQueue(java.io.File initialPath)
Creates a new file queue with directory refered to by the given path open by default.

FileQueue

public FileQueue(java.awt.Frame parent,
                 java.io.File initialPath)
Creates a new file queue with directory refered to by the given path open by default. The chooser will be set as a child dialog of the specified parent.
Method Detail

createDefaultAddAllButton

protected javax.swing.JButton createDefaultAddAllButton()
Creates a button with the label "Add All", mnemonic 'd', and which calls calls the doAddAllAction method when clicked.

createDefaultAddButton

protected javax.swing.JButton createDefaultAddButton()
Creates a button with the label "Add", mnemonic 'a', and which calls calls the doAddAction method when clicked.

createDefaultApproveButton

protected javax.swing.JButton createDefaultApproveButton()
Creates a button with the label "Ok", mnemonic 'o', and which calls the doApproveAction method when clicked.

createDefaultCancelButton

protected javax.swing.JButton createDefaultCancelButton()
Creates a button with the label "Cancel", mnemonic 'c', and which calls the doCancelAction method when clicked.

createDefaultGoHomeButton

protected javax.swing.JButton createDefaultGoHomeButton()
Creates a button with the default 'go home' icon for the current look'n'feel, mnemonic 'c', and which calls the doGoHomeAction method when clicked.

createDefaultRemoveAllButton

protected javax.swing.JButton createDefaultRemoveAllButton()
Creates a button with the label "Remove All", mnemonic 'e', and which calls the doRemoveAllAction method when clicked.

createDefaultRemoveButton

protected javax.swing.JButton createDefaultRemoveButton()
Creates a button with the label "Remove", mnemonic 'r', and which calls the doRemoveAction method when clicked.

createFilenameColumn

protected javax.swing.table.TableColumn createFilenameColumn()
Creates a table column that is setup to display the filename of the files in a table.

createOptionsColumn

protected javax.swing.table.TableColumn createOptionsColumn()
Creates a table column that is setup to display the options associated with a file in the queue table.

createDirectoryColumn

protected javax.swing.table.TableColumn createDirectoryColumn()
Creates a table column that is setup to display the directory path of file in the queue table.

createTypeColumn

protected javax.swing.table.TableColumn createTypeColumn()
Creates a table column that is setup to display the type icon for a file.

doAddAction

protected void doAddAction()
Performs the standard response to the add button being clicked. The filename and directory of each of the files selected in the file chooser table is added to the queue. For each of the files added, the current state of the accessory, if one has been added, is stored with it.

doAddAllAction

protected void doAddAllAction()
Performs the standard response to the add all button being clicked. The filename and directory of all of the files in the file chooser table is added to the queue. For each of the files added, the current state of the accessory, if one has been added, is stored with it.

doApproveAction

protected void doApproveAction()
Performs the standard response to the approve button being clicked. The approved instance variable is set to APPROVE_OPTION and the chooser is disposed of.

doCancelAction

protected void doCancelAction()
Performs the standard response to the cancel button being clicked. The approved instance variable is set to CANCEL_OPTION and the chooser is disposed of.

doGoHomeAction

protected void doGoHomeAction()
Performs the standard response to the go home button being clicked. The user's home directory is opened in the directory choosre pane and the file chooser table is updated to list the files in the home directory.

doRemoveAction

protected void doRemoveAction()
Performs the standard response to the remove all button being clicked. The selected files in the queue table are removed and the selection is cleared.

doRemoveAllAction

protected void doRemoveAllAction()
Performs the standard response to the remove button being clicked. Clears any selection in the queue table and then clears the table itself.

getAccessory

public FileQueueAccessory getAccessory()
Retrieves the accessory component displayed in the file queue.

getApproveButtonText

public java.lang.String getApproveButtonText()
Retrieves the text that appears in the approve button.

getApproveButtonMnemonic

public int getApproveButtonMnemonic()
Retrieves the the approve button's mnemonic.

getApproveButtonToolTipText

public java.lang.String getApproveButtonToolTipText()
Retrieves the approve button's tooltip text.

getSelectedEntries

public FileQueueEntry[] getSelectedEntries()
Retrieves the files selected in the queue table. An empty array will be returned if no files are selected.

getCurrentDirectory

public java.io.File getCurrentDirectory()
Retrieves the currently open directory.

isApproved

public boolean isApproved()
Tests if the directory chooser was approved.
Returns:
true if the user used the approve button to dismiss the chooser, false otherwise.

setAccessory

public void setAccessory(FileQueueAccessory accessory)
Sets the accessory to display in the directory chooser.

setApproveButtonText

public void setApproveButtonText(java.lang.String label)
Sets the text that appears in the approve button.

setApproveButtonMnemonic

public void setApproveButtonMnemonic(char mnemonic)
Sets the approve button's mnemonic.

setApproveButtonToolTipText

public void setApproveButtonToolTipText(java.lang.String text)
Sets the approve button's tooltip text.

setCurrentDirectory

public void setCurrentDirectory(java.io.File path)
Sets the currently open directory.
Throws:
java.lang.IllegalArgumentException - The path given doesn't not refer to a directory.

showDialog

public int showDialog()
Shows the file queue to the user. The standard queue is constructed, it is then packed and positioned relative to its parent and finally shown.
Returns:
APPROVE_OPTION if the approve button clicked, CANCEL_OPTION if the queue was cancelled in some way, or ERROR_OPTION if an error occurred while initialising the queue.

showFileQueue

public static FileQueueEntry[] showFileQueue(java.awt.Frame parent)
Shows the standard file queue with the user's home directory initially opened.
Parameters:
parent - The parent frame of the queue.
Returns:
A list of FileQueueEntry objects to represent the files added to the queue and the options associated with them.

showFileQueue

public static FileQueueEntry[] showFileQueue(java.awt.Frame parent,
                                             java.lang.String initialPath)
Shows the standard file queue.
Parameters:
parent - The parent frame of the queue.
initalPath - The directory initially opened.
Returns:
A list of FileQueueEntry objects to represent the files added to the queue and the options associated with them.

showFileQueue

public static FileQueueEntry[] showFileQueue(java.awt.Frame parent,
                                             java.lang.String initialPath,
                                             java.lang.String title)
Shows the standard file queue with a custom dialog box title.
Parameters:
parent - The parent frame of the queue.
initalPath - The directory initially opened.
dialogTitle - The string to appear as the directory chooser's title.
Returns:
A list of FileQueueEntry objects to represent the files added to the queue and the options associated with them.

showFileQueue

public static FileQueueEntry[] showFileQueue(java.awt.Frame parent,
                                             java.lang.String initialPath,
                                             FileQueueAccessory accessory)
Shows the standard file queue with a custom accessory.
Parameters:
parent - The parent frame of the queue.
initalPath - The directory initially opened.
accessory - The accessory component to be displayed in the queue.
Returns:
A list of FileQueueEntry objects to represent the files added to the queue and the options associated with them.

showFileQueue

public static FileQueueEntry[] showFileQueue(java.awt.Frame parent,
                                             java.lang.String initialPath,
                                             java.lang.String title,
                                             FileQueueAccessory accessory)
Shows the standard file queue with a custom dialog box title and accessory.
Parameters:
parent - The parent frame of the queue.
initalPath - The directory initially opened.
dialogTitle - The string to appear as the directory chooser's title.
accessory - The accessory component to be displayed in the queue.
Returns:
A list of FileQueueEntry objects to represent the files added to the queue and the options associated with them.

showFileQueue

public static FileQueueEntry[] showFileQueue(java.awt.Frame parent,
                                             java.io.File initialPath)
Shows the standard file queue.
Parameters:
parent - The parent frame of the queue.
initalPath - The directory initially opened.
Returns:
A list of FileQueueEntry objects to represent the files added to the queue and the options associated with them.

showFileQueue

public static FileQueueEntry[] showFileQueue(java.awt.Frame parent,
                                             java.io.File initialPath,
                                             java.lang.String title)
Shows the standard file queue with a custom dialog box title.
Parameters:
parent - The parent frame of the queue.
initalPath - The directory initially opened.
dialogTitle - The string to appear as the directory chooser's title.
Returns:
A list of FileQueueEntry objects to represent the files added to the queue and the options associated with them.

showFileQueue

public static FileQueueEntry[] showFileQueue(java.awt.Frame parent,
                                             java.io.File initialPath,
                                             FileQueueAccessory accessory)
Shows the standard file queue with a custom accessory.
Parameters:
parent - The parent frame of the queue.
initalPath - The directory initially opened.
accessory - The accessory component to be displayed in the queue.
Returns:
A list of FileQueueEntry objects to represent the files added to the queue and the options associated with them.

showFileQueue

public static FileQueueEntry[] showFileQueue(java.awt.Frame parent,
                                             java.io.File initialPath,
                                             java.lang.String title,
                                             FileQueueAccessory accessory)
Shows the standard file queue with a custom dialog box title and accessory.
Parameters:
parent - The parent frame of the queue.
initalPath - The directory initially opened.
dialogTitle - The string to appear as the directory chooser's title.
accessory - The accessory component to be displayed in the queue.
Returns:
A list of FileQueueEntry objects to represent the files added to the queue and the options associated with them.

showFileQueue

public static FileQueueEntry[] showFileQueue(java.awt.Frame parent,
                                             java.io.File initialPath,
                                             java.lang.String dialogTitle,
                                             FileQueueAccessory accessory,
                                             java.lang.String approveButtonText,
                                             char approveButtonMnemonic,
                                             java.lang.String approveButtonToolTipText)
Shows the standard file queue with a custom dialog box title, accessory and approve button.
Parameters:
parent - The parent frame of the queue.
initalPath - The directory initially opened.
dialogTitle - The string to appear as the directory chooser's title.
accessory - The accessory component to be displayed in the queue.
approveButtonText - The text to appear in the approve button.
approveButtonMnemonic - The approve button's mnemonic.
approveBuutonToolTipText - The approve button's tooltip text.
Returns:
A list of FileQueueEntry objects to represent the files added to the queue and the options associated with them.