@Override public void selectionChange(SelectionChangeEvent evt) { int leadingIndex = evt.getLeadingIndex(); IValueConnector selectedModelConnector = null; if (leadingIndex >= 0) { IValueConnector selectedViewConnector = connector.getChildConnector(leadingIndex); if (selectedViewConnector != null) { selectedModelConnector = selectedViewConnector.getModelConnector(); } } getMvcBinder().bind(rowConnectorPrototype, selectedModelConnector); } });
selectionModel.addSelectionInterval(nextRangeMin, nextRangeMax); if (evt.getLeadingIndex() >= 0) { Rectangle visibleCell = null; if (collectionComponent instanceof JTable) { visibleCell = ((JTable) collectionComponent).getCellRect( evt.getLeadingIndex(), 0, true); } else if (collectionComponent instanceof JList) { visibleCell = ((JList<?>) collectionComponent).getCellBounds( evt.getLeadingIndex(), evt.getLeadingIndex());
/** * {@inheritDoc} */ @Override public void selectionChange(SelectionChangeEvent evt) { boolean sourceIsScl = evt.getSource() instanceof ISelectionChangeListener; if (sourceIsScl && selectionChangeSupport == null) { selectionChangeSupport = new SelectionChangeSupport(this); } if (sourceIsScl) { selectionChangeSupport.addInhibitedListener((ISelectionChangeListener) evt.getSource()); } try { setSelectedIndices(evt.getNewSelection(), evt.getLeadingIndex()); } finally { if (sourceIsScl) { selectionChangeSupport.removeInhibitedListener((ISelectionChangeListener) evt.getSource()); } } }
/** * {@inheritDoc} */ @Override public void selectionChange(SelectionChangeEvent evt) { boolean isSourceScl = evt.getSource() instanceof ISelectionChangeListener; if (isSourceScl && selectionChangeSupport == null) { selectionChangeSupport = new SelectionChangeSupport(this); } if (isSourceScl) { selectionChangeSupport .addInhibitedListener((ISelectionChangeListener) evt.getSource()); } try { setSelectedIndices(evt.getNewSelection(), evt.getLeadingIndex()); } finally { if (isSourceScl) { selectionChangeSupport .removeInhibitedListener((ISelectionChangeListener) evt.getSource()); } } }
.getState()); parentState.setSelectedIndices(evt.getNewSelection()); parentState.setLeadingIndex(evt.getLeadingIndex()); RemoteSelectionCommand parentCommand = new RemoteSelectionCommand(); parentCommand.setTargetPeerGuid(parentState.getGuid()); .getState()); compositeValueState.setSelectedIndices(evt.getNewSelection()); compositeValueState.setLeadingIndex(evt.getLeadingIndex()); RemoteSelectionCommand command = new RemoteSelectionCommand(); command.setTargetPeerGuid(compositeValueState.getGuid());