MCPcopy Create free account
hub / github.com/GateNLP/gate-core / tableChanged

Method tableChanged

src/main/java/gate/swing/XJTable.java:939–951  ·  view source on GitHub ↗

Overridden for efficiency reasons (provides a better calculation of the dirty region). See this page for a more complete discussion.

(TableModelEvent e)

Source from the content-addressed store, hash-verified

937 * for a more complete discussion.
938 */
939 @Override
940 public void tableChanged(TableModelEvent e) {
941 //if just an update, and not a data or structure changed event or an insert or delete, use the fixed row update handling
942 //otherwise call super.tableChanged to let the standard JTable update handling manage it
943 if ( e != null &&
944 e.getType() == TableModelEvent.UPDATE &&
945 e.getFirstRow() != TableModelEvent.HEADER_ROW &&
946 e.getLastRow() != Integer.MAX_VALUE) {
947 handleRowUpdate(e);
948 } else {
949 super.tableChanged(e);
950 }
951 }
952
953 /**
954 * This borrows most of the logic from the superclass handling of update

Callers

nothing calls this directly

Calls 2

handleRowUpdateMethod · 0.95
getTypeMethod · 0.65

Tested by

no test coverage detected