Package org.apache.pivot.wtk
Interface TableViewRowListener
-
- All Known Implementing Classes:
TableViewRowListener.Adapter
,TableViewRowListener.Listeners
,TerraTableViewSkin
public interface TableViewRowListener
Table view row listener interface.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
TableViewRowListener.Adapter
Deprecated.Since 2.1 and Java 8 the interface itself has default implementations.static class
TableViewRowListener.Listeners
Table view row listeners.
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
rowInserted(TableView tableView, int index)
Called when a row has been inserted into the table view.default void
rowsCleared(TableView tableView)
Called when the rows in a table view have been cleared.default void
rowsRemoved(TableView tableView, int index, int count)
Called when rows have been removed from the table view.default void
rowsSorted(TableView tableView)
Called when the rows in a table have been sorted.default void
rowUpdated(TableView tableView, int index)
Called when an row in the table view has been updated.
-
-
-
Method Detail
-
rowInserted
default void rowInserted(TableView tableView, int index)
Called when a row has been inserted into the table view.- Parameters:
tableView
- The source of the event.index
- The index of the row that was inserted.
-
rowsRemoved
default void rowsRemoved(TableView tableView, int index, int count)
Called when rows have been removed from the table view.- Parameters:
tableView
- The source of the event.index
- The first index affected by the event.count
- The number of rows that were removed, or-1
if all rows were removed.
-
rowUpdated
default void rowUpdated(TableView tableView, int index)
Called when an row in the table view has been updated.- Parameters:
tableView
- The source of the event.index
- The first index affected by the event.
-
rowsCleared
default void rowsCleared(TableView tableView)
Called when the rows in a table view have been cleared.- Parameters:
tableView
- The source of the event.
-
rowsSorted
default void rowsSorted(TableView tableView)
Called when the rows in a table have been sorted.- Parameters:
tableView
- The source of the event.
-
-