fds.micro.ui.events
Class ValueChangeEvent

java.lang.Object
  extended byfds.micro.ui.events.EventUI
      extended byfds.micro.ui.events.ValueChangeEvent

public class ValueChangeEvent
extends EventUI

This class defines an event to be used with Component sub-classes to track value changes.

Author:
Frédéric DE STEUR

Constructor Summary
ValueChangeEvent(Component source, java.lang.String oldValue, java.lang.String newValue)
          Build an event with given arguments.
 
Method Summary
 java.lang.String getNewValue()
          Get the new value after changes.
 java.lang.String getOldValue()
          Get the old value before changes.
 java.lang.String toString()
          Give String description of this event.
 
Methods inherited from class fds.micro.ui.events.EventUI
getSource
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ValueChangeEvent

public ValueChangeEvent(Component source,
                        java.lang.String oldValue,
                        java.lang.String newValue)
Build an event with given arguments.

Parameters:
source - The object that produce the event.
oldValue - The old value before change.
newValue - The new value after change.
Method Detail

getNewValue

public java.lang.String getNewValue()
Get the new value after changes.

Returns:
Returns the new value.

getOldValue

public java.lang.String getOldValue()
Get the old value before changes.

Returns:
Returns the old value.

toString

public java.lang.String toString()
Description copied from class: EventUI
Give String description of this event.

Overrides:
toString in class EventUI