Xj3D 2.0 VRML/X3D Code API

org.xj3d.ui.awt.widgets
Class NavModeAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by org.xj3d.ui.awt.widgets.NavModeAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action

public class NavModeAction
extends javax.swing.AbstractAction

An action that changes to a specific navigation mode.

Version:
$Revision: 1.3 $
Author:
Alan Hudson
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
NavModeAction(boolean standAlone, javax.swing.Icon icon, java.lang.String modeString, javax.swing.KeyStroke accelKey, BrowserCore core)
          Create an instance of the action class.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent evt)
          An action has been performed.
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NavModeAction

public NavModeAction(boolean standAlone,
                     javax.swing.Icon icon,
                     java.lang.String modeString,
                     javax.swing.KeyStroke accelKey,
                     BrowserCore core)
Create an instance of the action class.

Parameters:
standAlone - Is this standalone or in a menu
icon - The Icon
modeString - The mode string
accelKey - The accelerator key
core - The browser core
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent evt)
An action has been performed. This is the Go button being pressed. Grab the URL and check with the file to see if it exists first as a local file, and then try to make a URL of it. Finally, if this all works, call the abstract gotoLocation method.

Parameters:
evt - The event that caused this method to be called.

Xj3D 2.0 VRML/X3D Code API

Copyright © 2001 - 2006 Web3D Consortium