12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- /*
- @VaadinApache2LicenseForJavaFiles@
- */
- package com.vaadin.terminal.gwt.client;
-
- import com.vaadin.terminal.gwt.client.communication.SharedState;
-
- /**
- * Interface implemented by all client side classes that can be communicate with
- * the server. Classes implementing this interface are initialized by the
- * framework when needed and have the ability to communicate with the server.
- *
- * @author Vaadin Ltd
- * @version @VERSION@
- * @since 7.0.0
- */
- public interface Connector {
- /**
- * TODO
- *
- * @param uidl
- * @param client
- */
- public void updateFromUIDL(UIDL uidl, ApplicationConnection client);
-
- /**
- * Gets the current shared state of the connector.
- *
- * @return state
- */
- public SharedState getState();
-
- /**
- * Sets a new state for the connector.
- *
- * @param state
- * The new state
- *
- */
- public void setState(SharedState state);
-
- /**
- * Returns the id for this connector. This must always be what has been set
- * in {@link #init(String, ApplicationConnection)} and must never change.
- *
- * @return The id for the connector.
- */
- public String getId();
-
- /**
- * Gets ApplicationConnection instance that created this connector.
- *
- * @return The ApplicationConnection as set by
- * {@link #init(String, ApplicationConnection)}
- */
- public ApplicationConnection getConnection();
-
- /**
- * Tests whether the component is enabled or not. A user can not interact
- * with disabled components. Disabled components are rendered in a style
- * that indicates the status, usually in gray color. Children of a disabled
- * component are also disabled.
- *
- * @return true if the component is enabled, false otherwise
- */
- // public boolean isEnabled();
-
- /**
- *
- * Called once by the framework to initialize the connector.
- *
- * Note that the shared state is not yet available at this point.
- */
- public void doInit(String connectorId, ApplicationConnection connection);
-
- }
|