|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.client.ConnectorMap
public class ConnectorMap
| Constructor Summary | |
|---|---|
ConnectorMap()
|
|
| Method Summary | |
|---|---|
void |
clear()
Removes all registered connectors |
static ConnectorMap |
get(ApplicationConnection applicationConnection)
|
ComponentConnector[] |
getComponentConnectors()
Deprecated. As of 7.0.1, use getComponentConnectorsAsJsArray()
for better performance. |
JsArrayObject<ComponentConnector> |
getComponentConnectorsAsJsArray()
|
ComponentConnector |
getConnector(Element element)
Returns a ComponentConnector element by its root element. |
ServerConnector |
getConnector(java.lang.String connectorId)
Returns a ServerConnector by its id |
ComponentConnector |
getConnector(Widget widget)
Retrieves the connector whose widget matches the parameter. |
java.util.Collection<? extends ServerConnector> |
getConnectors()
Deprecated. As of 7.0.1, use getConnectorsAsJsArray() for
improved performance. |
JsArrayObject<ServerConnector> |
getConnectorsAsJsArray()
|
Element |
getElement(java.lang.String connectorId)
Gets the main element for the connector with the given id. |
boolean |
hasConnector(java.lang.String connectorId)
Checks if a connector with the given id has been registered. |
boolean |
isConnector(Widget w)
Tests if the widget is the root widget of a ComponentConnector. |
boolean |
isDragAndDropPaintable(java.lang.String pid)
FIXME: What does this even do and why? |
void |
registerConnector(java.lang.String id,
ServerConnector connector)
|
int |
size()
|
void |
unregisterConnector(ServerConnector connector)
Unregisters the given connector; always use after removing a connector. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConnectorMap()
| Method Detail |
|---|
public static ConnectorMap get(ApplicationConnection applicationConnection)
public ServerConnector getConnector(java.lang.String connectorId)
ServerConnector by its id
id - The connector id
public ComponentConnector getConnector(Element element)
ComponentConnector element by its root element.
element - Root element of the ComponentConnector
public boolean isDragAndDropPaintable(java.lang.String pid)
pid -
public boolean hasConnector(java.lang.String connectorId)
connectorId - The id to check for
public void clear()
public ComponentConnector getConnector(Widget widget)
widget - The widget
public void registerConnector(java.lang.String id,
ServerConnector connector)
public Element getElement(java.lang.String connectorId)
getConnectorId(Element).
connectorId - the id of the widget whose element is desired
public void unregisterConnector(ServerConnector connector)
connector - the connector to remove@Deprecated public ComponentConnector[] getComponentConnectors()
getComponentConnectorsAsJsArray()
for better performance.
ComponentConnector instances
ComponentConnector instancespublic JsArrayObject<ComponentConnector> getComponentConnectorsAsJsArray()
public int size()
@Deprecated public java.util.Collection<? extends ServerConnector> getConnectors()
getConnectorsAsJsArray() for
improved performance.
public JsArrayObject<ServerConnector> getConnectorsAsJsArray()
public boolean isConnector(Widget w)
ComponentConnector.
widget - The widget to test
ComponentConnector, false otherwise
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||