Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 GWT/GXT。我正在使用可编辑网格。它有 3 列。如果用户使用 TAB 从第一列导航到另一列,则该列中的文本应选择如下(蓝色背景的单元格仅用于文本而不是整个单元格),以便我可以使用 Delete 或退格轻松删除单元格的文本没有再次选择文本的按钮。这里我的问题是如何模拟鼠标文本选择?
谢谢!
final TextField<String> text = new TextField<String>(); text.setSelectOnFocus(true); column.setEditor(new CellEditor(text)); configs.add(column); //ColumnConfig