T - Value typeC - Input typeB - Concrete builder typepublic interface InputBuilder<T,C extends Input<T>,B extends InputBuilder<T,C,B>> extends InputConfigurator<T,B>
Input instances.InputConfigurator.BaseFieldConfigurator<T>ComponentConfigurator.BaseComponentConfigurator| Modifier and Type | Method and Description |
|---|---|
Field<T> |
asField()
Build the input component as a
HasValue component. |
C |
build()
Build and returns the
Input instance. |
B |
deferLocalization()
Instructs the builder to resolve any message localization (for example component caption and description) only
after the component is attached to parent layout.
|
B |
dragSource(Consumer<com.vaadin.ui.dnd.DragSourceExtension<? extends com.vaadin.ui.AbstractComponent>> configurator)
Makes the component a drag source.
|
B |
dropTarget(BiConsumer<com.vaadin.ui.dnd.DropTargetExtension<? extends com.vaadin.ui.AbstractComponent>,C> configurator)
Makes the component a drop target.
|
ValidatableInputBuilder<T,ValidatableInput<T>> |
validatable()
Build a
ValidatableInput input component. |
locale, readOnly, tabIndex, withValue, withValueChangeListenercaption, caption, caption, captionAsHtml, description, description, description, disabled, errorHandler, fullHeight, fullSize, fullWidth, height, height, heightUndefined, hidden, icon, id, notVisible, primaryStyleName, replaceStyleName, responsive, sizeUndefined, styleName, width, width, widthUndefined, withAttachListener, withContextClickListener, withData, withDetachListener, withShortcutListenerB dragSource(Consumer<com.vaadin.ui.dnd.DragSourceExtension<? extends com.vaadin.ui.AbstractComponent>> configurator)
configurator can be used to configure the drag
source using DragSourceExtension, allowing for example to set the drag effect, to set the transferred
data or to register drag start/end listeners.configurator - Consumer to configure the drag sourceB dropTarget(BiConsumer<com.vaadin.ui.dnd.DropTargetExtension<? extends com.vaadin.ui.AbstractComponent>,C> configurator)
configurator can be used to configure the drop
target behaviour using DragSourceExtension, allowing for example to control when the drop is acceptable
and then react to the drop event.configurator - BiConsumer to configure the drop target, providing also the component that will be built by
this builderB deferLocalization()
ValidatableInputBuilder<T,ValidatableInput<T>> validatable()
ValidatableInput input component.ValidatableInput builderCopyright © 2019 The Holon Platform. All rights reserved.