public void intervalRemoved(ListDataEvent e) { updateLayoutStateNeeded = true; /* Sync the SelectionModel with the DataModel. */ ListSelectionModel sm = getSelectionModel(); if (sm != null) { sm.removeIndexInterval(e.getIndex0(), e.getIndex1()); } }
@Override public void removeIndexInterval(int index0, int index1) { delegate.removeIndexInterval(index0, index1); }
@Override public void removeIndexInterval(int index0, int index1) { delegate.removeIndexInterval(index0, index1); }
@Override public void removeIndexInterval(int index0, int index1) { delegate.removeIndexInterval(index0, index1); }
public void removeIndexInterval(final int pIndex0, final int pIndex1) { mListSelectionModel.removeIndexInterval(pIndex0, pIndex1); handleListSelection(); }
public void removeIndexInterval(final int pIndex0, final int pIndex1) { mListSelectionModel.removeIndexInterval(pIndex0, pIndex1); handleListSelection(); }
public void removeIndexInterval(final int pIndex0, final int pIndex1) { mListSelectionModel.removeIndexInterval(pIndex0, pIndex1); handleListSelection(); }
public void removeIndexInterval(int index0, int index1) { int uindex0 = constraint.unconstraint(index0); int uindex1 = constraint.unconstraint(index1); delegate.removeIndexInterval(uindex0, uindex1); }
public void removeResource(SimpleDaysTimelineResource resource) { int resourceIndex = timelineResources.indexOf(resource); if (resourceIndex != -1) { if (selectionModel != null) { selectionModel .removeIndexInterval(resourceIndex, resourceIndex); } resource.removePropertyChangeListener(this); timelineResources.removeElementAt(resourceIndex); invalidateWidthCache(); fireResourceRemoved(new SimpleDaysTimelineResourcesModelEvent(this, resourceIndex, 0)); } }
public void intervalRemoved(ListDataEvent e) { updateLayoutStateNeeded = true; /* Sync the SelectionModel with the DataModel. */ ListSelectionModel sm = getSelectionModel(); if (sm != null) { sm.removeIndexInterval(e.getIndex0(), e.getIndex1()); } }
public void removeRessource(TimelineRessource ressource) { int ressourceIndex = timelineRessources.indexOf(ressource); if (ressourceIndex != -1) { if (selectionModel != null) { selectionModel.removeIndexInterval(ressourceIndex, ressourceIndex); } ressource.removePropertyChangeListener(this); timelineRessources.removeElementAt(ressourceIndex); invalidateWidthCache(); fireRessourceRemoved(new TimelineRessourceModelEvent(this, ressourceIndex, 0)); } }
public void intervalRemoved(ListDataEvent e) { /* Sync the SelectionModel with the DataModel. */ ListSelectionModel listSelectionModel = _list.getCheckBoxListSelectionModel(); if (listSelectionModel != null) { listSelectionModel.removeIndexInterval(e.getIndex0(), e.getIndex1()); } }
public void intervalRemoved(ListDataEvent e) { updateLayoutStateNeeded = true; /* Sync the SelectionModel with the DataModel. */ ListSelectionModel sm = getSelectionModel(); if (sm != null) { sm.removeIndexInterval(e.getIndex0(), e.getIndex1()); } }
public void removeResource(SimpleTimelineResource resource) { int resourceIndex = timelineResources.indexOf(resource); if (resourceIndex != -1) { if (selectionModel != null) { selectionModel.removeIndexInterval(resourceIndex, resourceIndex); } resource.removePropertyChangeListener(this); timelineResources.removeElementAt(resourceIndex); invalidateWidthCache(); fireResourceRemoved(new SimpleTimelineResourcesModelEvent(this, resourceIndex, 0)); } }
public void removeResource(RoulementTimelineResource resource) { int resourceIndex = timelineResources.indexOf(resource); if (resourceIndex != -1) { if (selectionModel != null) { selectionModel .removeIndexInterval(resourceIndex, resourceIndex); } resource.removePropertyChangeListener(this); timelineResources.removeElementAt(resourceIndex); invalidateWidthCache(); fireResourceRemoved(new RoulementTimelineResourcesModelEvent(this, resourceIndex, 0)); } }
public void intervalRemoved(ListDataEvent e) { updateLayoutStateNeeded = modelChanged; /* Sync the SelectionModel with the DataModel. */ ListSelectionModel sm = list.getSelectionModel(); if (sm != null) { sm.removeIndexInterval(e.getIndex0(), e.getIndex1()); } /* Repaint the entire list, from the origin of * the first removed cell, to the bottom of the * component. */ redrawList(); }
public void intervalRemoved(ListDataEvent e) { updateLayoutStateNeeded = modelChanged; /* Sync the SelectionModel with the DataModel. */ ListSelectionModel sm = list.getSelectionModel(); if (sm != null) { sm.removeIndexInterval(e.getIndex0(), e.getIndex1()); } /* Repaint the entire list, from the origin of * the first removed cell, to the bottom of the * component. */ redrawList(); }
public void intervalRemoved(ListDataEvent e) { updateLayoutStateNeeded = modelChanged; /* Sync the SelectionModel with the DataModel. */ ListSelectionModel sm = list.getSelectionModel(); if (sm != null) { sm.removeIndexInterval(e.getIndex0(), e.getIndex1()); } /* Repaint the entire list, from the origin of * the first removed cell, to the bottom of the * component. */ redrawList(); }
public void intervalRemoved(ListDataEvent e) { updateLayoutStateNeeded = modelChanged; /* Sync the SelectionModel with the DataModel. */ ListSelectionModel sm = list.getSelectionModel(); if (sm != null) { sm.removeIndexInterval(e.getIndex0(), e.getIndex1()); } /* Repaint the entire list, from the origin of * the first removed cell, to the bottom of the * component. */ redrawList(); }
@SuppressWarnings("PMD.UnusedFormalParameter") private void invertSelectionButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_invertSelectionButtonActionPerformed for (int i = 0; i < this.mainListModel.getRowCount(); i++) { if (this.mainListSelectionModel.isSelectedIndex(i)) { this.mainListSelectionModel.removeIndexInterval(i, i); } else { this.mainListSelectionModel.addSelectionInterval(i, i); } } this.mainListModel.fireTableDataChanged(); this.updateRowHeights(); }//GEN-LAST:event_invertSelectionButtonActionPerformed