Class 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

      Constructors 
      Constructor Description
      CommitEvent​(java.lang.Object source, boolean commit)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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.