|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jniwrapper.win32.ui.dialogs.SelectFolderDialog
public class SelectFolderDialog
SelectFolderDialog is a wrapper to the native BrowseForFolder dialog.
It allows to set an initial folder, selected folder, etc.
Nested Class Summary | |
---|---|
class |
SelectFolderDialog.SelectFolderDialogOptions
|
Constructor Summary | |
---|---|
SelectFolderDialog()
Creates a new dialog. |
|
SelectFolderDialog(java.lang.String title)
Creates a new dialog with a specified title. |
|
SelectFolderDialog(java.lang.String rootFolder,
java.lang.String title)
Creates a new dialog with a specified root folder and title. |
|
SelectFolderDialog(java.awt.Window owner)
Creates a new dialog with a specified owner window. |
|
SelectFolderDialog(java.awt.Window owner,
java.io.File rootFolder)
Creates a new dialog with a specified owner window and root folder. |
|
SelectFolderDialog(java.awt.Window owner,
java.lang.String title)
Creates a new dialog with a specified owner window and title. |
|
SelectFolderDialog(java.awt.Window owner,
java.lang.String rootFolder,
java.lang.String title)
Creates a new dialog with a specified owner window, root folder and title. |
|
SelectFolderDialog(Wnd owner)
Creates a new dialog with a specified owner window. |
|
SelectFolderDialog(Wnd owner,
java.io.File rootFolder)
Creates a new dialog with a specified owner window and root folder. |
|
SelectFolderDialog(Wnd owner,
java.io.File rootFolder,
java.lang.String title)
Creates a new dialog with a specified owner window, root folder and title. |
|
SelectFolderDialog(Wnd owner,
java.lang.String title)
Creates a new dialog with a specified owner window and title. |
Method Summary | |
---|---|
static SelectFolderDialog |
createBrowseForComputersDialog()
Factory method that creates a dialog box customized to browse computers. |
static SelectFolderDialog |
createBrowseForPrintersDialog()
Factory method that creates a dialog box customized to browse printers. |
boolean |
execute()
Opens SelectFolderDialog. |
java.lang.String |
getFolder()
|
SelectFolderDialog.SelectFolderDialogOptions |
getOptions()
|
java.awt.Window |
getOwner()
Returns owner window |
Wnd |
getOwnerWnd()
Returns owner window handle. |
ShellFolder |
getStartFolder()
Location of the root folder from which to start browsing. |
java.lang.String |
getTitle()
Returns dialog title, if any. |
protected void |
reset()
|
void |
setFolder(java.lang.String folder)
Full path to the folder selected by the user. |
void |
setOwner(java.awt.Window owner)
Sets new owner window. |
void |
setOwnerWnd(Wnd ownerWnd)
Sets new owner window handle. |
void |
setStartFolder(ShellFolder startFolder)
Location of the root folder from which to start browsing. |
void |
setTitle(java.lang.String title)
Sets the dialog title. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SelectFolderDialog()
public SelectFolderDialog(java.lang.String title)
title
- dialog's titlepublic SelectFolderDialog(java.lang.String rootFolder, java.lang.String title)
rootFolder
- folder that dialog will open;title
- dialog's titlepublic SelectFolderDialog(java.awt.Window owner)
owner
- owner window;public SelectFolderDialog(java.awt.Window owner, java.io.File rootFolder)
owner
- owner's window handle;rootFolder
- folder that dialog will open;public SelectFolderDialog(java.awt.Window owner, java.lang.String title)
owner
- owners window;title
- dialog's titlepublic SelectFolderDialog(java.awt.Window owner, java.lang.String rootFolder, java.lang.String title)
owner
- owner window;rootFolder
- folder that dialog will open;title
- dialog's titlepublic SelectFolderDialog(Wnd owner, java.io.File rootFolder, java.lang.String title)
owner
- owner's window handle;rootFolder
- folder that dialog will open;title
- dialog's titlepublic SelectFolderDialog(Wnd owner, java.io.File rootFolder)
owner
- owner's window handle;rootFolder
- folder that dialog will open;public SelectFolderDialog(Wnd owner, java.lang.String title)
owner
- owner's window handle;title
- dialog's titlepublic SelectFolderDialog(Wnd owner)
owner
- owner's window handle;Method Detail |
---|
protected void reset()
public java.lang.String getTitle()
public void setTitle(java.lang.String title)
title
- dialog titlepublic java.lang.String getFolder()
public void setFolder(java.lang.String folder)
folder
- public java.awt.Window getOwner()
public void setOwner(java.awt.Window owner)
owner
- owner windowpublic void setOwnerWnd(Wnd ownerWnd)
ownerWnd
- owner window handlepublic Wnd getOwnerWnd()
public SelectFolderDialog.SelectFolderDialogOptions getOptions()
FlagSet
contains dialog options.public ShellFolder getStartFolder()
public void setStartFolder(ShellFolder startFolder)
startFolder
- is folder idpublic boolean execute()
public static SelectFolderDialog createBrowseForComputersDialog()
public static SelectFolderDialog createBrowseForPrintersDialog()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |