Xj3D VRML/X3D Code API

org.web3d.util
Class LoadURLAction

java.lang.Object
  extended byorg.web3d.util.LoadURLAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener, java.lang.Runnable

public class LoadURLAction
extends java.lang.Object
implements java.awt.event.ActionListener, java.lang.Runnable

Simple utility class for processing scene loading requests from the location bar.

Version:
$Revision: 1.1 $
Author:
Brad Vender

Constructor Summary
LoadURLAction(FileHandler target, javax.swing.JTextField source)
          Basic constructor using a swing component.
LoadURLAction(FileHandler target, java.awt.TextField source)
          Basic constructor using an AWT component.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Starts a new loading thread.
 void run()
          Just gets the URL from the text field and calls loadURL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoadURLAction

public LoadURLAction(FileHandler target,
                     javax.swing.JTextField source)
Basic constructor using a swing component.

Parameters:
target - The panel to modify
source - The component from which URLs will be gotten

LoadURLAction

public LoadURLAction(FileHandler target,
                     java.awt.TextField source)
Basic constructor using an AWT component.

Parameters:
target - The panel to modify
source - The component from which URLs will be gotten
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Starts a new loading thread.

Specified by:
actionPerformed in interface java.awt.event.ActionListener
See Also:
ActionListener.actionPerformed(java.awt.event.ActionEvent)

run

public void run()
Just gets the URL from the text field and calls loadURL

Specified by:
run in interface java.lang.Runnable

Xj3D VRML/X3D Code API

Copyright © 2001 - 2005 Web3D Consortium