Class RowCountChangeEvent

    • Constructor Detail

      • RowCountChangeEvent

        protected RowCountChangeEvent​(int rowCount,
                                      boolean isExact)
        Parameters:
        rowCount - the new row count
        isExact - true if the row count is exact
    • Method Detail

      • fire

        public static void fire​(HasRows source,
                                int rowCount,
                                boolean isExact)
        Fires a RowCountChangeEvent on all registered handlers in the handler manager. If no such handlers exist, this method will do nothing.
        Parameters:
        source - the source of the handlers
        rowCount - the new rowCount
        isExact - true if rowCount is an exact count
      • getNewRowCount

        public int getNewRowCount()
        Gets the new row count.
        Returns:
        the new row count
      • isNewRowCountExact

        public boolean isNewRowCountExact()
        Check if the new row count is exact.
        Returns:
        true if the new row count is exact, false if not
      • toDebugString

        public java.lang.String toDebugString()
        Description copied from class: Event
        This is a method used primarily for debugging. It gives a string representation of the event details. This does not override the toString method because the compiler cannot always optimize toString out correctly. Event types should override as desired.
        Overrides:
        toDebugString in class Event<RowCountChangeEvent.Handler>
        Returns:
        a string representing the event's specifics.