final DefaultListSelectionModel defaultListSelectionModel = new DefaultListSelectionModel(); treetable.setSelectionModel(defaultListSelectionModel);
DefaultListSelectionModel searchResultSelectionModel = new DefaultListSelectionModel(); searchResultSelectionModel .setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
public ListSelectionModel getTableSelectionModel() { if (selectionModel_ == null) { selectionModel_= new DefaultListSelectionModel(); } return selectionModel_; }
/** * Creates a new default list selection model. */ protected ListSelectionModel createSelectionModel() { return new DefaultListSelectionModel(); }
/** * Creates a new default list selection model. */ protected ListSelectionModel createSelectionModel() { return new DefaultListSelectionModel(); }
/** * Create a new JToggleGroup. * @param type the toggle button type to use, one of {@link #CHECKBOX} * or {@link #RADIO} * @param data the list model data backing the toggle group */ public JToggleGroup(int type, ListModel data) { this(type, data, new DefaultListSelectionModel()); }
/** * Creates a new default list selection model. */ protected ListSelectionModel createSelectionModel() { return new DefaultListSelectionModel(); }
protected void createSelectionModel() { selectionModel = new DefaultListSelectionModel(); $objectMap.put("selectionModel", selectionModel); selectionModel.addListSelectionListener((javax.swing.event.ListSelectionListener) jaxx.runtime.Util.getEventListener(javax.swing.event.ListSelectionListener.class, "valueChanged", $JPanel0, "doValueChanged__on__selectionModel")); }
@Override public final void setSelectionModel(ListSelectionModel selectionModel) { super.setSelectionModel(new DefaultListSelectionModel()); }
protected void createSelectionModel() { $objectMap.put("selectionModel", selectionModel = new DefaultListSelectionModel()); selectionModel.addListSelectionListener(JAXXUtil.getEventListener(ListSelectionListener.class, "valueChanged", this, "doValueChanged__on__selectionModel")); }
protected void createSelectionModel() { $objectMap.put("selectionModel", selectionModel = new DefaultListSelectionModel()); selectionModel.addListSelectionListener(JAXXUtil.getEventListener(ListSelectionListener.class, "valueChanged", this, "doValueChanged__on__selectionModel")); }
protected void createSelectionModel() { $objectMap.put("selectionModel", selectionModel = new DefaultListSelectionModel()); selectionModel.addListSelectionListener(JAXXUtil.getEventListener(ListSelectionListener.class, "valueChanged", this, "doValueChanged__on__selectionModel")); }
/** Creates a new instance of TaskModel */ public TaskModel() { selectionModel = new DefaultListSelectionModel(); model = new DefaultListModel(); dataListeners = new LinkedHashSet<ListDataListener>(); selectionListeners = new LinkedHashSet<ListSelectionListener>(); TaskListener list = new TaskListener(); model.addListDataListener(list); selectionModel.addListSelectionListener(list); }
protected void createSelectionModelQueueTable() { $objectMap.put("selectionModelQueueTable", selectionModelQueueTable = new DefaultListSelectionModel()); selectionModelQueueTable.addListSelectionListener(JAXXUtil.getEventListener(ListSelectionListener.class, "valueChanged", this, "doValueChanged__on__selectionModelQueueTable")); }
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 FudaaDjaFormListener(final FudaaReportFrameController _controller) { super(); controller_ = _controller; controller_.grid_.addGridListener(this); selectionListener_ = new HashSet(); model_ = new DefaultListSelectionModel(); updateFromDja(); model_.addListSelectionListener(this); }
protected ListSelectionModel saveRowsSelection() { ListSelectionModel savedSelection = new DefaultListSelectionModel(); for (int viewRowIndex = rowsSelectionModel.getMinSelectionIndex(); viewRowIndex <= rowsSelectionModel.getMaxSelectionIndex(); viewRowIndex++) { if (rowsSelectionModel.isSelectedIndex(viewRowIndex)) { // We have to act upon view coordinates here! savedSelection.addSelectionInterval(viewRowIndex, viewRowIndex); } } return savedSelection; }
protected ListSelectionModel saveColumnsSelection() { ListSelectionModel savedSelection = new DefaultListSelectionModel(); for (int viewColumnIndex = columnsSelectionModel.getMinSelectionIndex(); viewColumnIndex <= columnsSelectionModel.getMaxSelectionIndex(); viewColumnIndex++) { if (columnsSelectionModel.isSelectedIndex(viewColumnIndex)) { // We have to act upon view coordinates here! savedSelection.addSelectionInterval(viewColumnIndex, viewColumnIndex); } } return savedSelection; }
protected void unconfigureTable() { table.setTableHeader(null); table.setModel(new DefaultTableModel()); table.setColumnModel(new DefaultTableColumnModel()); table.setSelectionModel(new DefaultListSelectionModel()); table.setUI(null); }
public ListSelectionModel saveSelection() { ListSelectionModel cacheSelection = new DefaultListSelectionModel(); if (viewSelection != null) { for (int irow = viewSelection.getMinSelectionIndex(); irow <= viewSelection.getMaxSelectionIndex(); irow++) { if (viewSelection.isSelectedIndex(irow)) { int modelRow = convertRowIndexToModel(irow); cacheSelection.addSelectionInterval(modelRow, modelRow); } } } return cacheSelection; }