|
Project Information
Links
|
While building our new GWT-based Proteus skin for Traction TeamPage 5.0, we created some widgets and utilities that we thought other developers would find useful. Most of these are pretty simple, but we hope they save other developers some time. As we factor out code that can be shared with others, we'll add more to this project. March 2, 2012 gwt-traction 1.4 has substantial performance improvements to GroupedListBox, proper IE9 support for all components, and a tweak to the AutoSizingTextArea demo for IE. DemosAutoSizingTextAreaAn auto-sizing text area that grows when content is added. It supports styling the textarea with css and minimum and maximum heights. Note: This was added to gwt-traction 1.2. It requires gwtquery and is in a separate com.tractionsoftware.gwt.user.AutoSizingTextArea module that references that dependency. GroupedListBoxA grouped listbox that uses optgroup tags to group options in a list. Added in gwt-traction 1.3. Substantial performance improvements in 1.4. ColorAnimationA simple animation that can be used for color or backgroundColor and supports opacity animation. OpacityAnimationA simple animation for opacity. TractionDialogBoxA subclass of DialogBox that adds a Close Icon and positions it using css. It also implements HasOpenHandlers. SingleListBoxA subclass of ListBox for a single select that implements HasValue<String> (which includes HasValueChangeHandlers<String>). ViewportProvides browser window focus/blur events. We use this to accumulate an unread message count when the browser window is not focused. UTCDateBoxA Composite that wraps a GWT DateBox and implements HasValue<Long> where the value is always the time at midnight in UTC on the date picked. We have users around the world choosing dates and needed the DateBox to work consistently in all time zones. RawHistoryRawHistory is a different implementation of History that doesn't encode/decode the history token (hash). We experienced many issues with the encoding of the History token and decided to write an alternate implementation that didn't attempt to encode/decode. Instead, our other code that sets and interprets the history token handles the encoding and decoding. This deserves more explanation and I will try to add some examples soon. NOTE: This is not enabled by adding com.tractionsoftware.gwt.user.User. If you would like to use RawHistory, you must inherit com.tractionsoftware.gwt.history.RawHistory Documentation |