chrriis.dj.nativeswing.swtimpl.components
Class JDirectoryDialog

java.lang.Object
  extended by chrriis.dj.nativeswing.swtimpl.components.JDirectoryDialog

public class JDirectoryDialog
extends Object

A native directory selection dialog.

Author:
Christopher Deckers

Constructor Summary
JDirectoryDialog()
           
 
Method Summary
 String getMessage()
          Get the message that is shown to the user to describe the purpose of this directory selection.
 String getSelectedDirectory()
          Get the directory that was selected or that should be selected when the dialog is shown.
 String getTitle()
          Get the title of the file dialog.
 void setMessage(String message)
          Set the message that is shown to the user to describe the purpose of this directory selection.
 void setSelectedDirectory(String selectedDirectory)
          Set the directory that should be selected when the dialog is shown.
 void setTitle(String title)
          Set the title of the file dialog.
 void show(Component component)
          Show the directory selection dialog, which is a blocking call until the user has made a choice.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDirectoryDialog

public JDirectoryDialog()
Method Detail

show

public void show(Component component)
Show the directory selection dialog, which is a blocking call until the user has made a choice.

Parameters:
component - The parent component.

getSelectedDirectory

public String getSelectedDirectory()
Get the directory that was selected or that should be selected when the dialog is shown.

Returns:
the selected directory.

setSelectedDirectory

public void setSelectedDirectory(String selectedDirectory)
Set the directory that should be selected when the dialog is shown.

Parameters:
selectedDirectory - the directory that should be selected.

setTitle

public void setTitle(String title)
Set the title of the file dialog.

Parameters:
title - the title to set or null to use the default title.

getTitle

public String getTitle()
Get the title of the file dialog.

Returns:
the title or null if it is not set.

setMessage

public void setMessage(String message)
Set the message that is shown to the user to describe the purpose of this directory selection.

Parameters:
message - the message to show.

getMessage

public String getMessage()
Get the message that is shown to the user to describe the purpose of this directory selection.

Returns:
the message or null if it is not set.