|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jaxodraw.gui.panel.JaxoChooseFile
public class JaxoChooseFile
Opens a file chooser dialog that is used for opening, saving and exporting files.
Constructor Summary | |
---|---|
JaxoChooseFile(Component parentc)
Constructor. |
|
JaxoChooseFile(Component parentc,
String text)
Constructor. |
Method Summary | |
---|---|
String |
chooseFile(String[] allowedExtensions,
String description,
String selectedFile)
Brings up a file chooser dialog. |
String |
getApproveText()
Text for the JFileChooser approve button. |
Component |
getComponentParent()
Parent component for the dialog. |
String |
getDialogTitle()
Title to be used for dialogs. |
void |
setApproveText(String value)
The text for the approve button. |
void |
setComponentParent(Component value)
Sets the parent component. |
void |
setDialogTitle(String value)
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 JaxoChooseFile(Component parentc)
parentc
- The parent component.public JaxoChooseFile(Component parentc, String text)
parentc
- The parent component.text
- The text to use as a dialog title.Method Detail |
---|
public final Component getComponentParent()
public void setComponentParent(Component value)
value
- The parent component.public final String getApproveText()
public void setApproveText(String value)
value
- The approve button text.public final String getDialogTitle()
public void setDialogTitle(String value)
value
- The dialog title.public final String chooseFile(String[] allowedExtensions, String description, 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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |