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
1
vote
0 answers

JavaFX, TableView, SelectionModel and Black Magic

I have some method for work with the TableView. private void setClusterSelectionHelp() { List clusters = tableCluster.getSelectionModel().getSelectedItems(); int clusterCount = clusters.size(); for (int i = 0; i < clusterCount;…
gearquicker
  • 571
  • 4
  • 18
1
vote
1 answer

Custom TableViewSelectionModel not updating

I'm trying to write a custom TableViewSelectionModel to use with my TableView in JavaFX. I've implemented all the abstract methods, and am updating the selected items and selected cells lists. However, the actual selection being shown in the table…
resueman
  • 10,572
  • 10
  • 31
  • 45
1
vote
2 answers

JavaFX Tabpane selects 2 Tabs at the same time

I just started using JavaFX. In my little Project I got two views. The first is filled with a tabpane, while the second one contains a button to add new tabs to the tabpane. That means I need to switch between the first and the second view to add…
user3710745
1
vote
1 answer

In GWT-EXT checkboxtree how to handle single selection of tree nodes?

I'm working on checkBoxTree in GWT-EXT 2.0.3 with Java. My aim is to get a selectionModel which allows me to select(check) only one TreeNode at a time. If I select another TreeNode after selecting one then, the previous one should be unchecked. I've…
RAS
  • 8,100
  • 16
  • 64
  • 86
1
vote
1 answer

JavaFX TabPane selection wont work properly

I have two *.fxml forms with controllers. First is Window, second - ProductPane. Simplified Window.fxml is:
Ivan
  • 490
  • 1
  • 7
  • 23
1
vote
0 answers

GWT Custom DataGrid SelectionHandler not selecting subitems

finally I got a custom DataGrid running. It is the same like that from the showcase of gwt. So I got some subitems and some mainitems. But now I want to detect ClickEvents. After a while I found out, that I need a SelectionHandler. But after…
oruckdeschel
  • 88
  • 1
  • 8
1
vote
1 answer

Keeping JTable selection

I am using JTable with MULTIPLE_INTERVAL_SELECTION when I call int[] selectedRows = jtable.getSelectedRows(); I am getting array of selected rows indexes like 5,6,8 for eg. Now In case of error I want to maintain same selection. I am trying…
eatSleepCode
  • 4,427
  • 7
  • 44
  • 93
1
vote
2 answers

ExtJS 4: A grid column that displays checkbox with checkall header and can be hidden

We are using ExtJS 4.2, so that is my context for this question. I need to have a column in a grid that: Display a checkbox on each row which can be selected/deselected. It is for the purpose of tracking user selections and not synchronized with…
Haixi Liu
  • 43
  • 1
  • 2
  • 6
1
vote
2 answers

JavaFX: Any possible reason why tableView.getSelectionModel().select(0) won't work?

Can you list possible reasons why calling tableView.getSelectionModel().select(0); on a javafx.scene.control.TableView named tableView won't work? For this case, let's say I'm using cellSelectionEnabled(false) and SelectionMode.SINGLE, and…
damat-perdigannat
  • 5,780
  • 1
  • 17
  • 33
1
vote
2 answers

To select similar records from grid1(account) and grid2(group) simultaneously

I want to select similar records from grid1(account) and grid2(group) simultaneously. Scenario : For example say that if group 1 has account A and B and group 2 has account C,D and E. A user selects account D . On the back automatically, group 2…
Dev
  • 3,922
  • 3
  • 24
  • 44
1
vote
1 answer

GWT CheckboxCell hinders selection in CellTable

I discovered that if you have a GWT CellTable and add a column that contains a CheckboxCell, the selection via a SingleSelectionModel does not work anymore. This cell type does hinder the row selection. Following a code sample that demonstrates this…
Adrian
  • 281
  • 5
  • 14
1
vote
3 answers

GWT DataGrid/CellTable: Select all over multiple pages

I´m using GWT 2.4 with a DataGrid and a SimplePager along with a MultiSelectionModel. I want to implement a simple select-all-feature over all pages. I´m only able to select all visible items on the current page. What is the best way to select all…
Tony Skulk
  • 237
  • 1
  • 3
  • 11
1
vote
2 answers

How to add a custom selection Handler to a celltable

I want to add a special selection model to the celltable. Basically the function i want to have is to select a row on the table which is located on left side, a corresponding form will pop up on the right side. I know so many people will use the…
Joey
  • 2,732
  • 11
  • 43
  • 63
1
vote
2 answers

QT QItemSelectionModel to ignore columns?

I am trying to restrict selection of a tree to a particular column. I am using delegates heavily to create custom per-item-per-column behaviors, editors, etc. I was hoping I could somehow do this from a delegate by blocking an event or something…
Rafe
  • 1,937
  • 22
  • 31
0
votes
2 answers

Ext JS 4: How to get clicked cell of grid using checkbox selection model?

I've spent most of the past few days researching how to convert an application written in Ext JS 3 to Ext JS 4. Unfortunately, I see in the API documentation that the following methods/events do not exist any more in Ext JS 4: cellclick,…
scgrif32
  • 1
  • 1
  • 3