| Modifier and Type | Class and Description |
|---|---|
static interface |
Bindings.Thunk
Used to defer the creation of a widget.
|
| Constructor and Description |
|---|
Bindings() |
| Modifier and Type | Method and Description |
|---|---|
static void |
bindDown(Value<Boolean> value,
ToggleButton toggle)
Binds the specified toggle button to the supplied boolean value.
|
static void |
bindEnabled(Value<Boolean> value,
FocusWidget... targets)
Binds the enabledness state of the target widget to the supplied boolean value.
|
static <T extends HasMouseOverHandlers & HasMouseOutHandlers> |
bindHovered(Value<Boolean> value,
T... targets)
Binds the hovered state of the supplied target widgets to the supplied boolean value.
|
static void |
bindLabel(Value<String> value,
HasText target)
Binds the specified string value to the supplied text-having widget.
|
static void |
bindStateStyle(Value<Boolean> value,
String onStyle,
String offStyle,
Widget... targets)
Configures either `onStyle` or `offStyle` on the supplied target widgets depending on the
state of the supplied boolean `value`.
|
static void |
bindText(Value<String> value,
TextBoxBase text)
Binds the contents of the supplied text box to the supplied string value.
|
static void |
bindVisible(Value<Boolean> value,
Bindings.Thunk thunk)
Binds the visible state of a to-be-created widget to the supplied boolean value.
|
static void |
bindVisible(Value<Boolean> value,
Widget... targets)
Binds the visible state of the target widget to the supplied boolean value.
|
static ClickHandler |
makeToggler(Value<Boolean> value)
Returns a click handler that toggles the supplied boolean value when clicked.
|
public static void bindEnabled(Value<Boolean> value, FocusWidget... targets)
public static void bindVisible(Value<Boolean> value, Widget... targets)
public static void bindVisible(Value<Boolean> value, Bindings.Thunk thunk)
public static <T extends HasMouseOverHandlers & HasMouseOutHandlers> void bindHovered(Value<Boolean> value, T... targets)
public static void bindDown(Value<Boolean> value, ToggleButton toggle)
public static void bindLabel(Value<String> value, HasText target)
public static void bindText(Value<String> value, TextBoxBase text)
public static ClickHandler makeToggler(Value<Boolean> value)
public static void bindStateStyle(Value<Boolean> value, String onStyle, String offStyle, Widget... targets)
onStyle - the style name to be applied when the value is true, or null.offStyle - the style name to be applied when the value is false, or null.Copyright © 2013. All Rights Reserved.