|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xj3d.ui.swt.widgets.OpenAction
public class OpenAction
A Selection handler used to select a file from the local system, then pass the file's url along to a file handler for loading.
| Constructor Summary | |
|---|---|
OpenAction(org.eclipse.swt.widgets.Shell shell,
FileHandler handler,
java.lang.String contentDirectory)
Create an instance of the open selection handler. |
|
| Method Summary | |
|---|---|
void |
run()
Get the URL String and call the file handler to load |
void |
widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent se)
Process the default selection generated from the user interface. |
void |
widgetSelected(org.eclipse.swt.events.SelectionEvent se)
A selection has been performed that requires opening a file dialog to allow the user the opportunity to select the file to load. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OpenAction(org.eclipse.swt.widgets.Shell shell,
FileHandler handler,
java.lang.String contentDirectory)
shell - - The parent shellhandler - - A handler for opening filescontentDirectory - - The initial directory to load
content from. Must be a full path.| Method Detail |
|---|
public void widgetSelected(org.eclipse.swt.events.SelectionEvent se)
widgetSelected in interface org.eclipse.swt.events.SelectionListenerse - - The event that caused this method to be calledpublic void widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent se)
widgetDefaultSelected in interface org.eclipse.swt.events.SelectionListenerse - - The event that caused this method to be calledpublic void run()
run in interface java.lang.Runnable
|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||