/** * This property is true if upcoming changes to the value of the model should be considered a single event. */ public void setValueIsAdjusting(boolean valueIsAdjusting) { this.valueIsAdjusting = valueIsAdjusting; // fire one extra change containing all changes in this set if(!valueIsAdjusting) { if(fullChangeStart != -1 && fullChangeFinish != -1) { source.getReadWriteLock().writeLock().lock(); try { fireSelectionChanged(fullChangeStart, fullChangeFinish); fullChangeStart = -1; fullChangeFinish = -1; } finally { source.getReadWriteLock().writeLock().unlock(); } } } }
/** * This property is true if upcoming changes to the value of the model should be considered a single event. */ @Override public void setValueIsAdjusting(boolean valueIsAdjusting) { this.valueIsAdjusting = valueIsAdjusting; // fire one extra change containing all changes in this set if(!valueIsAdjusting) { if(fullChangeStart != -1 && fullChangeFinish != -1) { source.getReadWriteLock().writeLock().lock(); try { fireSelectionChanged(fullChangeStart, fullChangeFinish); fullChangeStart = -1; fullChangeFinish = -1; } finally { source.getReadWriteLock().writeLock().unlock(); } } } }
/** * This property is true if upcoming changes to the value of the model should be considered a single event. */ public void setValueIsAdjusting(boolean valueIsAdjusting) { this.valueIsAdjusting = valueIsAdjusting; // fire one extra change containing all changes in this set if(!valueIsAdjusting) { if(fullChangeStart != -1 && fullChangeFinish != -1) { source.getReadWriteLock().writeLock().lock(); try { fireSelectionChanged(fullChangeStart, fullChangeFinish); fullChangeStart = -1; fullChangeFinish = -1; } finally { source.getReadWriteLock().writeLock().unlock(); } } } }