@ModuleMarker(value="MC_MAIN_FRAME",
name="\u4e3b\u7a97\u53e3",
icon="icon.png")
public class MainFrame
extends BaseAbstractModuleWithEvent
implements cn.mapway.ui.client.mqtt.IMqttHandler, cn.mapway.ui.client.mvc.IModuleDispatcher
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
MODULE_CODE
The constant MODULE_CODE.
|
static String |
MQTT_CONNECTION_ARRIVED
mqtt 连接创建
|
static String |
MQTT_CONNECTION_LOST
mqtt 连接失败
|
static String |
MQTT_JSON_PARSE_ERROR |
| 构造器和说明 |
|---|
MainFrame()
Instantiates a new main frame.
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
buildMainMenu(PagerData<S_RESOURCEObj> result)
Builds the main menu.
|
String |
getModuleCode() |
boolean |
initialize(cn.mapway.ui.client.mvc.IModule parentModule,
cn.mapway.ui.client.mvc.ModuleParameter parameters) |
void |
onConnect(cn.mapway.ui.client.mqtt.MqttJsClient client) |
void |
onConnectionLost(cn.mapway.ui.client.mqtt.MqttJsClient client,
cn.mapway.ui.client.mqtt.event.ConnectionLostEvent event) |
void |
onConnetFailed(cn.mapway.ui.client.mqtt.MqttJsClient client,
String message) |
void |
onEvent(String topic,
int type,
Object event)
处理总线上的消息.
|
void |
onJsonParseError(JsonParseError error)
解析JSON错误
|
void |
onMessageArrived(cn.mapway.ui.client.mqtt.MqttJsClient client,
cn.mapway.ui.client.mqtt.event.MessageArriveEvent event) |
void |
refreshView()
用户登录后更新首页面.
|
protected void |
showUser()
显示用户信息.
|
cn.mapway.ui.client.mvc.IModuleDispatcher |
switchModule(String code,
cn.mapway.ui.client.mvc.ModuleParameter parameters,
boolean saveToHistory)
切换模块
|
postMessage, postTopic, postTopic, registerEventHandler, unRegisterEventHandlerappendTools, appendTools, getModuleFactory, getModuleInfo, getModulePath, getParameters, getParentModule, getRootWidget, initModuleWidget, unInitialize, updateToolsaddMessageHandler, closeInfo, fireMessage, handlerMessaage, info, info, message, onMessage, updateclaimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidgetaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEventsaddStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toStringpublic String getModuleCode()
getModuleCode 在类中 cn.mapway.ui.client.mvc.BaseAbstractModulepublic void onEvent(String topic, int type, Object event)
BaseAbstractModuleWithEventonEvent 在接口中 cn.mapway.ui.client.event.IEventHandleronEvent 在类中 BaseAbstractModuleWithEventpublic boolean initialize(cn.mapway.ui.client.mvc.IModule parentModule,
cn.mapway.ui.client.mvc.ModuleParameter parameters)
initialize 在接口中 cn.mapway.ui.client.mvc.IModuleinitialize 在类中 cn.mapway.ui.client.mvc.BaseAbstractModulepublic void refreshView()
protected void showUser()
protected void buildMainMenu(PagerData<S_RESOURCEObj> result)
result - the resultpublic cn.mapway.ui.client.mvc.IModuleDispatcher switchModule(String code, cn.mapway.ui.client.mvc.ModuleParameter parameters, boolean saveToHistory)
switchModule 在接口中 cn.mapway.ui.client.mvc.IModuleDispatcherpublic void onConnectionLost(cn.mapway.ui.client.mqtt.MqttJsClient client,
cn.mapway.ui.client.mqtt.event.ConnectionLostEvent event)
onConnectionLost 在接口中 cn.mapway.ui.client.mqtt.IMqttHandlerpublic void onMessageArrived(cn.mapway.ui.client.mqtt.MqttJsClient client,
cn.mapway.ui.client.mqtt.event.MessageArriveEvent event)
onMessageArrived 在接口中 cn.mapway.ui.client.mqtt.IMqttHandlerpublic void onJsonParseError(JsonParseError error)
error - public void onConnect(cn.mapway.ui.client.mqtt.MqttJsClient client)
onConnect 在接口中 cn.mapway.ui.client.mqtt.IMqttHandlerpublic void onConnetFailed(cn.mapway.ui.client.mqtt.MqttJsClient client,
String message)
onConnetFailed 在接口中 cn.mapway.ui.client.mqtt.IMqttHandlerCopyright © 2020. All rights reserved.