java.lang.Object
java.util.EventObject
javafx.event.Event
org.controlsfx.control.spreadsheet.GridChange
- All Implemented Interfaces:
Serializable,Cloneable
This class represents a single change happening in a
Grid.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final EventType<GridChange>This is the event used byGridChange.Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionGridChange(int modelRow, int column, Object oldValue, Object newValue) Constructor of a GridChange when a change inside aSpreadsheetCellis happening. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the column index of this change.Returns the value after the change.Returns the value before the change.intgetRow()Returns the row index of this change.Methods inherited from class javafx.event.Event
clone, consume, copyFor, fireEvent, getEventType, getTarget, isConsumedMethods inherited from class java.util.EventObject
getSource, toString
-
Field Details
-
GRID_CHANGE_EVENT
This is the event used byGridChange.
-
-
Constructor Details
-
GridChange
Constructor of a GridChange when a change inside aSpreadsheetCellis happening.- Parameters:
modelRow- the row index for this changecolumn- the column index for this changeoldValue- the previous value for this changenewValue- 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
Returns the value before the change.- Returns:
- the value before the change
-
getNewValue
Returns the value after the change.- Returns:
- the value after the change
-