Xj3D 2.0 VRML/X3D Code API

org.xj3d.ui.swt.widgets
Class ReloadAction

java.lang.Object
  extended by org.xj3d.ui.swt.widgets.ReloadAction
All Implemented Interfaces:
java.lang.Runnable, java.util.EventListener, org.eclipse.swt.events.SelectionListener, org.eclipse.swt.internal.SWTEventListener

public class ReloadAction
extends java.lang.Object
implements org.eclipse.swt.events.SelectionListener, java.lang.Runnable

A selection handler that reloads the last file.

Version:
$Revision: 1.1 $
Author:
Rex Melton

Constructor Summary
ReloadAction(FileHandler handler, org.eclipse.swt.widgets.Text source)
          Create an instance of the action class.
 
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)
          Process the selection generated from the user interface.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReloadAction

public ReloadAction(FileHandler handler,
                    org.eclipse.swt.widgets.Text source)
Create an instance of the action class.

Parameters:
handler - - A handler for opening files
source - - The text widget from which URLs will be gotten
Method Detail

widgetSelected

public void widgetSelected(org.eclipse.swt.events.SelectionEvent se)
Process the selection generated from the user interface.

Specified by:
widgetSelected in interface org.eclipse.swt.events.SelectionListener
Parameters:
se - - The event that caused this method to be called

widgetDefaultSelected

public void widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent se)
Process the default selection generated from the user interface. Ignored.

Specified by:
widgetDefaultSelected in interface org.eclipse.swt.events.SelectionListener
Parameters:
se - - The event that caused this method to be called

run

public void run()
Get the URL String and call the file handler to load

Specified by:
run in interface java.lang.Runnable

Xj3D 2.0 VRML/X3D Code API

Copyright © 2001 - 2006 Web3D Consortium