本文整理汇总了Java中com.extjs.gxt.ui.client.util.Theme类的典型用法代码示例。如果您正苦于以下问题:Java Theme类的具体用法?Java Theme怎么用?Java Theme使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Theme类属于com.extjs.gxt.ui.client.util包,在下文中一共展示了Theme类的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onModuleLoad
import com.extjs.gxt.ui.client.util.Theme; //导入依赖的package包/类
public void onModuleLoad() {
ThemeManager.register(Theme.GRAY);
GXT.setDefaultTheme(Theme.GRAY, true);
if (!GWT.isScript()) { // hosted
GWT.setUncaughtExceptionHandler(new GWT.UncaughtExceptionHandler() {
public void onUncaughtException(Throwable e) {
e.printStackTrace();
}
});
}
// loading system delegate
AmDelegateAsync amDelegate = (AmDelegateAsync) GWT.create(AmDelegate.class);
((ServiceDefTarget) amDelegate).setServiceEntryPoint(GWT.getModuleBaseURL() + FinanceConstants.ENDPOINT_AM);
Registry.register(FinanceConstants.DELEGATE_AM, amDelegate);
SoDelegateAsync soDelegate = (SoDelegateAsync) GWT.create(SoDelegate.class);
((ServiceDefTarget) amDelegate).setServiceEntryPoint(GWT.getModuleBaseURL() + FinanceConstants.ENDPOINT_SO);
Registry.register(FinanceConstants.DELEGATE_SO, soDelegate);
DdDelegateAsync ddDelegate = (DdDelegateAsync) GWT.create(DdDelegate.class);
((ServiceDefTarget) ddDelegate).setServiceEntryPoint(GWT.getModuleBaseURL() + FinanceConstants.ENDPOINT_DD);
Registry.register(FinanceConstants.DELEGATE_DD, ddDelegate);
// add main application controller
// trigger InitApplicationModel event
Dispatcher dispatcher = Dispatcher.get();
dispatcher.addController(new FinanceController());
dispatcher.dispatch(FinanceEvents.InitApplicationModel);
}