@Override public boolean getValueIsAdjusting() { return delegate.getValueIsAdjusting(); }
public boolean getValueIsAdjusting() { return mListSelectionModel.getValueIsAdjusting(); }
@Override public boolean getValueIsAdjusting() { return delegate.getValueIsAdjusting(); }
@Override public boolean getValueIsAdjusting() { return delegate.getValueIsAdjusting(); }
public boolean getValueIsAdjusting() { return mListSelectionModel.getValueIsAdjusting(); }
public boolean getValueIsAdjusting() { return mListSelectionModel.getValueIsAdjusting(); }
public boolean getValueIsAdjusting() { return delegate.getValueIsAdjusting(); }
public MatrixGUIObject getSelectedMatrix() { ListSelectionModel lsm = jTable.getSelectionModel(); if (lsm.isSelectionEmpty() || lsm.getValueIsAdjusting()) return null; int selectedRow = lsm.getMinSelectionIndex(); return (MatrixGUIObject) jTable.getModel().getValueAt(selectedRow, MatrixListTableModel.MATRIXCOLUMN); }
public void setValueIsAdjusting(final boolean pValueIsAdjusting) { if (pValueIsAdjusting!=mListSelectionModel.getValueIsAdjusting()) { mListSelectionModel.setValueIsAdjusting(pValueIsAdjusting); handleListSelection(); } }
public void setValueIsAdjusting(final boolean pValueIsAdjusting) { if (pValueIsAdjusting!=mListSelectionModel.getValueIsAdjusting()) { mListSelectionModel.setValueIsAdjusting(pValueIsAdjusting); handleListSelection(); } }
public void valueChanged(ListSelectionEvent e) { ListSelectionModel selModel = existingGroupsTable.getSelectionModel(); if(!selModel.getValueIsAdjusting()) { int selectedRow = existingGroupsTable.getSelectedRow(); if(selectedRow != -1) { Object entry = existingGroupsModel.getRow(selectedRow); if(entry instanceof String) { groupName = (String) entry; updateTextFields(); firePropertyChange(Constants.USER_DATA_CHANGED, null, null); } } } }
89 class SharedListSelectionHandler implements ListSelectionListener { 90 public void valueChanged(ListSelectionEvent e) { 91 ListSelectionModel lsm = (ListSelectionModel)e.getSource(); 92 93 if (!lsm.getValueIsAdjusting()){ 94 int index = lsm.getMinSelectionIndex(); 95 if (index < 0) { 96 index = 0; 97 } 98 handleListSelectionEvent(index); 99 } 100 101 } 102 }
public void valueChanged(ListSelectionEvent e) { ListSelectionModel selModel = existingPrincipalsTable.getSelectionModel(); if(!selModel.getValueIsAdjusting()) { int selectedRow = existingPrincipalsTable.getSelectedRow(); if(selectedRow != -1) { Object entry = existingPrincipalsModel.getRow(selectedRow); if(entry instanceof PrincipalNameMapping) { PrincipalNameMapping principalEntry = (PrincipalNameMapping) entry; principalName = principalEntry.getPrincipalName(); className = principalEntry.getClassName(); updateTextFields(); firePropertyChange(Constants.USER_DATA_CHANGED, null, null); } } } }
private void handleListSelection() { // ignore the changes we triggered if (mInSelectionChange) { return; } // ignore changes when the ListSelectionModel is adjusting if (mListSelectionModel.getValueIsAdjusting()) { return; } mInSelectionChange= true; try { Set selectedIndexes = new HashSet(); for (int i = mListSelectionModel.getMinSelectionIndex(); i <= mListSelectionModel.getMaxSelectionIndex(); i++) { if (mListSelectionModel.isSelectedIndex( i)) { selectedIndexes.add(i); } } mMultiSelectionInList.setSelectedIndexes( selectedIndexes); } finally { mInSelectionChange= false; } }
/** * Common Swing ComboBoxModel callback code */ private void handleListSelection() { // ignore the changes we triggered if (mInSelectionChange) { return; } // ignore changes when the ListSelectionModel is adjusting if (mListSelectionModel.getValueIsAdjusting()) { return; } mInSelectionChange= true; try { mSelectionInList.selectionHolder().setValue(mListSelectionModel.getMinSelectionIndex()); } finally { mInSelectionChange= false; } }
public void valueChanged(ListSelectionEvent delegateEvent) { if ((delegateEvent.getFirstIndex() >= constraint.getMin() && delegateEvent.getFirstIndex() <= constraint.getMax()) || (delegateEvent.getLastIndex() >= constraint.getMin() && delegateEvent.getLastIndex() <= constraint.getMax())) { int firstIndex = constraint.constraint(delegateEvent.getFirstIndex()); int lastIndex = constraint.constraint(delegateEvent.getLastIndex()); fireValueChanged(firstIndex, lastIndex, delegate.getValueIsAdjusting()); /* ListSelectionEvent e = new ListSelectionEvent(ConstrainedListSelectionModel.this, firstRow, lastRow, delegate.getValueIsAdjusting()); for (ListSelectionListener l : listeners) { l.valueChanged(e); } */ } } }
if (getSelectionModel().getValueIsAdjusting()) {