Class TableValueChangeEvent


  • public class TableValueChangeEvent
    extends ValueChangeEvent
    An event encapsulating a change in a Table. The event details the object that changed, it's position in the table and the changed value.
    Author:
    Andrew Kimball
    • Constructor Detail

      • TableValueChangeEvent

        public TableValueChangeEvent​(Object source,
                                     String propertyName,
                                     int row,
                                     int column,
                                     Object oldValue,
                                     Object newValue)
        Constructor for the event.
        Parameters:
        source - The object that changed
        propertyName - The column name of the changed object
        row - The row of the changed object
        column - The column of the changed object
        oldValue - The new value of the object
        newValue - The old value of the object (often just a copy of the new value)
    • Method Detail

      • getColumn

        public int getColumn()
        Get the column index for the changed value
        Returns:
        the index of the column at which the change occurred
      • getRow

        public int getRow()
        Get the row index for the changed value
        Returns:
        the index of the row at which the change occurred