edu.stanford.hci.r3.actions.types
Class OpenURLAction

java.lang.Object
  extended by edu.stanford.hci.r3.actions.types.OpenURLAction
All Implemented Interfaces:
R3Action

public class OpenURLAction
extends java.lang.Object
implements R3Action

Uses the default browser to launch the specified URL. WARNING: This seems really really slow on Java 6 on my desktop. It is slow (a minute??) on both Firefox and IE7. It used to work well through JDIC on Java 5. We may implement an alternative. UPDATE: This seems to work perfectly fine on my laptop. So yeah, just be aware that it might not work consistently across machines. UPDATE2: HEY, this seems to work now on my desktop. Perhaps it was Google Desktop that was making it slow???

This software is distributed under the BSD License.


Constructor Summary
OpenURLAction(java.net.URL theURL)
           
 
Method Summary
 void invoke()
          Invoke this action on the local machine.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface edu.stanford.hci.r3.actions.R3Action
toString
 

Constructor Detail

OpenURLAction

public OpenURLAction(java.net.URL theURL)
Parameters:
theURL -
Method Detail

invoke

public void invoke()
Description copied from interface: R3Action
Invoke this action on the local machine. If you want to invoke this on a remote machine, you will need to send it across the wire. That machine will then unserialize the action object and call invoke() on ITS local machine.

Specified by:
invoke in interface R3Action
See Also:
R3Action.invoke()

Copyright 2006 Stanford University