My favorites | Sign in
Project Home Downloads Issues Source
Project Information
Members
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.


Demos

AutoSizingTextArea

An 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.

Demo | Source

GroupedListBox

A grouped listbox that uses optgroup tags to group options in a list. Added in gwt-traction 1.3. Substantial performance improvements in 1.4.

Demo | Source

ColorAnimation

A simple animation that can be used for color or backgroundColor and supports opacity animation.

Demo | Source

OpacityAnimation

A simple animation for opacity.

Demo | Source

TractionDialogBox

A subclass of DialogBox that adds a Close Icon and positions it using css. It also implements HasOpenHandlers.

Demo | Source

SingleListBox

A subclass of ListBox for a single select that implements HasValue<String> (which includes HasValueChangeHandlers<String>).

Demo | Source

Viewport

Provides browser window focus/blur events. We use this to accumulate an unread message count when the browser window is not focused.

Demo | Source

UTCDateBox

A 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.

Demo | Source

RawHistory

RawHistory 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

See the Javadoc

Powered by Google Project Hosting