public class JaxoChooseFile
extends java.lang.Object
Constructor and Description |
---|
JaxoChooseFile(java.awt.Component parentc)
Constructor.
|
JaxoChooseFile(java.awt.Component parentc,
java.lang.String text)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
chooseFile(java.lang.String[] allowedExtensions,
java.lang.String description,
java.lang.String selectedFile)
Brings up a file chooser dialog.
|
java.lang.String |
getApproveText()
Text for the JFileChooser approve button.
|
java.awt.Component |
getComponentParent()
Parent component for the dialog.
|
java.lang.String |
getDialogTitle()
Title to be used for dialogs.
|
void |
setApproveText(java.lang.String value)
The text for the approve button.
|
void |
setComponentParent(java.awt.Component value)
Sets the parent component.
|
void |
setDialogTitle(java.lang.String value)
Sets the dialog title.
|
public JaxoChooseFile(java.awt.Component parentc)
parentc
- The parent component.public JaxoChooseFile(java.awt.Component parentc, java.lang.String text)
parentc
- The parent component.text
- The text to use as a dialog title.public final java.awt.Component getComponentParent()
public void setComponentParent(java.awt.Component value)
value
- The parent component.public final java.lang.String getApproveText()
public void setApproveText(java.lang.String value)
value
- The approve button text.public final java.lang.String getDialogTitle()
public void setDialogTitle(java.lang.String value)
value
- The dialog title.public final java.lang.String chooseFile(java.lang.String[] allowedExtensions, java.lang.String description, java.lang.String selectedFile)
selectedFile
- A file that should be marked as pre-selected.allowedExtensions
- Files with these extensions (and directories) will
be shown. May be 'null' indication no filtering.description
- A description of this dialog.Licensed under GPL. For more information, see http://jaxodraw.sourceforge.net/license.html or the LICENSE file in the jaxodraw distribution.