|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.swt.widgets.Dialog
com.tensegrity.gui.swt.dialog.SwtBaseDialog
com.tensegrity.gui.swt.dialog.graphfilechooser.SwtGraphFileChooserDialog
This class should be used within the Tensegrity Framework in the SWT context
instead of the swt class. It supports
several file format in saving mode (.xml, .svg, .jpg, .bmp, ..).
FileDialog
| Field Summary | |
static java.lang.String |
bitmapFilterExtensions
Predefined string of valid extensions. |
static java.lang.String |
bitmapFilterName
Predefined string of valid name. |
static java.lang.String |
gifFilterExtensions
Predefined string of valid extensions. |
static java.lang.String |
gifFilterName
Predefined string of valid name. |
static java.lang.String |
graphFilterExtensions
Predefined string of valid extensions. |
static java.lang.String |
graphFilterName
Predefined string of valid name. |
static java.lang.String |
jpegFilterExtensions
Predefined string of valid extensions. |
static java.lang.String |
jpegFilterName
Predefined string of valid name. |
static java.lang.String |
pngFilterExtensions
Predefined string of valid extensions. |
static java.lang.String |
pngFilterName
Predefined string of valid name. |
static java.lang.String |
svgFilterExtensions
Predefined string of valid extensions. |
static java.lang.String |
svgFilterName
Predefined string of valid name. |
| Fields inherited from class com.tensegrity.gui.swt.dialog.SwtBaseDialog |
resourceClass, resourcePath |
| Fields inherited from interface com.tensegrity.gui.swing.dialog.graphfilechooser.GraphFileConstants |
TYPE_ALL_FILES, TYPE_CUSTOM, TYPE_ELEMENTS, TYPE_GRAPHFILE, TYPE_LAYOUTS, TYPE_RASTER, TYPE_RASTER_BITMAP, TYPE_RASTER_GIF, TYPE_RASTER_JPEG, TYPE_RASTER_PNG, TYPE_SVG, TYPE_TEMPLATES |
| Constructor Summary | |
SwtGraphFileChooserDialog(org.eclipse.swt.widgets.Shell parent,
int style,
GraphFileChooser fileChooser,
UIManager uiManager,
int fileType)
|
|
SwtGraphFileChooserDialog(org.eclipse.swt.widgets.Shell parent,
int style,
UIManager uimanager,
int fileType)
Initializes the internal with the
filters represented by fileType.
|
|
| Method Summary | |
java.lang.String |
getCurrentDirectory()
Returns the current directory. |
ExportSettings |
getExportSettings()
Returns the ExportSettingsfor this
GraphFileChooserDialog. |
java.lang.String |
getFileName()
Returns the path of the first file that was selected in the dialog relative to the filter path |
java.lang.String[] |
getFileNames()
Returns the paths of all files that were selected in the dialog relative to the filter path, or null if none are available. |
int |
getFileType()
Returns the file type of the selected file |
java.lang.String[] |
getFilterExtensions()
Returns the file extensions which the dialog will use to filter the files it shows. |
java.lang.String[] |
getFilterNames()
Returns the file names which the dialog will use to filter the files it shows. |
java.lang.String |
getFilterPath()
Returns the directory path that the dialog will use. |
boolean |
isCancelled()
Returns true if the user cancelled the dialog |
void |
setCurrentDirectory(java.lang.String directory)
Sets the current directory. |
void |
show()
Opens the internal .
|
| Methods inherited from class com.tensegrity.gui.swt.dialog.SwtBaseDialog |
applyEvList, dispose, getDialog, getTextCompositeLayoutData, getUIManager, installEvList, keyPressed, keyReleased, setDefaultResourceClassAndURL, setDescriptionText, setResourceClassAndURL, setTitleText |
| Methods inherited from class org.eclipse.swt.widgets.Dialog |
checkSubclass, getParent, getStyle, getText, setText |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static java.lang.String graphFilterExtensions
public static java.lang.String graphFilterName
public static java.lang.String svgFilterExtensions
public static java.lang.String svgFilterName
public static java.lang.String bitmapFilterExtensions
public static java.lang.String bitmapFilterName
public static java.lang.String gifFilterExtensions
public static java.lang.String gifFilterName
public static java.lang.String jpegFilterExtensions
public static java.lang.String jpegFilterName
public static java.lang.String pngFilterExtensions
public static java.lang.String pngFilterName
| Constructor Detail |
public SwtGraphFileChooserDialog(org.eclipse.swt.widgets.Shell parent,
int style,
UIManager uimanager,
int fileType)
Initializes the internal with the
filters represented by FileDialogfileType.
parent - a shell which will be the parent of the new instance.style - the SWT style. SWT.SAVE
or SWT.OPEN. Use SWT.MULTI
in order to allow multiple selection.uimanager - the UIManager used for the localized Strings.fileType - the file-type used for filtering the dialog.
public SwtGraphFileChooserDialog(org.eclipse.swt.widgets.Shell parent,
int style,
GraphFileChooser fileChooser,
UIManager uiManager,
int fileType)
| Method Detail |
public void show()
Opens the internal .
FileDialog
show in class SwtBaseDialogpublic void setCurrentDirectory(java.lang.String directory)
directory - the directory to set.public java.lang.String getCurrentDirectory()
public java.lang.String getFileName()
public java.lang.String[] getFileNames()
public java.lang.String[] getFilterExtensions()
public java.lang.String[] getFilterNames()
public java.lang.String getFilterPath()
FileDialog.setFilterExtensions(java.lang.String[])public boolean isCancelled()
public ExportSettings getExportSettings()
ExportSettingsfor this
GraphFileChooserDialog.
ExportSettingsfor this
GraphFileChooserDialog.public int getFileType()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||