/** * Called after notification from RowSorter. * * @param e RowSorter event of type SORTED. */ protected void sortedChanged(RowSorterEvent e) { sorterChanged = true; if (!ignoreSortChange) { prepareForChange(e); processChange(null); // PENDING Jw: this is fix of 1161-swingx - not updated after setting // rowFilter // potentially costly? but how to distinguish a mere sort from a // filterchanged? (only the latter requires a revalidate) // first fix had only revalidate/repaint but was not // good enough, see #1261-swingx - no items visible // after setting rowFilter // need to invalidate the cell size cache which might be needed // even after plain sorting as the indi-sizes are now at different // positions list.invalidateCellSizeCache(); } }
/** * Called after notification from RowSorter. * * @param e RowSorter event of type SORTED. */ protected void sortedChanged(RowSorterEvent e) { sorterChanged = true; if (!ignoreSortChange) { prepareForChange(e); processChange(null); // PENDING Jw: this is fix of 1161-swingx - not updated after setting // rowFilter // potentially costly? but how to distinguish a mere sort from a // filterchanged? (only the latter requires a revalidate) // first fix had only revalidate/repaint but was not // good enough, see #1261-swingx - no items visible // after setting rowFilter // need to invalidate the cell size cache which might be needed // even after plain sorting as the indi-sizes are now at different // positions list.invalidateCellSizeCache(); } }
/** * Called after notification from RowSorter. * * @param e RowSorter event of type SORTED. */ protected void sortedChanged(RowSorterEvent e) { sorterChanged = true; if (!ignoreSortChange) { prepareForChange(e); processChange(null); // PENDING Jw: this is fix of 1161-swingx - not updated after setting // rowFilter // potentially costly? but how to distinguish a mere sort from a // filterchanged? (only the latter requires a revalidate) // first fix had only revalidate/repaint but was not // good enough, see #1261-swingx - no items visible // after setting rowFilter // need to invalidate the cell size cache which might be needed // even after plain sorting as the indi-sizes are now at different // positions list.invalidateCellSizeCache(); } }
/** * Called after notification from RowSorter. * * @param e RowSorter event of type SORTED. */ protected void sortedChanged(RowSorterEvent e) { sorterChanged = true; if (!ignoreSortChange) { prepareForChange(e); processChange(null); // PENDING Jw: this is fix of 1161-swingx - not updated after setting // rowFilter // potentially costly? but how to distinguish a mere sort from a // filterchanged? (only the latter requires a revalidate) // first fix had only revalidate/repaint but was not // good enough, see #1261-swingx - no items visible // after setting rowFilter // need to invalidate the cell size cache which might be needed // even after plain sorting as the indi-sizes are now at different // positions list.invalidateCellSizeCache(); } }
/** * Called after notification from ListModel. * @param e the change event from the listModel. */ public void modelChanged(ListDataEvent e) { ModelChange change = new ModelChange(e); prepareForChange(change); notifySorter(change); if (change.type != ListDataEvent.CONTENTS_CHANGED) { // If the Sorter is unsorted we will not have received // notification, force treating insert/delete as a change. sorterChanged = true; } processChange(change); }
/** * Called after notification from ListModel. * @param e the change event from the listModel. */ public void modelChanged(ListDataEvent e) { ModelChange change = new ModelChange(e); prepareForChange(change); notifySorter(change); if (change.type != ListDataEvent.CONTENTS_CHANGED) { // If the Sorter is unsorted we will not have received // notification, force treating insert/delete as a change. sorterChanged = true; } processChange(change); }
/** * Called after notification from ListModel. * @param e the change event from the listModel. */ public void modelChanged(ListDataEvent e) { ModelChange change = new ModelChange(e); prepareForChange(change); notifySorter(change); if (change.type != ListDataEvent.CONTENTS_CHANGED) { // If the Sorter is unsorted we will not have received // notification, force treating insert/delete as a change. sorterChanged = true; } processChange(change); }
/** * Called after notification from ListModel. * @param e the change event from the listModel. */ public void modelChanged(ListDataEvent e) { ModelChange change = new ModelChange(e); prepareForChange(change); notifySorter(change); if (change.type != ListDataEvent.CONTENTS_CHANGED) { // If the Sorter is unsorted we will not have received // notification, force treating insert/delete as a change. sorterChanged = true; } processChange(change); }