@Override public void removeSelectionInterval(int index0, int index1) { delegate.removeSelectionInterval(index0, index1); }
@Override public void removeSelectionInterval(int index0, int index1) { delegate.removeSelectionInterval(index0, index1); }
@Override public void removeSelectionInterval(int index0, int index1) { delegate.removeSelectionInterval(index0, index1); }
public void removeSelectionInterval(final int pIndex0, final int pIndex1) { mListSelectionModel.removeSelectionInterval(pIndex0, pIndex1); handleListSelection(); }
public void removeSelectionInterval(final int pIndex0, final int pIndex1) { mListSelectionModel.removeSelectionInterval(pIndex0, pIndex1); handleListSelection(); }
public void removeSelectionInterval(final int pIndex0, final int pIndex1) { mListSelectionModel.removeSelectionInterval(pIndex0, pIndex1); handleListSelection(); }
private void removeChildrenSelection(List<TreeListNode> children) { if (children.isEmpty()) { return; } final List<TreeListNode> allNodes = model.getAllNodes(); int firstIndex = allNodes.indexOf(children.get(0)); int lastIndex = allNodes.indexOf(children.get(children.size() - 1)); treeList.getSelectionModel().removeSelectionInterval(firstIndex, lastIndex); }
private void jTable4MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jTable4MouseClicked if (SwingUtilities.isRightMouseButton(evt)) { Point p = evt.getPoint(); int rowNumber = jTable4.rowAtPoint(p); ListSelectionModel model = jTable4.getSelectionModel(); model.removeSelectionInterval(rowNumber, rowNumber); } }//GEN-LAST:event_jTable4MouseClicked
private void toggleSelection(int index){ if(index<0) return; if(selectionModel.isSelectedIndex(index)){ selectionModel.removeSelectionInterval(index, index);} else { selectionModel.addSelectionInterval(index, index);} }
@ScriptFunction(jsDoc = UNSELECT_JSDOC, params = {"instance"}) public void unselect(JSObject anElement) throws Exception { if (anElement != null) { int idx = modelIndexByElement(anElement); if (idx != -1) { rowsSelectionModel.removeSelectionInterval(idx, idx); } } }
public void removeSelectionInterval(int index0, int index1) { int uindex0 = constraint.unconstraint(index0); int uindex1 = constraint.unconstraint(index1); delegate.removeSelectionInterval(uindex0, uindex1); }
private void doDeselectFile(Object fileToDeselect) { int index = getModel().indexOf(fileToDeselect); listSelectionModel.removeSelectionInterval(index, index); }
@Override public void changeSelection(int rowIndex, int columnIndex, boolean toggle, boolean extend) { latestClickedRowIndex = rowIndex; ListSelectionModel selectionModel = getSelectionModel(); boolean selected = selectionModel.isSelectedIndex(rowIndex); //throw new UnsupportedOperationException("Paila."); if (selected) { selectionModel.removeSelectionInterval(rowIndex, rowIndex); getValueAt(rowIndex, columnIndex); } else { selectionModel.addSelectionInterval(rowIndex, rowIndex); } }
private void select(int index){ if(index<0) return; if(sModel.isSelectedIndex(index)) sModel.removeSelectionInterval(index, index); else sModel.addSelectionInterval(index, index); }
private void toggleSelection( final int index ) { if ( index >= 0 ) { if ( _selectionModel.isSelectedIndex( index ) ) { _selectionModel.removeSelectionInterval( index, index ); } else { _selectionModel.addSelectionInterval( index, index ); } } }
public void clearSelection() { int lMin = constraint.getMin(); int lMax = Math.min(constraint.getMax(), delegate.getMaxSelectionIndex()); if(lMin <= lMax) delegate.removeSelectionInterval(lMin, lMax); }
/** * Invert selection in a JTable. * * @param table */ public static void invertSelection(JTable table) { ListSelectionModel mdl = table.getSelectionModel(); int[] selected = table.getSelectedRows(); mdl.setValueIsAdjusting(true); mdl.setSelectionInterval(0, table.getRowCount() - 1); for (int i : selected) { mdl.removeSelectionInterval(i, i); } mdl.setValueIsAdjusting(false); }
public void actionPerformed(ActionEvent e) { if ( m_ignore ) { return; } else { m_ignore = true; } JToggleButton tb = (JToggleButton)e.getSource(); boolean sel = tb.isSelected(); int idx = ((Integer)tb.getClientProperty("idx")).intValue(); if ( m_type == RADIO ) { m_sel.setSelectionInterval(idx,idx); } else if ( sel ) { m_sel.addSelectionInterval(idx,idx); } else { m_sel.removeSelectionInterval(idx,idx); } m_ignore = false; }
public void layerSelectionChanged(Scene sourceScene, Layer layer, boolean selected) { int index = SceneLayerNavigator.this.scene.indexOf(layer); if (selected){ getSelectionModel().addSelectionInterval(index, index); } else { getSelectionModel().removeSelectionInterval(index, index); } }
@Override public void actionPerformed(ActionEvent e) { int rowCount = table.getRowCount(); if (rowCount > 0) { int[] selectedIndices = table.getSelectedRows(); ListSelectionModel selectionModel = table.getSelectionModel(); selectionModel.setValueIsAdjusting(true); table.getSelectionModel().setSelectionInterval(0, rowCount - 1); for (int prevSel : selectedIndices) { table.getSelectionModel().removeSelectionInterval(prevSel, prevSel); } selectionModel.setValueIsAdjusting(false); } } };