C
- Concrete component typeB
- Concrete builder typepublic interface ComponentBuilder<C extends com.vaadin.ui.Component,B extends ComponentBuilder<C,B>> extends ComponentConfigurator<B>
Component
s.ComponentConfigurator.BaseComponentConfigurator
Modifier and Type | Method and Description |
---|---|
C |
build()
Build and returns the component
|
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.
|
caption, 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, withShortcutListener
B 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()
C build()
Copyright © 2018 The Holon Platform. All rights reserved.