|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.vaadin.terminal.gwt.client.ConnectorMap
public class ConnectorMap
Constructor Summary | |
---|---|
ConnectorMap()
|
Method Summary | |
---|---|
void |
clear()
Removes all registered connectors |
static ConnectorMap |
get(ApplicationConnection applicationConnection)
|
ComponentConnector[] |
getComponentConnectors()
Gets all registered ComponentConnector instances |
ComponentConnector |
getConnector(com.google.gwt.dom.client.Element element)
Returns a ComponentConnector element by its root element |
ServerConnector |
getConnector(String connectorId)
Returns a ServerConnector by its id |
ComponentConnector |
getConnector(com.google.gwt.user.client.ui.Widget widget)
Retrieves the connector whose widget matches the parameter. |
Collection<? extends ServerConnector> |
getConnectors()
|
com.google.gwt.dom.client.Element |
getElement(String connectorId)
Gets the main element for the connector with the given id. |
boolean |
hasConnector(String connectorId)
Checks if a connector with the given id has been registered. |
boolean |
isConnector(com.google.gwt.user.client.ui.Widget w)
Tests if the widget is the root widget of a ComponentConnector . |
boolean |
isDragAndDropPaintable(String pid)
FIXME: What does this even do and why? |
void |
registerConnector(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(String connectorId)
ServerConnector
by its id
id
- The connector id
public ComponentConnector getConnector(com.google.gwt.dom.client.Element element)
ComponentConnector
element by its root element
element
- Root element of the ComponentConnector
public boolean isDragAndDropPaintable(String pid)
pid
-
public boolean hasConnector(String connectorId)
connectorId
- The id to check for
public void clear()
public ComponentConnector getConnector(com.google.gwt.user.client.ui.Widget widget)
widget
- The widget
public void registerConnector(String id, ServerConnector connector)
public com.google.gwt.dom.client.Element getElement(String connectorId)
getConnectorId(Element)
.
connectorId
- the id of the widget whose element is desired
public void unregisterConnector(ServerConnector connector)
connector
- the connector to removepublic ComponentConnector[] getComponentConnectors()
ComponentConnector
instances
ComponentConnector
instancespublic int size()
public Collection<? extends ServerConnector> getConnectors()
public boolean isConnector(com.google.gwt.user.client.ui.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 |