Top Description Fields Constructors Methods
org.controlsfx.control.spreadsheet

public Class GridChange

extends Event
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Imports
java.io.Serializable, java.util.UUID, javafx.event.Event, .EventType

This class represents a single change happening in a Grid.
See Also
Grid, GridBase

Field Summary

Modifier and TypeField and Description
private final int
public static final EventType<GridChange>
GRID_CHANGE_EVENT

This is the event used by GridChange.

private final int
private final Object
private final Object
private static final long
Inherited from javafx.event.Event:
ANYconsumedeventTypeNULL_SOURCE_TARGETtarget

Constructor Summary

AccessConstructor and Description
public
GridChange(int
the row index for this change
modelRow
,
int
the column index for this change
column
,
Object
the previous value for this change
oldValue
,
Object
the current value for this change
newValue
)

Constructor of a GridChange when a change inside a SpreadsheetCell is happening.

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the column number of this change
getColumn
()

Returns the column index of this change.

public Object

Returns:

the value after the change
getNewValue
()

Returns the value after the change.

public Object

Returns:

the value before the change
getOldValue
()

Returns the value before the change.

public int

Returns:

the row number of this change
getRow
()

Returns the row index of this change.

Inherited from javafx.event.Event:
cloneconsumecopyForfireEventgetEventTypegetTargetisConsumed

Field Detail

columnback to summary
private final int column
GRID_CHANGE_EVENTback to summary
public static final EventType<GridChange> GRID_CHANGE_EVENT

This is the event used by GridChange.

modelRowback to summary
private final int modelRow
newValueback to summary
private final Object newValue
oldValueback to summary
private final Object oldValue
serialVersionUIDback to summary
private static final long serialVersionUID

Hides javafx.event.Event.serialVersionUID.

Constructor Detail

GridChangeback to summary
public GridChange(int modelRow, int column, Object oldValue, Object newValue)

Constructor of a GridChange when a change inside a SpreadsheetCell is happening.

Parameters
modelRow:int

the row index for this change

column:int

the column index for this change

oldValue:Object

the previous value for this change

newValue:Object

the current value for this change

Method Detail

getColumnback to summary
public int getColumn()

Returns the column index of this change.

Returns:int

the column number of this change

getNewValueback to summary
public Object getNewValue()

Returns the value after the change.

Returns:Object

the value after the change

getOldValueback to summary
public Object getOldValue()

Returns the value before the change.

Returns:Object

the value before the change

getRowback to summary
public int getRow()

Returns the row index of this change.

Returns:int

the row number of this change