treetable.setSelectionModel(defaultListSelectionModel); defaultListSelectionModel.setSelectionMode(SINGLE_SELECTION); defaultListSelectionModel.addListSelectionListener(new ListSelectionListener() { @Override
DefaultListSelectionModel searchResultSelectionModel = new DefaultListSelectionModel(); searchResultSelectionModel .setSelectionMode(ListSelectionModel.SINGLE_SELECTION); Document searchInput = new PlainDocument();
@Override public void setSelectionMode(int selectionMode) { if (selectionMode == NO_SELECTION) { noSelection = true; } else { noSelection = false; super.setSelectionMode(selectionMode); } }
public SequenceListSelectionModel(AlignmentSelectionModel aliSelectionModel) { this.aliSelectionModel = aliSelectionModel; super.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION); }
public void setSelectionMode(int selectionMode) { super.setSelectionMode(selectionMode); } public int getSelectionMode() {
@Override public void setSelectionMode(int selectionMode) { super.setSelectionMode(selectionMode); delegate.setSelectionMode(selectionMode); }
SAMSpectralFormModel(AppContext appContext, SpectralAngleMapperForm samForm) { this.appContext = appContext; this.samForm = samForm; spectrumListModel = new DefaultListModel<>(); spectrumListSelectionModel = new DefaultListSelectionModel(); spectrumListSelectionModel.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION); spectrumListSelectionModel.addListSelectionListener(new EndmemberListSelectionListener()); propertyChangeSupport = new PropertyChangeSupport(this); }
public SorterTableColumnModel(Sortables[] columnHeaders) { MainFrame mainFrame = MainFrame.getInstance(); int x = 0; for (Sortables c : columnHeaders) { if (!c.isAvailable(mainFrame)) { continue; } shown.add(c); TableColumn tc = makeTableColumn(x, c); columnList.add(tc); x++; } dlsm = new DefaultListSelectionModel(); dlsm.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); orderUpdate(); check(); }
public void createFrom(SorterTableColumnModel other) { if (this.getOrder().equals(other.getOrder())) { return; } columnList.clear(); for (int x = 0; x < order.size(); x++) { for (TableColumnModelListener l : watchers) { l.columnRemoved(new TableColumnModelEvent(this, x, x)); } } // First, empty showOrder shown.clear(); MainFrame mainFrame = MainFrame.getInstance(); int x = 0; for (Sortables c : other.order) { if (!c.isAvailable(mainFrame)) { continue; } shown.add(c); TableColumn tc = makeTableColumn(x, c); columnList.add(tc); for (TableColumnModelListener l : watchers) { l.columnAdded(new TableColumnModelEvent(this, x, x)); } x++; } dlsm = new DefaultListSelectionModel(); dlsm.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); orderUpdate(); }
selectionModel.setSelectionMode( ListSelectionModel.SINGLE_SELECTION );
public EndmemberFormModel(AppContext appContext) { this.appContext = appContext; endmemberListModel = new DefaultListModel<>(); endmemberListSelectionModel = new DefaultListSelectionModel(); endmemberListSelectionModel.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); endmemberListModel.addListDataListener(new EndmemberListDataListener()); endmemberListSelectionModel.addListSelectionListener(new EndmemberListSelectionListener()); endmemberDiagram = new Diagram(); endmemberDiagram.setXAxis(new DiagramAxis("Wavelength", "")); endmemberDiagram.setYAxis(new DiagramAxis("Radiation", "")); endmemberDiagram.setDrawGrid(false); propertyChangeSupport = new PropertyChangeSupport(this); }
public EndmemberFormModel(AppContext appContext) { this.appContext = appContext; endmemberListModel = new DefaultListModel(); endmemberListSelectionModel = new DefaultListSelectionModel(); endmemberListSelectionModel.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); endmemberListModel.addListDataListener(new EndmemberListDataListener()); endmemberListSelectionModel.addListSelectionListener(new EndmemberListSelectionListener()); endmemberDiagram = new Diagram(); endmemberDiagram.setXAxis(new DiagramAxis("Wavelength", "")); endmemberDiagram.setYAxis(new DiagramAxis("Radiation", "")); endmemberDiagram.setDrawGrid(false); propertyChangeSupport = new PropertyChangeSupport(this); }
m.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); m.setLeadAnchorNotificationEnabled(false); list.setSelectionModel(m);
m.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); m.setLeadAnchorNotificationEnabled(false); list.setSelectionModel(m);