public RestoreStateRunnable(JTable table) { this.table = table; final ListSelectionModel selectionModel = table.getSelectionModel(); eventSelectionModel = selectionModel instanceof AdvancedListSelectionModel ? (AdvancedListSelectionModel) selectionModel : null; eventSelectionModelEnabled = eventSelectionModel != null && eventSelectionModel.getEnabled(); autoStartsEdit = (Boolean) table.getClientProperty("JTable.autoStartsEdit"); }
public void run() { table.putClientProperty("JTable.autoStartsEdit", autoStartsEdit); if (eventSelectionModel != null) eventSelectionModel.setEnabled(eventSelectionModelEnabled); } }
/** * Uninstalls the GlazedLists integration and restores the state of JXTable as it was before * the installation. * * @throws IllegalStateException if this method is called from any Thread * other than the Swing Event Dispatch Thread */ public void uninstall() { checkAccessThread(); tableComparatorChooser.dispose(); tableMemento.restoreStateTo(table); tableModel.dispose(); selectionModel.dispose(); tableComparatorChooser = null; tableModel = null; selectionModel = null; tableFormat = null; table = null; tableMemento = null; }
/** * Uninstalls the GlazedLists integration and restores the state of JXTable as it was before * the installation. * * @throws IllegalStateException if this method is called from any Thread * other than the Swing Event Dispatch Thread */ public void uninstall() { checkAccessThread(); tableComparatorChooser.dispose(); tableMemento.restoreStateTo(table); tableModel.dispose(); selectionModel.dispose(); tableComparatorChooser = null; tableModel = null; selectionModel = null; tableFormat = null; table = null; tableMemento = null; }
@Override public void run() { table.putClientProperty("JTable.autoStartsEdit", autoStartsEdit); if (eventSelectionModel != null) eventSelectionModel.setEnabled(eventSelectionModelEnabled); } }
public RestoreStateRunnable(JTable table) { this.table = table; final ListSelectionModel selectionModel = table.getSelectionModel(); eventSelectionModel = selectionModel instanceof AdvancedListSelectionModel ? (AdvancedListSelectionModel) selectionModel : null; eventSelectionModelEnabled = eventSelectionModel != null && eventSelectionModel.getEnabled(); autoStartsEdit = (Boolean) table.getClientProperty("JTable.autoStartsEdit"); }
/** * Uninstalls the GlazedLists integration and restores the state of JXTable as it was before * the installation. * * @throws IllegalStateException if this method is called from any Thread * other than the Swing Event Dispatch Thread */ public void uninstall() { checkAccessThread(); tableComparatorChooser.dispose(); tableMemento.restoreStateTo(table); tableModel.dispose(); selectionModel.dispose(); tableComparatorChooser = null; tableModel = null; selectionModel = null; tableFormat = null; table = null; tableMemento = null; }
public void run() { table.putClientProperty("JTable.autoStartsEdit", autoStartsEdit); if (eventSelectionModel != null) eventSelectionModel.setEnabled(eventSelectionModelEnabled); } }
public RestoreStateRunnable(JTable table) { this.table = table; final ListSelectionModel selectionModel = table.getSelectionModel(); eventSelectionModel = selectionModel instanceof AdvancedListSelectionModel ? (AdvancedListSelectionModel) selectionModel : null; eventSelectionModelEnabled = eventSelectionModel != null && eventSelectionModel.getEnabled(); autoStartsEdit = (Boolean) table.getClientProperty("JTable.autoStartsEdit"); }
selectionModel.setEnabled(false);
selectionModel.setEnabled(false);
selectionModel.setEnabled(false);