diff options
author | Artur Signell <artur@vaadin.com> | 2012-08-13 14:05:07 +0300 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2012-08-13 14:05:44 +0300 |
commit | 7d2fd844a14b3db1bce9befe255e041ce7193536 (patch) | |
tree | 82bb798d1e003ed6b410d7e7a36f7667a5c61892 /src/com/vaadin | |
parent | 52347a10799db89aab7b7c85d4456e057d61472b (diff) | |
download | vaadin-framework-7d2fd844a14b3db1bce9befe255e041ce7193536.tar.gz vaadin-framework-7d2fd844a14b3db1bce9befe255e041ce7193536.zip |
Removed dependencies from shared to server/client (#9278)
Diffstat (limited to 'src/com/vaadin')
-rw-r--r-- | src/com/vaadin/shared/AbstractFieldState.java | 9 | ||||
-rw-r--r-- | src/com/vaadin/shared/ComponentState.java | 5 | ||||
-rw-r--r-- | src/com/vaadin/shared/Connector.java | 7 | ||||
-rw-r--r-- | src/com/vaadin/shared/VBrowserDetails.java | 9 | ||||
-rw-r--r-- | src/com/vaadin/shared/communication/SharedState.java | 13 | ||||
-rw-r--r-- | src/com/vaadin/shared/ui/Connect.java | 28 | ||||
-rw-r--r-- | src/com/vaadin/shared/ui/button/ButtonState.java | 10 | ||||
-rw-r--r-- | src/com/vaadin/shared/ui/dd/AcceptCriterion.java | 4 |
8 files changed, 40 insertions, 45 deletions
diff --git a/src/com/vaadin/shared/AbstractFieldState.java b/src/com/vaadin/shared/AbstractFieldState.java index 33fc0ff92c..faba7de89f 100644 --- a/src/com/vaadin/shared/AbstractFieldState.java +++ b/src/com/vaadin/shared/AbstractFieldState.java @@ -4,10 +4,9 @@ package com.vaadin.shared; import com.vaadin.shared.ui.TabIndexState; -import com.vaadin.ui.AbstractField; /** - * Shared state for {@link AbstractField}. + * Shared state for {@link com.vaadin.ui.AbstractField}. * * @author Vaadin Ltd * @version @VERSION@ @@ -73,7 +72,8 @@ public class AbstractFieldState extends ComponentState implements TabIndexState /** * Is the field required. Required fields must filled by the user. * - * See AbstractField#isRequired() for more information. + * See {@link com.vaadin.ui.AbstractField#isRequired()} for more + * information. * * @return <code>true</code> if the field is required, otherwise * <code>false</code>. @@ -85,7 +85,8 @@ public class AbstractFieldState extends ComponentState implements TabIndexState /** * Sets the field required. Required fields must filled by the user. * - * See AbstractField#setRequired(boolean) for more information. + * See {@link com.vaadin.ui.AbstractField#setRequired(boolean)} for more + * information. * * @param required * Is the field required. diff --git a/src/com/vaadin/shared/ComponentState.java b/src/com/vaadin/shared/ComponentState.java index a3d22e55bc..2805d566ad 100644 --- a/src/com/vaadin/shared/ComponentState.java +++ b/src/com/vaadin/shared/ComponentState.java @@ -10,7 +10,6 @@ import java.util.Set; import com.vaadin.shared.communication.SharedState; import com.vaadin.shared.communication.URLReference; -import com.vaadin.ui.Component; /** * Default shared state implementation for UI components. @@ -235,8 +234,8 @@ public class ComponentState extends SharedState { /** * Returns the visibility state of the component. Note that this state is * related to the component only, not its parent. This might differ from - * what {@link Component#isVisible()} returns as this takes the hierarchy - * into account. + * what {@link com.vaadin.ui.Component#isVisible()} returns as this takes + * the hierarchy into account. * * @return The visibility state. */ diff --git a/src/com/vaadin/shared/Connector.java b/src/com/vaadin/shared/Connector.java index e09d4d51b7..69f819e881 100644 --- a/src/com/vaadin/shared/Connector.java +++ b/src/com/vaadin/shared/Connector.java @@ -6,8 +6,6 @@ package com.vaadin.shared; import java.io.Serializable; import com.vaadin.shared.communication.SharedState; -import com.vaadin.terminal.gwt.client.ServerConnector; -import com.vaadin.terminal.gwt.server.ClientConnector; /** * Interface implemented by all classes that are capable of communicating with @@ -21,8 +19,9 @@ import com.vaadin.terminal.gwt.server.ClientConnector; * <p> * No classes should implement this interface directly, client side classes * wanting to communicate with server side should implement - * {@link ServerConnector} and server side classes should implement - * {@link ClientConnector}. + * {@link com.vaadin.terminal.gwt.client.ServerConnector} and server side + * classes should implement + * {@link com.vaadin.terminal.gwt.server.ClientConnector}. * </p> * * @author Vaadin Ltd diff --git a/src/com/vaadin/shared/VBrowserDetails.java b/src/com/vaadin/shared/VBrowserDetails.java index 0cd9fe6436..352e598552 100644 --- a/src/com/vaadin/shared/VBrowserDetails.java +++ b/src/com/vaadin/shared/VBrowserDetails.java @@ -5,13 +5,12 @@ package com.vaadin.shared; import java.io.Serializable; -import com.vaadin.terminal.gwt.client.BrowserInfo; -import com.vaadin.terminal.gwt.server.WebBrowser; - /** * Class that parses the user agent string from the browser and provides - * information about the browser. Used internally by {@link BrowserInfo} and - * {@link WebBrowser}. Should not be used directly. + * information about the browser. Used internally by + * {@link com.vaadin.terminal.gwt.client.BrowserInfo} and + * {@link com.vaadin.terminal.gwt.server.WebBrowser}. Should not be used + * directly. * * @author Vaadin Ltd. * @version @VERSION@ diff --git a/src/com/vaadin/shared/communication/SharedState.java b/src/com/vaadin/shared/communication/SharedState.java index 2882b1ed07..692915324e 100644 --- a/src/com/vaadin/shared/communication/SharedState.java +++ b/src/com/vaadin/shared/communication/SharedState.java @@ -7,16 +7,13 @@ package com.vaadin.shared.communication; import java.io.Serializable; import com.vaadin.shared.Connector; -import com.vaadin.terminal.gwt.client.ServerConnector; -import com.vaadin.terminal.gwt.client.ui.AbstractComponentConnector; /** * Interface to be implemented by all shared state classes used to communicate * basic information about a {@link Connector} from server to client. * - * Shared state classes have to be declared in client side packages to be - * accessible both for server and client code. They can be static nested classes - * of a {@link ServerConnector}. + * Shared state classes have to be declared in shared package to be accessible + * both for server and client code. * * Shared state objects are only sent from the server to the client, and any * modifications from the client should be performed via an RPC call that @@ -27,9 +24,9 @@ import com.vaadin.terminal.gwt.client.ui.AbstractComponentConnector; * arrays of these. * * On the client side the connector should override - * {@link AbstractComponentConnector#createState()} to create the correct state - * class and {@link AbstractComponentConnector#getState()} override the return - * type. + * {@link com.vaadin.terminal.gwt.client.ui.AbstractConnector#getState()} to + * return the correct state type. This automatically causes a correct state + * object to be created. * * Subclasses of a {@link Connector} using shared state should also provide a * subclass of the shared state class of the parent class to extend the state. A diff --git a/src/com/vaadin/shared/ui/Connect.java b/src/com/vaadin/shared/ui/Connect.java index aa60096eb9..91b78c586a 100644 --- a/src/com/vaadin/shared/ui/Connect.java +++ b/src/com/vaadin/shared/ui/Connect.java @@ -9,16 +9,11 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; import com.vaadin.shared.Connector; -import com.vaadin.terminal.gwt.server.ClientConnector; -import com.vaadin.terminal.gwt.widgetsetutils.CustomWidgetMapGenerator; -import com.vaadin.terminal.gwt.widgetsetutils.EagerWidgetMapGenerator; -import com.vaadin.terminal.gwt.widgetsetutils.LazyWidgetMapGenerator; -import com.vaadin.terminal.gwt.widgetsetutils.WidgetMapGenerator; /** * Annotation defining the server side connector that this ClientSideConnector * should connect to. The value must always by a class extending - * {@link ClientConnector}. + * {@link com.vaadin.terminal.gwt.server.ClientConnector}. * <p> * With this annotation client side Vaadin connector is marked to have a server * side counterpart. The value of the annotation is the class of server side @@ -39,8 +34,10 @@ public @interface Connect { * Depending on the used WidgetMap generator, these optional hints may be * used to define how the client side components are loaded by the browser. * The default is to eagerly load all widgets - * {@link EagerWidgetMapGenerator}, but if the {@link WidgetMapGenerator} is - * used by the widgetset, these load style hints are respected. + * {@link com.vaadin.terminal.gwt.widgetsetutils.EagerWidgetMapGenerator}, + * but if the + * {@link com.vaadin.terminal.gwt.widgetsetutils.WidgetMapGenerator} is used + * by the widgetset, these load style hints are respected. * <p> * Lazy loading of a widget implementation means the client side component * is not included in the initial JavaScript application loaded when the @@ -60,12 +57,15 @@ public @interface Connect { * the best of both worlds. * <p> * Fine tunings to widget loading can also be made by overriding - * {@link WidgetMapGenerator} in the GWT module. Tunings might be helpful if - * the end users have slow connections and especially if they have high - * latency in their network. The {@link CustomWidgetMapGenerator} is an - * abstract generator implementation for easy customization. Vaadin package - * also includes {@link LazyWidgetMapGenerator} that makes as many widgets - * lazily loaded as possible. + * {@link com.vaadin.terminal.gwt.widgetsetutils.WidgetMapGenerator} in the + * GWT module. Tunings might be helpful if the end users have slow + * connections and especially if they have high latency in their network. + * The + * {@link com.vaadin.terminal.gwt.widgetsetutils.CustomWidgetMapGenerator} + * is an abstract generator implementation for easy customization. Vaadin + * package also includes + * {@link com.vaadin.terminal.gwt.widgetsetutils.LazyWidgetMapGenerator} + * that makes as many widgets lazily loaded as possible. * * @since 6.4 * diff --git a/src/com/vaadin/shared/ui/button/ButtonState.java b/src/com/vaadin/shared/ui/button/ButtonState.java index c423e18d46..2bdd24ad3a 100644 --- a/src/com/vaadin/shared/ui/button/ButtonState.java +++ b/src/com/vaadin/shared/ui/button/ButtonState.java @@ -6,10 +6,10 @@ package com.vaadin.shared.ui.button; import com.vaadin.shared.ComponentState; import com.vaadin.shared.ui.TabIndexState; -import com.vaadin.ui.Button; /** - * Shared state for Button and NativeButton. + * Shared state for {@link com.vaadin.ui.Button} and + * {@link com.vaadin.ui.NativeButton}. * * @see ComponentState * @@ -51,7 +51,8 @@ public class ButtonState extends ComponentState implements TabIndexState { /** * Returns the key code for activating the button via a keyboard shortcut. * - * See {@link Button#setClickShortcut(int, int...)} for more information. + * See {@link com.vaadin.ui.Button#setClickShortcut(int, int...)} for more + * information. * * @return key code or 0 for none */ @@ -62,7 +63,8 @@ public class ButtonState extends ComponentState implements TabIndexState { /** * Sets the key code for activating the button via a keyboard shortcut. * - * See {@link Button#setClickShortcut(int, int...)} for more information. + * See {@link com.vaadin.ui.Button#setClickShortcut(int, int...)} for more + * information. * * @param clickShortcutKeyCode * key code or 0 for none diff --git a/src/com/vaadin/shared/ui/dd/AcceptCriterion.java b/src/com/vaadin/shared/ui/dd/AcceptCriterion.java index 19c2e5f273..4867e6b03f 100644 --- a/src/com/vaadin/shared/ui/dd/AcceptCriterion.java +++ b/src/com/vaadin/shared/ui/dd/AcceptCriterion.java @@ -9,11 +9,9 @@ import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import com.vaadin.terminal.gwt.client.ui.dd.VAcceptCriterion; - /** * An annotation type used to point the server side counterpart for client side - * a {@link VAcceptCriterion} class. + * a {@link com.vaadin.terminal.gwt.client.ui.dd.VAcceptCriterion} class. * <p> * Annotations are used at GWT compilation phase, so remember to rebuild your * widgetset if you do changes for {@link AcceptCriterion} mappings. |