@Override public void clearSelection() { if (!ignoreClearSelection) { super.clearSelection(); } }
/** * Clear the table selection */ public void onMenuClearSelection() { table.clearSelection(); }
/** * Clear the selection in the gui. */ public void clearSelectedRules() { list.clearSelection(); }
@Override public void resetTextToFind() { lastPosition = -1; if(tableParams != null) { tableParams.clearSelection(); } }
@Override public void actionPerformed(ActionEvent e) { m_searchResults.clear(); m_searchField.setText(""); m_searchHitsLab.setText(""); m_table.clearSelection(); updateTable(); updateInstallUninstallButtonEnablement(); } });
@Override public void actionPerformed(ActionEvent e) { m_searchResults.clear(); m_searchField.setText(""); m_searchHitsLab.setText(""); m_table.clearSelection(); updateTable(); updateInstallUninstallButtonEnablement(); } });
@Override public void actionPerformed(ActionEvent e) { m_searchResults.clear(); m_searchField.setText(""); m_searchHitsLab.setText(""); m_table.clearSelection(); updateTable(); updateInstallUninstallButtonEnablement(); } });
public class Renderer extends DefaultTableCellRenderer { public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { if (table.getValueAt(row, column) == null && isSelected) { table.clearSelection(); return super.getTableCellRendererComponent(table, value, false, false, row, column); } else { return super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column); } }
public static void selectNextTableRow(JTable table){ int index = table.getSelectedRow(); if (index == -1){ index = 0; } table.clearSelection(); if (++index > table.getRowCount()-1){ index = 0; } table.addRowSelectionInterval(index, index); }
private void add_elc_account_buttonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_add_elc_account_buttonActionPerformed DefaultTableModel model = (DefaultTableModel) elc_accounts_table.getModel(); model.addRow(new Object[]{"", "", ""}); elc_accounts_table.clearSelection(); remove_elc_account_button.setEnabled(true); }//GEN-LAST:event_add_elc_account_buttonActionPerformed
private void add_mega_account_buttonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_add_mega_account_buttonActionPerformed DefaultTableModel model = (DefaultTableModel) mega_accounts_table.getModel(); model.addRow(new Object[]{"", ""}); mega_accounts_table.clearSelection(); remove_mega_account_button.setEnabled(true); }//GEN-LAST:event_add_mega_account_buttonActionPerformed
/** Loads the information from the resource list. **/ public void load() { table_.clearSelection(); model_.load(); }
/** Loads the information from the system. **/ public void load () { table_.clearSelection (); model_.load (); }
/** * Select the last row in a table. Handy for selecting a row that was just added. * * @param table */ public static void selectLastTableRow(JTable table) { table.clearSelection(); int index = table.getRowCount() - 1; index = table.convertRowIndexToView(index); table.addRowSelectionInterval(index, index); }
@Override protected void initFromPrefs() { temporaryPreferences.clear(); panel.colorStylesTable.repaint(); panel.colorStylesTable.clearSelection(); onSelectionChanged(); }
public static void selectFirstTableRow(JTable table) { table.clearSelection(); int index = 0; index = table.convertRowIndexToView(index); table.addRowSelectionInterval(index, index); }
/** * @param selectedCropProtections */ public void setSelectedCropProtectionTasks(String[][] selectedCropProtectionTasks) { this.selectedCropProtectionTasks = selectedCropProtectionTasks.clone(); summaryTableModel.setData(this.selectedCropProtectionTasks); summaryTable.clearSelection(); }
@Override public void actionPerformed(ActionEvent e) { Mask[] selectedMasks = getMaskForm().getSelectedMasks(); getMaskForm().getMaskTable().clearSelection(); RasterDataNodeDeleter.deleteRasterDataNodes(selectedMasks); }
/** * User pressed a header button; change the key value to match (and reorder). */ public void valueChanged(ListSelectionEvent e) { if (e.getFirstIndex() == e.getLastIndex()) if (e.getFirstIndex() > 0) // Column 0 is the form button this.clickColumn(e.getFirstIndex()); JTable control = (JTable)m_gridScreen.getScreenFieldView().getControl(); control.clearSelection(); // Column selections not allowed } /**