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() を使用します。
http://www.smartclient.com/smartgwtee/javadoc/com/smartgwt/client/widgets/form/fields/TextItem.html#setSelectionRange%28int,%20int%29