|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.gui.swt.dialog.graphfilechooser.DefaultGraphFileChooser
Default implementation of a GraphFileChooser which internally uses a
FileDialog
| Constructor Summary | |
DefaultGraphFileChooser(org.eclipse.swt.widgets.Shell parent)
|
|
DefaultGraphFileChooser(org.eclipse.swt.widgets.Shell parent,
int style)
|
|
| Method Summary | |
java.lang.String |
getFileName()
Returns the path of the first file that was selected in the dialog relative to the filter path, or an empty string if no such file has been selected. |
java.lang.String[] |
getFileNames()
Returns a (possibly empty) array with the paths of all files that were selected in the dialog relative to the filter path. |
java.lang.String[] |
getFilterExtensions()
Returns the file extensions which the dialog will use to filter the files it shows. |
java.lang.String[] |
getFilterNames()
Returns a (possibly empty) array with the paths of all files that were selected in the dialog relative to the filter path. |
java.lang.String |
getFilterPath()
Returns the directory path that the dialog will use, or an empty string if this is not set. |
int |
getStyle()
Returns the currently setted style bits, which must not match style bits setted at construction time |
java.lang.String |
open()
Makes the dialog visible and brings it to the front of the display. |
void |
setFilterExtensions(java.lang.String[] extensions)
Set the file extensions which the dialog will use to filter the files it shows to the argument, which may be null. |
void |
setFilterNames(java.lang.String[] names)
Sets the the names that describe the filter extensions which the dialog will use to filter the files it shows to the argument, which may be null. |
void |
setFilterPath(java.lang.String directory)
Sets the directory path that the dialog will use to the argument, which may be null. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DefaultGraphFileChooser(org.eclipse.swt.widgets.Shell parent)
public DefaultGraphFileChooser(org.eclipse.swt.widgets.Shell parent,
int style)
| Method Detail |
public java.lang.String open()
GraphFileChooser
open in interface GraphFileChooserpublic java.lang.String getFilterPath()
GraphFileChooser
getFilterPath in interface GraphFileChooserGraphFileChooser.setFilterExtensions(java.lang.String[])public void setFilterPath(java.lang.String directory)
GraphFileChooserNote that the path string is platform dependent. For convenience, either '/' or '\' can be used as a path separator.
setFilterPath in interface GraphFileChooserGraphFileChooser.setFilterExtensions(java.lang.String[])public java.lang.String getFileName()
GraphFileChooser
getFileName in interface GraphFileChooserpublic java.lang.String[] getFileNames()
GraphFileChooser
getFileNames in interface GraphFileChooserpublic int getStyle()
GraphFileChooser
getStyle in interface GraphFileChooserpublic void setFilterExtensions(java.lang.String[] extensions)
GraphFileChooserThe strings are platform specific. For example, on Windows, an extension filter string is typically of the form "*.extension", where "*.*" matches all files.
setFilterExtensions in interface GraphFileChooserextensions - the file extension filterpublic java.lang.String[] getFilterExtensions()
GraphFileChooser
getFilterExtensions in interface GraphFileChooserpublic void setFilterNames(java.lang.String[] names)
GraphFileChooser
setFilterNames in interface GraphFileChoosernames - the list of filter namespublic java.lang.String[] getFilterNames()
GraphFileChooser
getFilterNames in interface GraphFileChooser
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||