com.michaelbaranov.microba.common
Class CommitEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.michaelbaranov.microba.common.CommitEvent
All Implemented Interfaces:
java.io.Serializable

public class CommitEvent
extends java.util.EventObject

An event used to indicate a change to a control has been commited or reverted (rolled back).

Author:
Michael Baranov
See Also:
Serialized Form

Constructor Summary
CommitEvent(java.lang.Object source, boolean commit)
          Constructor.
 
Method Summary
 boolean isCommit()
          Returns the type of the event.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CommitEvent

public CommitEvent(java.lang.Object source,
                   boolean commit)
Constructor.

Parameters:
source - a control that fired the event
commit - true to indicate commit, false to indicate revert (rollback)
Method Detail

isCommit

public boolean isCommit()
Returns the type of the event.

Returns:
true if a change has been commited to a control, false otherwise.