Hi,
can I know from the backing code where the cursor in the TextArea is
placed? Eg to extract the text that is in front of the cursor, and after it.
Also, is it possible to format a text to be displayed differently than the
backend source holds the text? Eg if I have a comma-separated list,
can I know from the backing code where the cursor in the TextArea is
placed? Eg to extract the text that is in front of the cursor, and after
it.
TextArea.getCursorPos() ?
Also, is it possible to format a text to be displayed differently than the
backend source holds the text? Eg if
Ups, I missed the getCurserPos(). Thanks!
Anyways: yes I know I can modify the box text back and forth. But I'm more
looking in some type in Formatter or something like that. Just like eg
Numbers or Dates can be displayed differently in the UI though their value
stays the same in the backend.
You can use com.google.gwt.text.shared.Renderer/Parser or roll your own
Formatter to implement the back and forth logic and then you could also
create a custom TextArea that requires a Renderer/Parser or your custom
Formatter.
Shouldn't be too difficult.
-- J.
--
You received this message
Is there any function to return the XY Pixel coordinates for the cursor? Or
at least the pixel position inside the widget like TextArea so that I could
calculate the absolute XY?
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit group.
To