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.
我在 SmartGWT 中使用 TextItem,并且我想在用户单击某个按钮时更新该文本字段中的光标位置。那可能吗?
一般来说,SmartGWT 中是否存在不属于表单包的文本字段小部件?
谢谢!
使用 TextItem.setSelectionRange() 与 start 和 end 相同。
http://www.smartclient.com/smartgwtee/javadoc/com/smartgwt/client/widgets/form/fields/TextItem.html#setSelectionRange%28int,%20int%29