Questions tagged [selectionmodel]

Abstract class used by UI controls to provide a consistent API for maintaining selection. Used in Java(FX), GWT and other libraries / languages, too.

A SelectionModel is Model used to provide an API for maintaining data and/or visual item selection. The term SelectionModel was primarily established in the Java environment and now is used as a generally admitted term for abstract kinds of models used for data / item selection.

Resources

Java

JavaScript

80 questions
0
votes
1 answer

Why Jlist is selecting index 0 even when the item is not present there

Why Jlist is selecting index 0 even when the item is not present there. Here is my code I have created a JList lst and set its content as a vector vct which consists of objects of class people which when invoked toString() provides with details of…
0
votes
1 answer

Invert selection on QListView

I have a QListView and I have already set a model to it. How can I implement a method for invert selection? I have already tried making a new QItemSelection that contains all the items of my model in order to call…
willy
  • 487
  • 5
  • 21
0
votes
1 answer

nattable multiple row selection

I am using NatTable and I want to select some rows in my table. Additional I want to select some other rows after this (CTRL + left mouse-click). There is no problem with the first selection, but when I try to select some additional rows, my first…
Ketch_up10
  • 17
  • 4
0
votes
1 answer

Javafx, using tableview with database

I'm pretty new to JavaFX, and also not incredibly familiar with using databases in Java in general, but I have to convert an existing JavaFX program I made to remove a list that is populating a TableView table and replace it with items from a…
Hunter Noman
  • 1
  • 1
  • 7
0
votes
2 answers

Strange behaviour of JTable when selecting rows

I use a JTable inside a JScrollPane with a custom TableModel, cell-/column-selection disabled and only row-selection enabled (single selection). If I select a row, from time to time, the value in the cell on which I perform the click, appears in the…
0
votes
0 answers

Select first/last clears anchor information - MultipleSelectionModel

I have table with table.getSelectionModel().setSelectionMode(SelectionMode.MULTIPLE);. I need to implement go last/first row of a TableView. I used table.scrollTo(ind); table.getSelectionModel().clearAndSelect(ind). This would scroll to first row…
Krzysiek
  • 11
  • 3
0
votes
2 answers

how can i add a slection model checkbox in angular-table

Angular Table creation code with input type checkbox. angular.module("tableApp",[]).controller('tableAppCtrl', ['$scope', function($scope) { $scope.titleString="Table Demo"; $scope.prodDataTable = [{ "productType": "A", …
Pawan Pandey
  • 338
  • 1
  • 3
  • 16
0
votes
0 answers

Can't keep extjs dataview multiselection when navigating between windows

I have implemented an Ext.view.View (xtype: dataview) with ExtJs 5.0 that supports multiselection. When I navigate away from the view to another desktop window (or browser tab), then navigate back to it, the selected items are reset and only the…
Mike Fuchs
  • 12,081
  • 6
  • 58
  • 71
0
votes
2 answers

ExtJS first grid row select and deselect

Is it normal that when I have a grid and I select the first row, then I try to select another row it actually deselects the first row without selecting the new one? It seems like a feature to me 'cause it happens to all my grids even with the…
PentaKon
  • 4,139
  • 5
  • 43
  • 80
0
votes
1 answer

Extjs4 Ext.selection.CheckboxModel with Ext.grid.property.Grid

First of all, I am using Extjs 4.1. I have a grid with property grid and I want to add a column of checkbox into the grid. The property grid code is as follows: var grid = Ext.create('Ext.grid.property.Grid', { tbars:[], …
Seng Zhe
  • 613
  • 1
  • 11
  • 21
0
votes
0 answers

Qt slot for selectionChanged selectedIndexes DEBUG_ASSERION_FAILED

I've got a problem with my Qt 4.8 slot which is connected that way: connect(ui->objectTree->selectionModel(), SIGNAL(selectionChanged(const QItemSelection&, const QItemSelection&)), this, SLOT(syncGuiWithTreeSelection(const QItemSelection&, const…
rherzog
  • 51
  • 9
0
votes
1 answer

Extjs selectionmodel, getselection bug with nested models

I'm having a problem getting selected record, here are my nested Models: Ext.define('my.Address', { extend: 'Ext.data.Model', idProperty: '__guid__', fields: ['title', 'latitude', 'longitude', '__guid__'] }); Ext.define('my.POS', { …
ivy
  • 210
  • 1
  • 2
  • 14
0
votes
2 answers

Celltable onBrowserEvent is not getting called

I have written below code in a celltable constructor public ViewSubscriptionsCellTable(CellTableResource resource, final WidgetListener clickListener) { super(15, resource); this.resource = resource; …
sujikin
  • 351
  • 3
  • 11
0
votes
1 answer

GWT CellTable SelectionModel can not deselect item after editing

Hello I have a Contact class with informations which i show in a CellTable. The CellTable has a DataListProvider, MultiSelectionModel and KeyProvider which checks the id of the Contact. DataListProvider and CellTable have the same KeyProvider. if i…
Ser Yoga
  • 466
  • 1
  • 6
  • 18
0
votes
1 answer

SingleSelectionModel - hides the other tabs

I need to start my application with an open tab (selected), I have the code SingleSelectionModel selectionModel = tabPane.getSelectionModel(); selectionModel.select(tab); works but it hides the other tabs existing. they also tried to use …
Perco
  • 160
  • 1
  • 18