net.lucidviews.util.gui.swing
Class JWebAddress.WebAddressActionEvent

java.lang.Object
  extended by java.util.EventObject
      extended by java.awt.AWTEvent
          extended by java.awt.event.ActionEvent
              extended by net.lucidviews.util.gui.swing.JWebAddress.WebAddressActionEvent
All Implemented Interfaces:
Serializable
Enclosing class:
JWebAddress

public static class JWebAddress.WebAddressActionEvent
extends ActionEvent

An ActionEvent specific to the JWebAddress component.
ActionListeners assigned to a JWebAddress object can expect to receive a WebAddressActionEvent as the event parameter in calls to the ActionListener::actionPerformed() method.

See Also:
Serialized Form

Field Summary
static int ACTION_ID
          The id of this action type.
static String COMMAND_GO
          The (textual) command associated with this action type.
private static long serialVersionUID
          Serialisation version.
protected  URL webAddress
          The URL of the web address .
 
Fields inherited from class java.awt.event.ActionEvent
ACTION_FIRST, ACTION_LAST, ACTION_PERFORMED, ALT_MASK, CTRL_MASK, META_MASK, SHIFT_MASK
 
Fields inherited from class java.awt.AWTEvent
ACTION_EVENT_MASK, ADJUSTMENT_EVENT_MASK, COMPONENT_EVENT_MASK, consumed, CONTAINER_EVENT_MASK, FOCUS_EVENT_MASK, HIERARCHY_BOUNDS_EVENT_MASK, HIERARCHY_EVENT_MASK, id, INPUT_METHOD_EVENT_MASK, INVOCATION_EVENT_MASK, ITEM_EVENT_MASK, KEY_EVENT_MASK, MOUSE_EVENT_MASK, MOUSE_MOTION_EVENT_MASK, MOUSE_WHEEL_EVENT_MASK, PAINT_EVENT_MASK, RESERVED_ID_MAX, TEXT_EVENT_MASK, WINDOW_EVENT_MASK, WINDOW_FOCUS_EVENT_MASK, WINDOW_STATE_EVENT_MASK
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
JWebAddress.WebAddressActionEvent(Object source, String command, long when, int modifiers, URL webAddress)
          Create an action event to process a web address.
JWebAddress.WebAddressActionEvent(Object source, String command, URL webAddress)
          Create an action event to process a web address.
 
Method Summary
 URL getWebAddress()
          Get the URL of the web address that was entered to trigger this event.
 
Methods inherited from class java.awt.event.ActionEvent
getActionCommand, getModifiers, getWhen, paramString
 
Methods inherited from class java.awt.AWTEvent
consume, getID, isConsumed, setSource, toString
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Serialisation version.

See Also:
Constant Field Values

ACTION_ID

public static final int ACTION_ID
The id of this action type.

See Also:
Constant Field Values

COMMAND_GO

public static final String COMMAND_GO
The (textual) command associated with this action type.

See Also:
Constant Field Values

webAddress

protected URL webAddress
The URL of the web address .

Constructor Detail

JWebAddress.WebAddressActionEvent

public JWebAddress.WebAddressActionEvent(Object source,
                                         String command,
                                         URL webAddress)
Create an action event to process a web address.

Parameters:
source - the object that originated the event
command - a string that may specify a command (possibly one of several) associated with the event
webAddress - the URL of the web address

JWebAddress.WebAddressActionEvent

public JWebAddress.WebAddressActionEvent(Object source,
                                         String command,
                                         long when,
                                         int modifiers,
                                         URL webAddress)
Create an action event to process a web address.

Parameters:
source - the object that originated the event
command - a string that may specify a command (possibly one of several) associated with the event
when - the time the event occurred
modifiers - the modifier keys held down during this action
webAddress - the URL of the web address
Method Detail

getWebAddress

public URL getWebAddress()
Get the URL of the web address that was entered to trigger this event.

Returns:
the URL entered by the user