/** * Returns a boolean indication whether the event represents a * update type. * * @param e the event to examine. * @return true if the event is a true update, false * otherwise. */ public static boolean isUpdate(TableModelEvent e) { if (isStructureChanged(e)) return false; return e.getType() == TableModelEvent.UPDATE && e.getLastRow() < Integer.MAX_VALUE; }
/** * Returns a boolean indication whether the event represents a * update type. * * @param e the event to examine. * @return true if the event is a true update, false * otherwise. */ public static boolean isUpdate(TableModelEvent e) { if (isStructureChanged(e)) return false; return e.getType() == TableModelEvent.UPDATE && e.getLastRow() < Integer.MAX_VALUE; }
/** * Returns a boolean indication whether the event represents a * update type. * * @param e the event to examine. * @return true if the event is a true update, false * otherwise. */ public static boolean isUpdate(TableModelEvent e) { if (isStructureChanged(e)) return false; return e.getType() == TableModelEvent.UPDATE && e.getLastRow() < Integer.MAX_VALUE; }
/** * Returns a boolean indication whether the event represents a * update type. * * @param e the event to examine. * @return true if the event is a true update, false * otherwise. */ public static boolean isUpdate(TableModelEvent e) { if (isStructureChanged(e)) return false; return e.getType() == TableModelEvent.UPDATE && e.getLastRow() < Integer.MAX_VALUE; }
private void invokedTableChanged(TableModelEvent e) { if (isStructureChanged(e) || isDataChanged(e)) { updatePreferredRowHeights(); } else if (isUpdate(e) || isInsert(e)) { updatePreferredRowHeights(e.getFirstRow(), e.getLastRow()); } // do nothing on delete } };
private void invokedTableChanged(TableModelEvent e) { if (isStructureChanged(e) || isDataChanged(e)) { updatePreferredRowHeights(); } else if (isUpdate(e) || isInsert(e)) { updatePreferredRowHeights(e.getFirstRow(), e.getLastRow()); } // do nothing on delete } };
private void invokedTableChanged(TableModelEvent e) { if (isStructureChanged(e) || isDataChanged(e)) { updatePreferredRowHeights(); } else if (isUpdate(e) || isInsert(e)) { updatePreferredRowHeights(e.getFirstRow(), e.getLastRow()); } // do nothing on delete } };
private void invokedTableChanged(TableModelEvent e) { if (isStructureChanged(e) || isDataChanged(e)) { updatePreferredRowHeights(); } else if (isUpdate(e) || isInsert(e)) { updatePreferredRowHeights(e.getFirstRow(), e.getLastRow()); } // do nothing on delete } };