DESY ACOP Beans Home

com.cosylab.events
Class SetEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.cosylab.events.SetEvent
All Implemented Interfaces:
java.io.Serializable

public class SetEvent
extends java.util.EventObject

Notifys listeners that user set action was performed on number displayer.

Version:
$$id$$
Author:
Ales Pucelj
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
SetEvent(java.lang.Object source, double newValue)
          Constructor for SliderSetEvent.
SetEvent(java.lang.Object source, java.lang.Number newValue)
          Constructor for SliderSetEvent.
 
Method Summary
 double getDoubleValue()
          Returns set value as double.
 long getLongValue()
          Returns set value as long.
 java.lang.Number getValue()
          Returns value which was set by user.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SetEvent

public SetEvent(java.lang.Object source,
                double newValue)
Constructor for SliderSetEvent.

Parameters:
source - Object
newValue - double

SetEvent

public SetEvent(java.lang.Object source,
                java.lang.Number newValue)
Constructor for SliderSetEvent.

Parameters:
source - Object
newValue - Object
Throws:
java.lang.NullPointerException - DOCUMENT ME!
Method Detail

getValue

public java.lang.Number getValue()
Returns value which was set by user.

Returns:
Number

getDoubleValue

public double getDoubleValue()
Returns set value as double.

Returns:
double

getLongValue

public long getLongValue()
Returns set value as long.

Returns:
double


Copyright © 2010. All Rights Reserved.