本文整理汇总了Java中com.vaadin.client.ConnectorMap类的典型用法代码示例。如果您正苦于以下问题:Java ConnectorMap类的具体用法?Java ConnectorMap怎么用?Java ConnectorMap使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ConnectorMap类属于com.vaadin.client包,在下文中一共展示了ConnectorMap类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: decode
import com.vaadin.client.ConnectorMap; //导入依赖的package包/类
/**
* Decodes the connectorId from the JSON to the real connector.
*
* @param jsonConnectorId the json value to decode
* @return the component connector to be rendered by the ComponentRenderer
*/
@Override
public ComponentConnector decode(JsonValue jsonConnectorId) {
if(jsonConnectorId != Json.createNull()) {
return (ComponentConnector) ConnectorMap.get(getConnection()).getConnector(jsonConnectorId.toString());
} else {
return null;
}
}
示例2: onKeyDown
import com.vaadin.client.ConnectorMap; //导入依赖的package包/类
@Override
public void onKeyDown(KeyDownEvent event) {
// delegate to closest shortcut action handler
// throw event from the iframe forward to the shortcuthandler
ShortcutActionHandler shortcutHandler = getShortcutHandlerOwner()
.getShortcutActionHandler();
if (shortcutHandler != null) {
shortcutHandler
.handleKeyboardEvent(com.google.gwt.user.client.Event
.as(event.getNativeEvent()),
ConnectorMap.get(client).getConnector(this)
);
}
}
示例3: getConnector
import com.vaadin.client.ConnectorMap; //导入依赖的package包/类
protected CubaTreeConnector getConnector() {
return (CubaTreeConnector) ConnectorMap.get(client).getConnector(this);
}