unknown style in CellTable and scheduledCommand not work

36 views
Skip to first unread message

tong123123

unread,
Jul 9, 2012, 2:22:04 AM7/9/12
to google-we...@googlegroups.com
1) when user press a Search button, a popupPanel is prompted and I use scheduledCommand to set focus on the upper CellTable (the scheduledCommand is placed in a panel calling the popupPanel, not inside popupPanel), but still no success, the CellTable does not receive focus.

2) the result is shown as page1 as attached, then I press the forward button in simpepager, the celltable display next page, then I press the sixth record in the CellTable, from page3 as attached, the first row become pale yellow in color!! why would this happen?
page1.png
page2.png
page3.png
scheduledCommand.txt

Thomas Broyer

unread,
Jul 9, 2012, 4:05:40 AM7/9/12
to google-we...@googlegroups.com
That "pale yellow" is the style for the currently "keyboard-selected" line.
Maybe tweak your KeyboardSelectionPolicy.

tong123123

unread,
Jul 9, 2012, 4:53:05 AM7/9/12
to google-we...@googlegroups.com
My KeyboardSelectionPolicy is set to KeyboardSelectionPolicy.BOUND_TO_SELECTION.

in fact, in page 3 lower part, the detail information is come from
singleSelectionModel.getSelectedObject();
and the upper part CellTable (with pale yellow style), it is attached to the same SingleSelectionModel.
table.setSelectionModel(singleSelectionMdoel);

so in attached page3,
the lower part, the log date is 2012-Jul-06 15:30:12.347, which is  equal to the blue highlighted record in upper celltable, and mean the selectionmodel.selectedObject is really point at the sixth record.
and the keyboardSelectionPolicy is BOUND_TO_SELECTION, so why the first row is currently "keyboard-selected" line?




Thomas Broyer

unread,
Jul 9, 2012, 5:12:15 AM7/9/12
to google-we...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages