日韩av黄I国产麻豆传媒I国产91av视频在线观看I日韩一区二区三区在线看I美女国产在线I麻豆视频国产在线观看I成人黄色短片

歡迎訪問(wèn) 生活随笔!

生活随笔

當(dāng)前位置: 首頁(yè) >

java widget_Java FavoritesWidget类代码示例

發(fā)布時(shí)間:2023/12/14 27 豆豆
生活随笔 收集整理的這篇文章主要介紹了 java widget_Java FavoritesWidget类代码示例 小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

import com.google.gwt.sample.dynatablerf.client.widgets.FavoritesWidget; //導(dǎo)入依賴的package包/類

/**

* This method sets up the top-level services used by the application.

*/

public void onModuleLoad() {

GWT.setUncaughtExceptionHandler(new UncaughtExceptionHandler() {

public void onUncaughtException(Throwable e) {

log.log(Level.SEVERE, e.getMessage(), e);

}

});

final DynaTableRequestFactory requests = GWT.create(DynaTableRequestFactory.class);

requests.initialize(eventBus);

// Add remote logging handler

RequestFactoryLogHandler.LoggingRequestProvider provider = new RequestFactoryLogHandler.LoggingRequestProvider() {

public LoggingRequest getLoggingRequest() {

return requests.loggingRequest();

}

};

Logger.getLogger("").addHandler(new ErrorDialog().getHandler());

Logger.getLogger("").addHandler(

new RequestFactoryLogHandler(provider, Level.WARNING,

new ArrayList()));

FavoritesManager manager = new FavoritesManager(requests);

PersonEditorWorkflow.register(eventBus, requests, manager);

calendar = new SummaryWidget(eventBus, requests, 15);

favorites = new FavoritesWidget(eventBus, requests, manager);

filter = new DayFilterWidget(eventBus);

RootLayoutPanel.get().add(

GWT. create(Binder.class).createAndBindUi(this));

// Fast test to see if the sample is not being run from devmode

if (GWT.getHostPageBaseURL().startsWith("file:")) {

log.log(Level.SEVERE, "The DynaTableRf sample cannot be run without its"

+ " server component. If you are running the sample from a"

+ " GWT distribution, use the 'ant devmode' target to launch"

+ " the DTRF server.");

}

}

總結(jié)

以上是生活随笔為你收集整理的java widget_Java FavoritesWidget类代码示例的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。

如果覺(jué)得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。