And remove unused imports.
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.Widget;
import com.vaadin.client.ApplicationConfiguration.ErrorMessage;
-import com.vaadin.client.ApplicationConnection.ApplicationStoppedEvent;
import com.vaadin.client.communication.ConnectionStateHandler;
import com.vaadin.client.communication.Heartbeat;
import com.vaadin.client.communication.MessageHandler;
*
* To listen for the event add a {@link ApplicationStoppedHandler} by
* invoking
- * {@link ApplicationConnection#addHandler(ApplicationConnection.ApplicationStoppedEvent.Type, ApplicationStoppedHandler)}
+ * {@link ApplicationConnection#addHandler(GwtEvent.Type, ApplicationStoppedHandler)}
* to the {@link ApplicationConnection}
*
* @since 7.1.8
/**
* A listener for listening to application stopped events. The listener can
* be added to a {@link ApplicationConnection} by invoking
- * {@link ApplicationConnection#addHandler(ApplicationStoppedEvent.Type, ApplicationStoppedHandler)}
+ * {@link ApplicationConnection#addHandler(GwtEvent.Type, ApplicationStoppedHandler)}
*
* @since 7.1.8
* @author Vaadin Ltd
MEASURE_ALWAYS,
/**
- * Measure child component only if child component is a {@link Layout}
+ * Measure child component only if child component is an
+ * {@link com.vaadin.client.ui.AbstractLayoutConnector AbstractLayoutConnector}
* or implements either {@link ManagedLayout} or
* {@link ElementResizeListener}.
*/
import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.core.client.JsArrayString;
import com.vaadin.server.PaintTarget;
-import com.vaadin.ui.AbstractComponent;
import com.vaadin.ui.Component;
/**
* Gets the name of this UIDL section, as created with
* {@link PaintTarget#startTag(String) PaintTarget.startTag()} in the
* server-side {@link Component#paint(PaintTarget) Component.paint()} or
- * (usually) {@link AbstractComponent#paintContent(PaintTarget)
+ * (usually) {@link com.vaadin.ui.AbstractComponent#paintContent(PaintTarget)
* AbstractComponent.paintContent()}. Note that if the UIDL corresponds to a
* Paintable, a component identifier will be returned instead - this is used
* internally and is not needed within
* DOM upwards from given element.
* <p>
* <strong>Note:</strong> If {@code element} is inside some widget {@code W}
- * , <em>and</em> {@code W} in turn is wrapped in a {@link Composite}
+ * , <em>and</em> {@code W} in turn is wrapped in a {@link com.google.gwt.user.client.ui.Composite Composite}
* {@code C}, this method will not find {@code W} but returns {@code C}.
* This may also be the case with other Composite-like classes that hijack
* the event handling of their child widget(s).
* traversing DOM upwards from given element.
* <p>
* <strong>Note:</strong> If {@code element} is inside some widget {@code W}
- * , <em>and</em> {@code W} in turn is wrapped in a {@link Composite}
+ * , <em>and</em> {@code W} in turn is wrapped in a {@link com.google.gwt.user.client.ui.Composite Composite}
* {@code C}, this method will not find {@code W}. It returns either
* {@code C} or null, depending on whether the class parameter matches. This
* may also be the case with other Composite-like classes that hijack the
* traversing DOM upwards from given element.
* <p>
* <strong>Note:</strong> If {@code element} is inside some widget {@code W}
- * , <em>and</em> {@code W} in turn is wrapped in a {@link Composite}
+ * , <em>and</em> {@code W} in turn is wrapped in a {@link com.google.gwt.user.client.ui.Composite Composite}
* {@code C}, this method will not find {@code W}. It returns either
* {@code C} or null, depending on whether the class parameter matches. This
* may also be the case with other Composite-like classes that hijack the
import elemental.json.JsonObject;
/**
- * An abstract base class for {@link ClickableRenderer} connectors.
+ * An abstract base class for
+ * {@link com.vaadin.client.renderers.ClickableRenderer ClickableRenderer}
+ * connectors.
*
* @param <T>
* the presentation type of the renderer
/**
* An abstract base class for renderer connectors. A renderer connector is used
- * to link a client-side {@link Renderer} to a server-side
- * {@link com.vaadin.client.renderers.Renderer Renderer}. As a connector, it can
+ * to link a client-side {@link com.vaadin.client.renderers.Renderer Renderer} to a server-side
+ * {@link com.vaadin.ui.renderers.Renderer Renderer}. As a connector, it can
* use the regular Vaadin RPC and shared state mechanism to pass additional
* state and information between the client and the server. This base class
* itself only uses the basic {@link com.vaadin.shared.communication.SharedState
import com.google.gwt.dom.client.Element;
import com.google.gwt.user.client.Event;
import com.google.gwt.user.client.ui.Widget;
-import com.vaadin.client.widgets.Escalator;
/**
* A mousewheel handling class to get around the limits of
*
* For internal use only. May be removed or replaced in the future.
*
- * @see Escalator.JsniWorkaround
+ * @see com.vaadin.client.widgets.JsniWorkaround JsniWorkaround
*/
// FIXME remove the copy in v7 package
abstract class JsniMousewheelHandler {
package com.vaadin.client.ui;
import java.util.HashMap;
-import java.util.Iterator;
import com.google.gwt.dom.client.Element;
import com.google.gwt.dom.client.ImageElement;
import java.util.ArrayList;
import java.util.EventObject;
-import java.util.Iterator;
import com.google.gwt.aria.client.Roles;
import com.google.gwt.core.client.GWT;
Profiler.leave("VUI.sendClientResized");
}
- public native static void goTo(String url)
+ public static native void goTo(String url)
/*-{
$wnd.location = url;
}-*/;
* The updater is responsible for internally handling all remote communication,
* should the displayed data need to be fetched remotely.
* <p>
- * This has a similar function to {@link Grid Grid's} {@link Renderer Renderers}
+ * This has a similar function to {@link com.vaadin.client.widgets.Grid Grid's}
+ * {@link com.vaadin.client.renderers.Renderer Renderers}
* , although they operate on different abstraction levels.
*
* @since 7.4
* @see Escalator#getHeader()
* @see Escalator#getBody()
* @see Escalator#getFooter()
- * @see Renderer
+ * @see com.vaadin.client.renderers.Renderer Renderer
*/
public interface EscalatorUpdater {
import com.vaadin.client.widgets.Escalator;
/**
- * A {@link FlyweightCell} represents a cell in the {@link Grid} or
+ * A {@link FlyweightCell} represents a cell in the {@link com.vaadin.client.widgets.Grid Grid} or
* {@link Escalator} at a certain point in time.
*
* <p>
import java.util.List;
import com.google.gwt.dom.client.TableRowElement;
-import com.vaadin.client.widgets.Escalator;
/**
* An internal implementation of the {@link Row} interface.
*
* @since 7.4
* @author Vaadin Ltd
- * @see Escalator.AbstractRowContainer#refreshRow(Node, int)
+ * @see com.vaadin.client.widgets.Escalator.AbstractRowContainer#refreshRow(TableRowElement, int)
*/
public class FlyweightRow implements Row {
*
* @return an iterable of flyweight cells
*
- * @see #setup(Element, int, int[])
+ * @see #setup(TableRowElement, int, int[])
* @see #teardown()
*/
public Iterable<FlyweightCell> getCells() {
}
/**
- * Returns the range of available rows in {@link DataSource} for this event.
+ * Returns the range of available rows in {@link com.vaadin.client.data.DataSource DataSource}
+ * for this event.
*
* @return range of available rows
*/
* @author Vaadin Ltd
* @param <T>
* the row type of the target grid
- * @see Grid#setRowStyleGenerator(RowStyleGenerator)
+ * @see com.vaadin.client.widgets.Grid#setRowStyleGenerator(RowStyleGenerator)
+ * Grid#setRowStyleGenerator(RowStyleGenerator)
* @since 7.4
*/
public interface RowStyleGenerator<T> extends Serializable {
import com.google.gwt.dom.client.Element;
import com.google.gwt.user.client.Event;
import com.google.gwt.user.client.ui.Widget;
-import com.vaadin.v7.client.widgets.Escalator;
/**
* A mousewheel handling class to get around the limits of
*
* For internal use only. May be removed or replaced in the future.
*
- * @see Escalator.JsniWorkaround
+ * @see com.vaadin.v7.client.widgets.JsniWorkaround JsniWorkaround
*/
abstract class JsniMousewheelHandler {
* The updater is responsible for internally handling all remote communication,
* should the displayed data need to be fetched remotely.
* <p>
- * This has a similar function to {@link Grid Grid's} {@link Renderer Renderers}
+ * This has a similar function to {@link com.vaadin.v7.client.widgets.Grid Grid's}
+ * {@link com.vaadin.v7.client.renderers.Renderer Renderers}
* , although they operate on different abstraction levels.
*
* @since 7.4
import com.vaadin.v7.client.widgets.Escalator;
/**
- * A {@link FlyweightCell} represents a cell in the {@link Grid} or
+ * A {@link FlyweightCell} represents a cell in the {@link com.vaadin.v7.client.widgets.Grid Grid} or
* {@link Escalator} at a certain point in time.
*
* <p>
import java.util.List;
import com.google.gwt.dom.client.TableRowElement;
-import com.vaadin.v7.client.widgets.Escalator;
/**
* An internal implementation of the {@link Row} interface.
*
* @since 7.4
* @author Vaadin Ltd
- * @see Escalator.AbstractRowContainer#refreshRow(Node, int)
+ * @see com.vaadin.v7.client.widgets.Escalator.AbstractRowContainer#refreshRow(TableRowElement, int)
+ * Escalator.AbstractRowContainer#refreshRow(TableRowElement, int)
*/
public class FlyweightRow implements Row {
*
* @return an iterable of flyweight cells
*
- * @see #setup(Element, int, int[])
+ * @see #setup(TableRowElement, int, int[])
* @see #teardown()
*/
public Iterable<FlyweightCell> getCells() {
}
/**
- * Returns the range of available rows in {@link DataSource} for this event.
+ * Returns the range of available rows in {@link com.vaadin.client.data.DataSource DataSource} for this event.
*
* @return range of available rows
*/
* @author Vaadin Ltd
* @param <T>
* the row type of the target grid
- * @see Grid#setRowStyleGenerator(RowStyleGenerator)
+ * @see com.vaadin.v7.client.widgets.Grid#setRowStyleGenerator(RowStyleGenerator)
+ * Grid#setRowStyleGenerator(RowStyleGenerator)
* @since 7.4
*/
public interface RowStyleGenerator<T> extends Serializable {
* FieldGroup provides an easy way of binding fields to data and handling
* commits of these fields.
* <p>
- * The functionality of FieldGroup is similar to {@link Form} but
+ * The functionality of FieldGroup is similar to {@link com.vaadin.v7.ui.Form Form} but
* {@link FieldGroup} does not handle layouts in any way. The typical use case
* is to create a layout outside the FieldGroup and then use FieldGroup to bind
* the fields to a data source.
*/
package com.vaadin.v7.data.util;
-import com.vaadin.data.provider.DataProvider;
-
import java.util.Collection;
import com.vaadin.data.provider.ListDataProvider;
*/
package com.vaadin.v7.data.util;
-import com.vaadin.data.provider.ListDataProvider;
-
import java.util.Collection;
+import com.vaadin.data.provider.ListDataProvider;
+
/**
* An in-memory container for JavaBeans.
*
* @param newItemId
* the bean (of type BT) to add (not null)
*
- * @see Container.Ordered#addItemAfter(Object, Object)
+ * @see com.vaadin.v7.data.Container.Ordered#addItemAfter(Object, Object)
+ * Ordered#addItemAfter(Object, Object)
*/
@Override
@SuppressWarnings("unchecked")
*
* The bean is used both as the item contents and as the item identifier.
*
- * @see Container#addItem(Object)
+ * @see com.vaadin.v7.data.Container#addItem(Object) Container#addItem(Object)
*/
@Override
@SuppressWarnings("unchecked")
*
* The bean is used both as the item contents and as the item identifier.
*
- * @see Container#addItem(Object)
+ * @see com.vaadin.v7.data.Container#addItem(Object) Container#addItem(Object)
*/
@Override
public BeanItem<BEANTYPE> addBean(BEANTYPE bean) {
import java.util.Collection;
-import com.vaadin.v7.data.Container;
import com.vaadin.v7.data.Container.Hierarchical;
/**
* A wrapper class for adding external ordering to containers not implementing
- * the {@link Container.Ordered} interface while retaining {@link Hierarchical}
- * features.
+ * the {@link com.vaadin.v7.data.Container.Ordered Container.Ordered}
+ * interface while retaining {@link Hierarchical} features.
*
* @see ContainerOrderedWrapper
*
package com.vaadin.v7.data.util;
import java.io.Serializable;
-import java.util.Map;
import com.vaadin.data.Binder;
import com.vaadin.data.provider.DataProvider;
package com.vaadin.v7.data.util;
import com.vaadin.v7.data.Property;
-import com.vaadin.v7.data.Property.ValueChangeEvent;
import com.vaadin.v7.data.Property.ValueChangeNotifier;
/**
import com.vaadin.v7.data.sort.SortOrder;
/**
- * Event describing a change in sorting of a {@link Container}. Fired by
- * {@link SortNotifier SortNotifiers}.
+ * Event describing a change in sorting of a {@link com.vaadin.v7.data.Container Container}.
+ * Fired by {@link SortNotifier SortNotifiers}.
*
* @see SortListener
*
import com.vaadin.shared.Range;
import com.vaadin.shared.data.DataProviderRpc;
import com.vaadin.shared.data.DataRequestRpc;
-import com.vaadin.v7.data.Container;
import com.vaadin.v7.data.Container.Indexed;
import com.vaadin.v7.data.Container.Indexed.ItemAddEvent;
import com.vaadin.v7.data.Container.Indexed.ItemRemoveEvent;
/**
* Provides Vaadin server-side container data source to a
- * {@link com.vaadin.v7.client.connectors.GridConnector}. This is currently
+ * {@link com.vaadin.v7.client.connectors.GridConnector GridConnector}. This is currently
* implemented as an Extension hardcoded to support a specific connector type.
* This will be changed once framework support for something more flexible has
* been implemented.
/**
* A class to listen to changes in property values in the Container added
- * with {@link Grid#setContainerDatasource(Container.Indexed)}, and notifies
- * the data source to update the client-side representation of the modified
- * item.
+ * with {@link Grid#setContainerDatasource(com.vaadin.v7.data.Container.Indexed)
+ * Grid#setContainerDatasource(Container.Indexed)},
+ * and notifies the data source to update the client-side representation
+ * of the modified item.
* <p>
* One instance of this class can (and should) be reused for all the
* properties in an item, since this class will inform that the entire row
* value changes, an instance of this class needs to be attached to each and
* every Item's Property in the container.
*
- * @see Grid#addValueChangeListener(Container, Object, Object)
+ * @see Grid#addValueChangeListener(com.vaadin.v7.data.Container, Object, Object)
+ * Grid#addValueChangeListener(Container, Object, Object)
* @see Grid#valueChangeListeners
*/
private class GridValueChangeListener implements ValueChangeListener {
}
/**
- * A default implementation of a {@link SelectionModel.Single}
+ * A default implementation of a
+ * {@link com.vaadin.v7.ui.Grid.SelectionModel.Single SelectionModel.Single}.
*/
@Deprecated
public static class SingleSelectionModel extends AbstractSelectionModel
}
/**
- * A default implementation for a {@link SelectionModel.None}
+ * A default implementation for a
+ * {@link com.vaadin.v7.ui.Grid.SelectionModel.None SelectionModel.None}.
*/
@Deprecated
public static class NoSelectionModel extends AbstractSelectionModel
}
/**
- * A default implementation of a {@link SelectionModel.Multi}
+ * A default implementation of a
+ * {@link com.vaadin.v7.ui.Grid.SelectionModel.Multi SelectionModel.Multi}.
*/
@Deprecated
public static class MultiSelectionModel extends AbstractSelectionModel
* <p>
* This method is a shorthand that delegates to the
* {@link #getSelectionModel() selection model}. Only
- * {@link SelectionModel.Single} is supported.
+ * {@link com.vaadin.v7.ui.Grid.SelectionModel.Single SelectionModel.Single} is supported.
*
* @return the item id of the currently selected item, or <code>null</code>
* if nothing is selected
* <p>
* This method is a shorthand that delegates to the
* {@link #getSelectionModel() selection model}. Only
- * {@link SelectionModel.Single} and {@link SelectionModel.Multi} are
- * supported.
+ * {@link com.vaadin.v7.ui.Grid.SelectionModel.Single SelectionModel.Single}
+ * and {@link com.vaadin.v7.ui.Grid.SelectionModel.Multi SelectionModel.Multi}
+ * are supported.
*
* @param itemId
* the itemId to mark as selected
* <p>
* This method is a shorthand that delegates to the
* {@link #getSelectionModel() selection model}. Only
- * {@link SelectionModel.Single} and {@link SelectionModel.Multi} are
- * supported.
+ * {@link com.vaadin.v7.ui.Grid.SelectionModel.Single SelectionModel.Single}
+ * and {@link com.vaadin.v7.ui.Grid.SelectionModel.Multi SelectionModel.Multi}
+ * are supported.
*
* @param itemId
* the itemId to remove from being selected
* <p>
* This method is a shorthand that delegates to the
* {@link #getSelectionModel() selection model}. Only
- * {@link SelectionModel.Single} and {@link SelectionModel.Multi} are
- * supported.
+ * {@link com.vaadin.v7.ui.Grid.SelectionModel.Single SelectionModel.Single}
+ * and {@link com.vaadin.v7.ui.Grid.SelectionModel.Multi SelectionModel.Multi}
+ * are supported.
*
* @return <code>true</code> if the selection state changed,
* <code>false</code> if the itemId was already selected
import com.vaadin.v7.data.Collapsible;
import com.vaadin.v7.data.Container;
import com.vaadin.v7.data.Container.Hierarchical;
-import com.vaadin.v7.data.Container.ItemSetChangeEvent;
import com.vaadin.v7.data.util.ContainerHierarchicalWrapper;
import com.vaadin.v7.data.util.HierarchicalContainer;
import com.vaadin.v7.data.util.HierarchicalContainerOrderedWrapper;
/**
* Changes the background of a layout to white. Applies to
- * {@link VerticalLayout}, {@link HorizontalLayout}, {@link GridLayout},
+ * {@link VerticalLayout}, {@link HorizontalLayout}, {@link com.vaadin.ui.GridLayout GridLayout},
* {@link FormLayout}, {@link CssLayout}, {@link VerticalSplitPanel} and
* {@link HorizontalSplitPanel}.
* <p>
/**
* Changes the background of a layout to a shade of blue. Applies to
- * {@link VerticalLayout}, {@link HorizontalLayout}, {@link GridLayout},
+ * {@link VerticalLayout}, {@link HorizontalLayout}, {@link com.vaadin.ui.GridLayout GridLayout},
* {@link FormLayout}, {@link CssLayout}, {@link VerticalSplitPanel} and
* {@link HorizontalSplitPanel}.
* <p>
* </p>
* <p>
* Applies to {@link VerticalLayout}, {@link HorizontalLayout},
- * {@link GridLayout}, {@link FormLayout} and {@link CssLayout}.
+ * {@link com.vaadin.ui.GridLayout GridLayout}, {@link FormLayout} and {@link CssLayout}.
* </p>
*
*/
import com.vaadin.v7.data.Container.ItemSetChangeListener;
import com.vaadin.v7.data.Container.PropertySetChangeEvent;
import com.vaadin.v7.data.Container.PropertySetChangeListener;
-import com.vaadin.v7.data.sort.SortOrder;
import com.vaadin.v7.data.Item;
+import com.vaadin.v7.data.sort.SortOrder;
import com.vaadin.v7.data.util.GeneratedPropertyContainer.GeneratedPropertyItem;
import com.vaadin.v7.data.util.filter.Compare;
import com.vaadin.v7.data.util.filter.UnsupportedFilterException;
*/
package com.vaadin.osgi.liferay;
-import java.util.Optional;
-
import org.osgi.framework.BundleContext;
import org.osgi.framework.ServiceObjects;
import org.osgi.service.component.ComponentContext;
package com.vaadin.data;
import java.io.Serializable;
-import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Objects;
package com.vaadin.data;
import com.vaadin.event.SerializableEventListener;
-import com.vaadin.ui.AbstractComponent;
/**
* Handler for {@link BinderValidationStatus} changes.
* handling.
* <p>
* The default handler will show
- * {@link AbstractComponent#setComponentError(com.vaadin.server.ErrorMessage) an
+ * {@link com.vaadin.ui.AbstractComponent#setComponentError(com.vaadin.server.ErrorMessage) an
* error message} for failed field validations. For bean level validation errors
* it will display the first error message in
* {@link Binder#setStatusLabel(com.vaadin.ui.Label) status label}, if one has
import com.vaadin.data.Binder.BindingBuilder;
import com.vaadin.event.SerializableEventListener;
-import com.vaadin.ui.AbstractComponent;
/**
* Handler for {@link BindingValidationStatus} changes.
* {@link BindingBuilder#withValidationStatusHandler(BindingValidationStatusHandler)}
* Register} an instance of this class to be able to override the default
* handling, which is to show
- * {@link AbstractComponent#setComponentError(com.vaadin.server.ErrorMessage) an
+ * {@link com.vaadin.ui.AbstractComponent#setComponentError(com.vaadin.server.ErrorMessage) an
* error message} for failed field validations.
*
* @author Vaadin Ltd
import com.vaadin.event.HasUserOriginated;
import com.vaadin.event.SerializableEventListener;
-import com.vaadin.server.Setter;
import com.vaadin.shared.Registration;
import com.vaadin.ui.Component;
import com.vaadin.util.ReflectTools;
* values. Specific implementations might not support this.
*
* @return empty value
- * @see Binder#bind(HasValue, ValueProvider, Setter)
+ * @see Binder#bind(HasValue, ValueProvider, com.vaadin.server.Setter)
+ * Binder#bind(HasValue, ValueProvider, Setter)
*/
public default V getEmptyValue() {
return null;
*/
package com.vaadin.data;
-import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.stream.Collectors;
import com.vaadin.data.provider.CallbackDataProvider.FetchCallback;
import com.vaadin.server.SerializableBiFunction;
import com.vaadin.server.SerializableFunction;
-import com.vaadin.server.SerializableToIntFunction;
import com.vaadin.shared.Registration;
/**
import com.vaadin.ui.Grid.Column;
/**
- * Sorting information for {@link Grid}.
+ * Sorting information for {@link com.vaadin.ui.Grid Grid}.
*
* @param <T>
* the grid type
public class GridSortOrder<T> extends SortOrder<Column<T, ?>> {
/**
- * Construct sorting information for usage in a {@link Grid}.
+ * Construct sorting information for usage in a {@link com.vaadin.ui.Grid Grid}.
*
* @param column
* the column to be sorted
*/
package com.vaadin.event;
-import java.util.logging.Logger;
-
import com.vaadin.event.Action.Container;
import com.vaadin.server.ClientConnector;
import com.vaadin.server.VariableOwner;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Objects;
-import java.util.logging.Logger;
import com.vaadin.server.ErrorEvent;
import com.vaadin.server.ErrorHandler;
import java.util.Set;
import com.vaadin.data.HasValue.ValueChangeEvent;
-import com.vaadin.data.SelectionModel;
import com.vaadin.ui.AbstractSingleSelect;
import com.vaadin.ui.Component;
import com.vaadin.ui.SingleSelect;
*
* @return the selected item or an empty optional if deselected
*
- * @see SelectionModel.Single#getSelectedItem()
+ * @see com.vaadin.data.SelectionModel.Single#getSelectedItem()
+ * SelectionModel.Single#getSelectedItem()
*/
public Optional<T> getSelectedItem() {
return Optional.ofNullable(getValue());
import java.lang.reflect.Method;
-import com.vaadin.data.SelectionModel;
import com.vaadin.event.SerializableEventListener;
import com.vaadin.util.ReflectTools;
* @param <T>
* the type of the selected item
*
- * @see SelectionModel.Single
+ * @see com.vaadin.data.SelectionModel.Single SelectionModel.Single
* @see SingleSelectionEvent
*/
@FunctionalInterface
import java.util.Map;
import java.util.NoSuchElementException;
import java.util.WeakHashMap;
-import java.util.logging.Logger;
import com.vaadin.event.EventRouter;
import com.vaadin.event.MethodEventSource;
import java.util.function.BiConsumer;
import com.vaadin.data.Binder;
-import com.vaadin.data.HasValue;
/**
* The function to write the field value to the bean property
*
* @see BiConsumer
- * @see Binder#bind(HasValue, SerializableFunction, Setter)
+ * @see Binder#bind(com.vaadin.data.HasValue, SerializableFunction, Setter)
+ * Binder#bind(HasValue, SerializableFunction, Setter)
* @param <BEAN>
* the type of the target bean
* @param <FIELDVALUE>
import java.io.OutputStream;
import java.io.Serializable;
-import com.vaadin.server.StreamVariable.StreamingEndEvent;
-import com.vaadin.server.StreamVariable.StreamingErrorEvent;
-import com.vaadin.server.StreamVariable.StreamingStartEvent;
-
/**
* StreamVariable is a special kind of variable whose value is streamed to an
* {@link OutputStream} provided by the {@link #getOutputStream()} method. E.g.
* {@link #onProgress(long, long)} is called in a synchronized block when
* the content is being received. This is potentially bit slow, so we are
* calling that method only if requested. The value is requested after the
- * {@link #uploadStarted(StreamingStartEvent)} event, but not after reading
+ * {@link #streamingStarted(StreamingStartEvent)} event, but not after reading
* each buffer.
*
* @return true if this {@link StreamVariable} wants to by notified during
}
/**
- * Event passed to {@link #uploadStarted(StreamingStartEvent)} method before
+ * Event passed to {@link #streamingStarted(StreamingStartEvent)} method before
* the streaming of the content to {@link StreamVariable} starts.
*/
public interface StreamingStartEvent extends StreamingEvent {
}
/**
- * Event passed to {@link #uploadFinished(StreamingEndEvent)} method the
+ * Event passed to {@link #streamingFinished(StreamingEndEvent)} method the
* contents have been streamed to StreamVariable successfully.
*/
public interface StreamingEndEvent extends StreamingEvent {
}
/**
- * Event passed to {@link #uploadFailed(StreamingErrorEvent)} method when
+ * Event passed to {@link #streamingFailed(StreamingErrorEvent)} method when
* the streaming ended before the end of the input. The streaming may fail
* due an interruption by {@link } or due an other unknown exception in
* communication. In the latter case the exception is also passed to
/**
* Gets the currently used session. The current session is automatically
* defined when processing requests related to the session (see
- * {@link ThreadLocal}) and in {@link VaadinSession#access(Command)} and
- * {@link UI#access(Command)}. In other cases, (e.g. from background
+ * {@link ThreadLocal}) and in {@link VaadinSession#access(Runnable)} and
+ * {@link UI#access(Runnable)}. In other cases, (e.g. from background
* threads, the current session is not automatically defined.
* <p>
* The session is stored using a weak reference to avoid leaking memory in
import java.util.Objects;
import java.util.Set;
import java.util.StringTokenizer;
-import java.util.logging.Logger;
import org.jsoup.nodes.Attribute;
import org.jsoup.nodes.Attributes;
package com.vaadin.ui;
import java.time.Instant;
-import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.ZoneOffset;
import java.time.format.DateTimeFormatter;
* size callback.
* <p>
* This method is a shorthand for making a {@link CallbackDataProvider} that
- * handles a partial {@link Query} object.
+ * handles a partial {@link com.vaadin.data.provider.Query Query} object.
*
* @param fetchItems
* a callback for fetching items
* Predicate to check {@link ComboBox} item captions against user typed
* strings.
*
- * @see #setItems(CaptionFilter, Collection)
- * @see #setItems(CaptionFilter, Object[])
+ * @see ComboBox#setItems(CaptionFilter, Collection)
+ * @see ComboBox#setItems(CaptionFilter, Object[])
* @since 8.0
*/
@FunctionalInterface
import java.net.URL;
import com.vaadin.server.LegacyApplication;
-import com.vaadin.server.Page.BrowserWindowResizeEvent;
import com.vaadin.server.Page.BrowserWindowResizeListener;
import com.vaadin.server.Resource;
import com.vaadin.server.VaadinRequest;
* @param resizeListener
* the listener to add
*
- * @see BrowserWindowResizeListener#browserWindowResized(BrowserWindowResizeEvent)
+ * @see BrowserWindowResizeListener#browserWindowResized(com.vaadin.server.Page.BrowserWindowResizeEvent)
+ * BrowserWindowResizeListener#browserWindowResized(BrowserWindowResizeEvent)
* @see #setResizeLazy(boolean)
*
* @deprecated As of 7.0, use the similarly named api in Page instead
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
-import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.LinkedHashSet;
import java.io.Serializable;
import java.lang.reflect.Method;
import java.util.Collections;
-import java.util.Iterator;
import java.util.LinkedHashSet;
import java.util.Map;
import java.util.Objects;
import com.vaadin.server.AbstractExtension;
import com.vaadin.server.Resource;
import com.vaadin.shared.Registration;
-import com.vaadin.shared.ui.dnd.criteria.ComparisonOperator;
import com.vaadin.shared.ui.dnd.DragSourceRpc;
import com.vaadin.shared.ui.dnd.DragSourceState;
import com.vaadin.shared.ui.dnd.DropEffect;
* key of the payload to be transferred
* @param value
* value of the payload to be transferred
- * @see DropTargetExtension#setDropCriterion(String, ComparisonOperator,
+ * @see DropTargetExtension#setDropCriterion(String, com.vaadin.shared.ui.dnd.criteria.ComparisonOperator,
* int)
+ * DropTargetExtension#setDropCriterion(String, ComparisonOperator, int)
*/
public void setPayload(String key, int value) {
setPayload(key, String.valueOf(value), Payload.ValueType.INTEGER);
* key of the payload to be transferred
* @param value
* value of the payload to be transferred
- * @see DropTargetExtension#setDropCriterion(String, ComparisonOperator,
+ * @see DropTargetExtension#setDropCriterion(String, com.vaadin.shared.ui.dnd.criteria.ComparisonOperator,
* double)
+ * DropTargetExtension#setDropCriterion(String, ComparisonOperator, double)
*/
public void setPayload(String key, double value) {
setPayload(key, String.valueOf(value), Payload.ValueType.DOUBLE);
package com.vaadin.ui.dnd.event;
import com.vaadin.shared.ui.dnd.DropEffect;
-import com.vaadin.shared.ui.dnd.EffectAllowed;
import com.vaadin.ui.AbstractComponent;
import com.vaadin.ui.Component;
import com.vaadin.ui.dnd.DragSourceExtension;
*
* @return The {@code DataTransfer.dropEffect} parameter of the client side
* dragend event.
- * @see DragSourceExtension#setEffectAllowed(EffectAllowed)
+ * @see DragSourceExtension#setEffectAllowed(com.vaadin.shared.ui.dnd.EffectAllowed)
+ * DragSourceExtension#setEffectAllowed(EffectAllowed)
* @see DropTargetExtension#setDropEffect(DropEffect)
* @see DropTargetExtension#setDropCriteriaScript(String)
*/
package com.vaadin.ui.dnd.event;
import java.util.Collection;
-import java.util.List;
import com.vaadin.ui.AbstractComponent;
import com.vaadin.ui.Component;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Map;
-import java.util.Optional;
import java.util.Set;
import java.util.stream.Collectors;
import com.vaadin.server.VaadinService;
import com.vaadin.server.VaadinSession;
import com.vaadin.ui.UI;
-import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mockito;
* Simple validator to check against {@code null} value and empty {@link String}
* value.
* <p>
- * This validator works similar to {@link NotNullValidator} but in addition it
- * also check whether the value is not an empty String.
- * <p>
* This validator can be suitable for fields that have been marked as required
* with {@link HasValue#setRequiredIndicatorVisible(boolean)}.
* <p>
import static org.mockito.Mockito.times;
import static org.mockito.Mockito.verify;
-import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.lang.ref.WeakReference;
*/
package com.vaadin.ui;
-import java.util.ArrayList;
-import java.util.Arrays;
import java.util.concurrent.atomic.AtomicInteger;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
-import com.vaadin.data.SelectionModel.Multi;
import com.vaadin.data.provider.DataProvider;
import com.vaadin.server.ServerRpcManager;
import com.vaadin.shared.data.selection.SelectionServerRpc;
import com.vaadin.shared.data.sort.SortDirection;
import com.vaadin.shared.ui.AbstractSingleSelectState;
-import elemental.json.JsonArray;
-
/**
* The shared state for the {@link com.vaadin.ui.Grid} component.
*
/**
* The key in which a row's data can be found.
*
- * @see com.vaadin.shared.data.DataProviderRpc#setRowData(int, JsonArray)
+ * @see com.vaadin.shared.data.DataProviderRpc#setRowData(int, elemental.json.JsonArray)
*/
public static final String JSONKEY_DATA = "d";
/**
* The key in which a row's own key can be found.
*
- * @see com.vaadin.shared.data.DataProviderRpc#setRowData(int, JsonArray)
+ * @see com.vaadin.shared.data.DataProviderRpc#setRowData(int, elemental.json.JsonArray)
*/
public static final String JSONKEY_ROWKEY = "k";
/**
* The key in which a row's generated style can be found.
*
- * @see com.vaadin.shared.data.DataProviderRpc#setRowData(int, JsonArray)
+ * @see com.vaadin.shared.data.DataProviderRpc#setRowData(int, elemental.json.JsonArray)
*/
public static final String JSONKEY_ROWSTYLE = "rs";
/**
* The key in which a generated styles for a row's cells can be found.
*
- * @see com.vaadin.shared.data.DataProviderRpc#setRowData(int, JsonArray)
+ * @see com.vaadin.shared.data.DataProviderRpc#setRowData(int, elemental.json.JsonArray)
*/
public static final String JSONKEY_CELLSTYLES = "cs";
/**
* The key in which a row's description can be found.
*
- * @see com.vaadin.shared.data.DataProviderRpc#setRowData(int, JsonArray)
+ * @see com.vaadin.shared.data.DataProviderRpc#setRowData(int, elemental.json.JsonArray)
*/
public static final String JSONKEY_ROWDESCRIPTION = "rd";
/**
* The key in which a cell's description can be found.
*
- * @see com.vaadin.shared.data.DataProviderRpc#setRowData(int, JsonArray)
+ * @see com.vaadin.shared.data.DataProviderRpc#setRowData(int, elemental.json.JsonArray)
*/
public static final String JSONKEY_CELLDESCRIPTION = "cd";
*/
package com.vaadin.tests.integration;
-import com.vaadin.annotations.VaadinServletConfiguration;
import com.vaadin.server.VaadinRequest;
-import com.vaadin.server.VaadinServlet;
import com.vaadin.ui.Label;
import com.vaadin.ui.UI;
package com.vaadin.test.osgi.myapplication1;
-import com.vaadin.osgi.resources.OsgiVaadinTheme;
import com.vaadin.osgi.resources.OsgiVaadinWidgetset;
-import com.vaadin.ui.themes.ValoTheme;
import org.osgi.service.component.annotations.Component;
@Component
import javax.servlet.annotation.WebServlet;
-import com.vaadin.annotations.Theme;
import org.osgi.service.component.annotations.Component;
import com.vaadin.annotations.VaadinServletConfiguration;
package com.vaadin.tests;
import java.util.HashMap;
-import java.util.Iterator;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import java.io.IOException;
import java.net.URL;
-import java.util.Iterator;
import java.util.Map;
import com.vaadin.server.ExternalResource;
import java.util.ArrayList;
import java.util.Collection;
-import java.util.Iterator;
import com.vaadin.ui.CustomComponent;
import com.vaadin.ui.Label;
import com.vaadin.ui.Alignment;
import com.vaadin.ui.Component;
import com.vaadin.ui.MenuBar;
-import com.vaadin.ui.MenuBar.Command;
import com.vaadin.ui.MenuBar.MenuItem;
import com.vaadin.ui.VerticalLayout;
import com.vaadin.tests.components.AbstractReindeerTestUI;
import com.vaadin.ui.Component;
import com.vaadin.ui.MenuBar;
-import com.vaadin.ui.MenuBar.Command;
import com.vaadin.ui.MenuBar.MenuItem;
/**
package com.vaadin.tests.components.treetable;
import java.util.ArrayList;
-import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.List;
package com.vaadin.tests.contextclick;
import com.vaadin.data.TreeData;
-import com.vaadin.shared.Registration;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.HorizontalLayout;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
-import java.util.Objects;
-import java.util.Random;
import java.util.stream.Stream;
import com.vaadin.data.provider.AbstractDataProvider;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
-import java.util.Iterator;
import com.vaadin.event.dd.DragAndDropEvent;
import com.vaadin.event.dd.DropHandler;
import java.io.ByteArrayOutputStream;
import java.io.OutputStream;
-import java.util.Iterator;
import java.util.Map;
import java.util.logging.Level;
import java.util.logging.Logger;
*/
package com.vaadin.tests.themes.valo;
-import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.Map.Entry;
package com.vaadin.v7.tests.components.tree;
-import java.util.Iterator;
-
import com.vaadin.server.ThemeResource;
import com.vaadin.tests.components.TestBase;
import com.vaadin.ui.Panel;
package com.vaadin.v7.tests.components.tree;
import java.util.ArrayList;
-import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.List;
import com.vaadin.testbench.elements.ButtonElement;
import com.vaadin.testbench.elements.DateFieldElement;
-import com.vaadin.testbench.elements.LabelElement;
import com.vaadin.testbench.elements.NotificationElement;
import com.vaadin.tests.tb3.SingleBrowserTest;
-import org.junit.Assert;
import org.junit.Test;
import org.openqa.selenium.Keys;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.By;
import org.openqa.selenium.Keys;
-import com.vaadin.testbench.annotations.RunLocally;
-import com.vaadin.testbench.parallel.Browser;
import com.vaadin.tests.tb3.MultiBrowserTest;
public class PopupTimeClosingWithEscTest extends MultiBrowserTest {
import com.vaadin.testbench.elements.TextFieldElement;
import com.vaadin.testbench.parallel.TestCategory;
import com.vaadin.tests.tb3.SingleBrowserTest;
-import com.vaadin.ui.Button;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
*/
package com.vaadin.tests.components.upload;
-import com.vaadin.testbench.elements.UploadElement;
-import com.vaadin.tests.tb3.MultiBrowserTest;
-import org.junit.Test;
-import org.openqa.selenium.By;
-import org.openqa.selenium.WebElement;
-import org.openqa.selenium.internal.WrapsElement;
-import org.openqa.selenium.remote.DesiredCapabilities;
-import org.openqa.selenium.remote.LocalFileDetector;
-import org.openqa.selenium.remote.RemoteWebElement;
-
-import java.io.BufferedWriter;
-import java.io.File;
-import java.io.FileWriter;
-import java.io.IOException;
-import java.util.List;
-
/**
* Verifies that there's no client side errors when changing a tab containing
* Upload right after uploading is succeeded (#8728)
*/
package com.vaadin.tests.contextclick;
-import com.vaadin.testbench.elements.ButtonElement;
import com.vaadin.testbench.elements.TreeElement;
import org.junit.Test;
import org.openqa.selenium.WebElement;