com.tensegrity.gui.swing.control.spinbutton
Class SpinButtonActionEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byjava.awt.AWTEvent
          extended byjava.awt.event.ActionEvent
              extended bycom.tensegrity.gui.swing.control.spinbutton.SpinButtonActionEvent
All Implemented Interfaces:
java.io.Serializable

public class SpinButtonActionEvent
extends java.awt.event.ActionEvent

The SpinButtonActionEvent class is a specialized version of the common ActionEvent about the ability to store an instance of class Number. This Event implementation is used with the SpinTextField controls to send value modifications among the TextField and the SpinButton.

Version:
$Id: SpinButtonActionEvent.java,v 1.2 2004/09/21 09:59:47 GillesIachelini Exp $
Author:
GillesIachelini
See Also:
Serialized Form

Field Summary
 
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
SpinButtonActionEvent(java.lang.Object source, int id, java.lang.Number number)
          Creates a new SpinButtonActionEvent based on the given source parameter, an id and an instance of class Number, representing the new value.
SpinButtonActionEvent(java.lang.Object source, int id, java.lang.Number number, int modifiers)
          Creates a new SpinButtonActionEvent based on the given source parameter, an id and an instance of class Number, representing the new value.
 
Method Summary
 java.lang.Number getNumber()
          Returns the Number instance associated with 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
 

Constructor Detail

SpinButtonActionEvent

public SpinButtonActionEvent(java.lang.Object source,
                             int id,
                             java.lang.Number number)
Creates a new SpinButtonActionEvent based on the given source parameter, an id and an instance of class Number, representing the new value.

Parameters:
source - the source where this event occurred.
id - an Action ID. Ignored by SpinTextField and SpinButton.
number - the instance of class Number holding the new value.

SpinButtonActionEvent

public SpinButtonActionEvent(java.lang.Object source,
                             int id,
                             java.lang.Number number,
                             int modifiers)
Creates a new SpinButtonActionEvent based on the given source parameter, an id and an instance of class Number, representing the new value. The modifier parameter is silently ignored.

Parameters:
source - the source where this event occurred.
id - an Action ID. Ignored by SpinTextField and SpinButton.
number - the instance of class Number holding the new value.
modifiers - ignored.
Method Detail

getNumber

public java.lang.Number getNumber()
Returns the Number instance associated with this Event.

Returns:
this event instances Number instance.


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.