java.lang.Object
java.util.EventObject
javafx.event.Event
org.controlsfx.control.spreadsheet.GridChange
All Implemented Interfaces:
Serializable, Cloneable

public class GridChange extends javafx.event.Event implements Serializable
This class represents a single change happening in a Grid.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final javafx.event.EventType<GridChange>
    This is the event used by GridChange.

    Fields inherited from class javafx.event.Event

    ANY, consumed, eventType, NULL_SOURCE_TARGET, target

    Fields inherited from class java.util.EventObject

    source
  • Constructor Summary

    Constructors
    Constructor
    Description
    GridChange(int modelRow, int column, Object oldValue, Object newValue)
    Constructor of a GridChange when a change inside a SpreadsheetCell is happening.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the column index of this change.
    Returns the value after the change.
    Returns the value before the change.
    int
    Returns the row index of this change.

    Methods inherited from class javafx.event.Event

    clone, consume, copyFor, fireEvent, getEventType, getTarget, isConsumed

    Methods inherited from class java.util.EventObject

    getSource, toString

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • GRID_CHANGE_EVENT

      public static final javafx.event.EventType<GridChange> GRID_CHANGE_EVENT
      This is the event used by GridChange.
  • Constructor Details

    • GridChange

      public GridChange(int modelRow, int column, Object oldValue, Object newValue)
      Constructor of a GridChange when a change inside a SpreadsheetCell is happening.
      Parameters:
      modelRow - the row index for this change
      column - the column index for this change
      oldValue - the previous value for this change
      newValue - the current value for this change
  • Method Details

    • getRow

      public int getRow()
      Returns the row index of this change.
      Returns:
      the row number of this change
    • getColumn

      public int getColumn()
      Returns the column index of this change.
      Returns:
      the column number of this change
    • getOldValue

      public Object getOldValue()
      Returns the value before the change.
      Returns:
      the value before the change
    • getNewValue

      public Object getNewValue()
      Returns the value after the change.
      Returns:
      the value after the change