@Override public boolean isSelectionEmpty() { if (noSelection) { return true; } else { return super.isSelectionEmpty(); } }
public boolean isSelectionEmpty(){ return super.isSelectionEmpty(); //logger.warn("isSelectionEmpty method is being used - this might have performace issues"); //return false; //!aliSelectionModel.hasSelection(); }
@Override public boolean isSelectionEmpty() { return delegate.isSelectionEmpty() && super.isSelectionEmpty(); }
public void valueChanged(ListSelectionEvent e) { if (!e.getValueIsAdjusting()) { if (spectrumListSelectionModel.isSelectionEmpty()) { setSelectedSpectrumIndex(-1); } else { setSelectedSpectrumIndex(spectrumListSelectionModel.getLeadSelectionIndex()); } } } }
/** * Update ui buttons. */ public void updateActions() { queueUI.setCanStop(!queueUI.getSelectionModelQueueTable().isSelectionEmpty()); queueUI.setCanShowLog(!queueUI.getSelectionModelQueueTableDone().isSelectionEmpty()); queueUI.setCanClear(queueUI.getQueueTableDone().getModel().getRowCount()>0); queueUI.setCanRestart(!queueUI.getSelectionModelQueueTableDone().isSelectionEmpty()); }
public void valueChanged(ListSelectionEvent e) { if (!e.getValueIsAdjusting()) { if (endmemberListSelectionModel.isSelectionEmpty()) { setSelectedEndmemberIndex(-1); } else { setSelectedEndmemberIndex(endmemberListSelectionModel.getLeadSelectionIndex()); } } } }
public void valueChanged(ListSelectionEvent e) { if (!e.getValueIsAdjusting()) { if (endmemberListSelectionModel.isSelectionEmpty()) { setSelectedEndmemberIndex(-1); } else { setSelectedEndmemberIndex(endmemberListSelectionModel.getLeadSelectionIndex()); } } } }
updatingListSelectionModel = true; try { if (listSelectionModel.isSelectionEmpty()) { clearSelection(); } else {
updatingListSelectionModel = true; try { if (listSelectionModel.isSelectionEmpty()) { clearSelection(); } else {
updatingListSelectionModel = true; try { if (listSelectionModel.isSelectionEmpty()) { clearSelection(); } else {
updatingListSelectionModel = true; try { if (listSelectionModel.isSelectionEmpty()) { clearSelection(); } else {
updatingListSelectionModel = true; try { if (listSelectionModel.isSelectionEmpty()) { clearSelection(); } else {
/** * Renvoie la liste de points de <code>_p </code> contenus dans le polygone <code>_polyRef</code>. * * @return null si aucun point n'appartient a <code>_polyRef</code>. */ public static final DefaultListSelectionModel pointsSelectionnes(final GrPolyligne _poly, final GrPolygone _polyRef) { final GrBoite polyRefBoite = _polyRef.boite(); if (!polyRefBoite.intersectXY(_poly.boite())) { return null; } final int nb = _poly.nombre() - 1; GrPoint p; final DefaultListSelectionModel r = new DefaultListSelectionModel(); r.setValueIsAdjusting(true); for (int i = nb; i >= 0; i--) { p = _poly.sommet(i); if (p == null) { continue; } if (polyRefBoite.contientXY(p) && _polyRef.contientXY(p)) { r.addSelectionInterval(i, i); } } r.setValueIsAdjusting(false); return r.isSelectionEmpty() ? null : r; } }
/** * Renvoie la liste de points de <code>_p </code> contenus dans le polygone <code>_polyRef</code>. * * @return null si aucun point n'appartient a <code>_polyRef</code>. */ public static final DefaultListSelectionModel pointsSelectionnes(final GrPolygone _poly, final GrPolygone _polyolyRef) { final GrBoite polyRefBoite = _polyolyRef.boite(); if (!polyRefBoite.intersectXY(_poly.boite())) { return null; } final int nb = _poly.nombre() - 1; GrPoint p; final DefaultListSelectionModel r = new DefaultListSelectionModel(); r.setValueIsAdjusting(true); for (int i = nb; i >= 0; i--) { p = _poly.sommet(i); if (p == null) { continue; } if (polyRefBoite.contientXY(p) && _polyolyRef.contientXY(p)) { r.addSelectionInterval(i, i); } } r.setValueIsAdjusting(false); return r.isSelectionEmpty() ? null : r; }