Package | Class | Tree | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.gui
Class JDirectoryDialog

    java.lang.Object
      |
      +--org.gui.JDirectoryDialog

public class JDirectoryDialog
extends java.lang.Object

Version:
  1.0
Author:
  Arpit Agarwal. Object of this class may be used to create JDirectoryDialog instance for your applications.

Constructor Summary
`JDirectoryDialog(javax.swing.JFrame parent)` JDirectoryDialog constructor accepts parent JFrame as argument.

Method Summary
`java.io.File` | `getSelectedFolder()` Method may be used to derive the selected Folder.
`void` | `setApproveButtonMnemonic(char c)` This method is used to set the mnemonic key of approve button.
`void` | `setApproveButtonText(java.lang.String text)` This method is used to set the text of approve button.
`void` | `setCancelButtonMnemonic(char c)` This method is used to set the mnemonic key of cancel button.
`void` | `setCancelButtonText(java.lang.String text)` This method is used to set the text of cancel button.
`void` | `setMessage(java.lang.String message)` This method is used to set the message in JDirectoryDialog.
`void` | `setTitle(java.lang.String title)` This method is used to set the title of current JDirectoryDialog.
`boolean` | `showDirectoryDialog()` Method is called to make directory dialog visible.
`void` | `showHiddenFolders(boolean showHidden)` This method is used to set the visibility of hidden folders.

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### JDirectoryDialog

    public JDirectoryDialog(javax.swing.JFrame parent)

  JDirectoryDialog constructor accepts parent JFrame as argument. In case there is no parent then you may easily pass null value.

Parameters:
  `parent` - - JFrame or null.

Method Detail

### getSelectedFolder

    public java.io.File getSelectedFolder()

  Method may be used to derive the selected Folder.

  Returns:
    File Object representing the selected Folder.

### setApproveButtonMnemonic

    public void setApproveButtonMnemonic(char c)

  This method is used to set the mnemonic key of approve button. Default being 'S'

  Parameters:
    `c` - new mnemonic character.

### setApproveButtonText

    public void setApproveButtonText(java.lang.String text)

  This method is used to set the text of approve button. Default being Select.

  Parameters:
    `text` - String Object containing button text

### setCancelButtonMnemonic

    public void setCancelButtonMnemonic(char c)

  This method is used to set the mnemonic key of cancel button. Default being 'C'

  Parameters:
    `c` - new mnemonic character.

### setCancelButtonText

    public void setCancelButtonText(java.lang.String text)

  This method is used to set the text of cancel button. Default being Cancel.

  Parameters:
    `text` - String Object containing button text

### setMessage

    public void setMessage(java.lang.String message)

  This method is used to set the message in JDirectoryDialog.

  Parameters:
    `message` - String Object containg message.

### setTitle

    public void setTitle(java.lang.String title)

  This method is used to set the title of current JDirectoryDialog.

  Parameters:
    `title` - The title of the dialog.

### showDirectoryDialog

    public boolean showDirectoryDialog()

  Method is called to make directory dialog visible.

  Returns:
    boolean true in case a file is selected or false otherwise.

### showHiddenFolders

    public void showHiddenFolders(boolean showHidden)

  This method is used to set the visibility of hidden folders. Default being false.

  Parameters:
    `showHidden` - true if you want to show hidden folders.

Package | Class | Tree | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD