Hi Greg,
done some tests, here some info:
TextArea: run text_area_test.bxml
- usage of custom colors, Ok
- Home / End keys move cursor to Start and End of the current line, right
- page Up / Down, moved scrollbar but not the cursor, and if Not editable
elements this is good, but in editable elements would be better to have the
cursor go the the new position
- after playing a little with chars in the demo, if I delete some char (for
example to have less lines shown) and then I try Start / end other times, I
get this:
java.lang.IndexOutOfBoundsException
at org.apache.pivot.wtk.TextArea.getCharacterAt(TextArea.java:870)
at
org.apache.pivot.wtk.skin.TextAreaSkin.keyPressed(TextAreaSkin.java:865)
at
org.apache.pivot.wtk.Component$ComponentKeyListenerList.keyPressed(Component.java:526)
at org.apache.pivot.wtk.Component.keyPressed(Component.java:2772)
at
org.apache.pivot.wtk.ApplicationContext$DisplayHost.processKeyEvent(ApplicationContext.java:1198)
at java.awt.Component.processEvent(Component.java:6044)
at
org.apache.pivot.wtk.ApplicationContext$DisplayHost.processEvent(ApplicationContext.java:667)
at java.awt.Component.dispatchEventImpl(Component.java:4630)
at java.awt.Component.dispatchEvent(Component.java:4460)
at
java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1850)
at
java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:712)
at
java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:990)
at
java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:855)
at
java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:676)
at java.awt.Component.dispatchEventImpl(Component.java:4502)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Window.dispatchEventImpl(Window.java:2478)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
TextPane: run TextPaneDemo.java
- usage of custom colors, KO, the background is always white (and probably
the default foreground color of the text is always black)
- Home / End keys move cursor to Start and End of all the text ... probably
would be better to do as in TextArea (start / end of the current line)
- also here page Up / Down, moved scrollbar but not the cursor, and if Not
editable elements this is good, but in editable elements would be better to
have the cursor go the the new position
As a general note, I see that (at least in Windows) the default shortcut to
go to the first character of a (maybe long, multi-line) text in <CTRL>
<Home>, and to go the the last character is <CTRL><End>, but nothing seems
to handle this, is there a reason (not multi-platform behavior for example)
?
With long (focusable, with a cursor inside, also if not editable) could be
really useful.
Comments ?
I'm sorry to not give you some more info but I haven't time to look at the
code ...
As, sorry a last thing I've seen some time ago, probably this is wanted or
not handled because it's a Demo:
in the Suggestion Demo, anytime I delete a previous char (using the
BACKSPACE key), the query is not repeated (with all remaining chars), this
is wanted ? Or there is a programmable timeout to do this ?
Thanks a lot.
Bye,
Sandro
--
View this message in context:
http://apache-pivot-developers.417237.n3.nabble.com/New-TextArea-component-is-ready-for-testing-tp1457209p1476581.html
Sent from the Apache Pivot - Developers mailing list archive at Nabble.com.