public class Selector<T> extends Control
| Modifier and Type | Field and Description |
|---|---|
protected Action |
onSelection |
configurations| Modifier and Type | Method and Description |
|---|---|
Selector<T> |
allowNull(boolean nullValue) |
<M> Binding<M,Selector<T>,ListBuilder<T>> |
bindItems(ObservableProperty<M> modelObservable)
Binds the list of items in this Combo to an
ObservableProperty |
Binding<?,Selector<T>,ListBuilder<T>> |
bindItemsToProperty(String modelProperty)
Binds the list of items in this Combo with a property in the container model.
|
protected ControlBuilder |
createBuilder(PanelBuilder container) |
ObservableItems<Selector<T>,T,ListBuilder<T>> |
items() |
Selector<T> |
onSelection(Action onSelection) |
Selector<T> |
setContents(List<T> options,
String descriptionProperty)
Deprecated.
You should probably be binding items to a property
instead of just hardcoding a list.
|
background, bindBackground, bindEnabled, bindEnabledToProperty, bindForeground, bindValue, bindValueToProperty, bindVisible, bindVisibleToProperty, enabled, foreground, setHeight, setWidth, tooltip, value, visibleaddBinding, addBinding, addConfiguration, appendYourselfTo, configure, getContainer, getContainerModelObject, nextCaption, showOn, toStringprotected Action onSelection
public Selector(Container container)
public Selector<T> setContents(List<T> options, String descriptionProperty)
public Binding<?,Selector<T>,ListBuilder<T>> bindItemsToProperty(String modelProperty)
modelProperty - The name of the property to bind.Binding object that allows to further configure this binding.public <M> Binding<M,Selector<T>,ListBuilder<T>> bindItems(ObservableProperty<M> modelObservable)
ObservablePropertymodelObservable - An ObservableProperty to bind.Binding object that allows to further configure this binding.public ObservableItems<Selector<T>,T,ListBuilder<T>> items()
protected ControlBuilder createBuilder(PanelBuilder container)
createBuilder in class WidgetCopyright © 2015 Uqbar Project. All rights reserved.