Disable Selection for GWT CellList

烂漫一生 提交于 2020-01-16 01:06:26

问题


I'm trying to build a website similar to kayak.com, at least with respect to how it displays and filters results. I'm using GWT and have built a Composite widget which uses a CellList to display the results.

I'm not happy with how the cells are selectable. I've tried setting the SelectionModel of the CellList to an instance of NoSelectionModel, but that doesn't seem to work. Really, I just want to display some text and a few hyperlinks in each cell and only give the user visual feedback (change the mouse pointer, etc.) when the mouse is over a hyperlink.


回答1:


See if this works for you:

http://groups.google.com/group/google-web-toolkit/browse_thread/thread/2327336e09ab29d1




回答2:


Use

cellList.setKeyboardSelectionPolicy(KeyboardSelectionPolicy.DISABLED);

to disable selection on a CellList.



来源:https://stackoverflow.com/questions/5456273/disable-selection-for-gwt-celllist

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!