Java 类com.vaadin.ui.AbstractSingleSelect 实例源码

项目:easybinder    文件:BuildAndBindTest.java   
@SuppressWarnings("unchecked")
@BeforeClass
public static void setup() {
    binder.buildAndBind("flightId");

    form.airline = (TextField) binder.getFieldForProperty("flightId.airline").get();
    form.flightNumber = (TextField) binder.getFieldForProperty("flightId.flightNumber").get();
    form.flightSuffix = (TextField) binder.getFieldForProperty("flightId.flightSuffix").get();
    form.date = (DateField) binder.getFieldForProperty("flightId.date").get();
    form.legType = (AbstractSingleSelect<LegType>) binder.getFieldForProperty("flightId.legType").get();
    form.sbt = (DateTimeField) binder.getFieldForProperty("sbt").get();
    form.ebt = (DateTimeField) binder.getFieldForProperty("ebt").get();
    form.abt = (DateTimeField) binder.getFieldForProperty("abt").get();
    form.gate = (TextField) binder.getFieldForProperty("gate").get();
    form.canceled = (CheckBox) binder.getFieldForProperty("canceled").get();
}
项目:vaadin-fluent-api    文件:FluentAbstractSingleSelect.java   
@Override
@SuppressWarnings("unchecked")
public default THIS withValueChangeListener(HasValue.ValueChangeListener<VALUE> listener) {
    ((AbstractSingleSelect<VALUE>) this).addValueChangeListener(listener);
    return (THIS) this;
}
项目:vaadin-fluent-api    文件:FluentAbstractSingleSelect.java   
/**
 * Sets the current selection to the given item or clears selection if given
 * {@code null}.
 *
 * @param item
 *            the item to select or {@code null} to clear selection
 * @return this for method chaining
 * @see AbstractSingleSelect#setSelectedItem(Object)
 */
@SuppressWarnings("unchecked")
public default THIS withSelectedItem(VALUE item) {
    ((AbstractSingleSelect<VALUE>) this).setSelectedItem(item);
    return (THIS) this;
}
项目:vaadin-fluent-api    文件:FluentAbstractSingleSelect.java   
/**
 * Adds a selection listener to this select. The listener is called when the
 * selection is changed either by the user or programmatically.
 *
 * @param listener
 *            the selection listener, not null
 * @return this for method chaining
 * @see AbstractSingleSelect#addSelectionListener(SingleSelectionListener)
 */
@SuppressWarnings("unchecked")
public default THIS withSelectionListener(SingleSelectionListener<VALUE> listener) {
    ((AbstractSingleSelect<VALUE>) this).addSelectionListener(listener);
    return (THIS) this;
}