• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java PageShowing类的典型用法和代码示例

java 1次浏览

本文整理汇总了Java中org.jboss.errai.ui.nav.client.local.PageShowing的典型用法代码示例。如果您正苦于以下问题:Java PageShowing类的具体用法?Java PageShowing怎么用?Java PageShowing使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

PageShowing类属于org.jboss.errai.ui.nav.client.local包,在下文中一共展示了PageShowing类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: setup

点赞 3

import org.jboss.errai.ui.nav.client.local.PageShowing; //导入依赖的package包/类
/**
 * (Re-)initializes this widget when it is shown.
 */
@PageShowing
private void setup() {
	PortableConference last = widget.getModel();
	if (last != null && (Objects.equal(last.getObjectId(), objectId)))
		return;
	// Set model
	if (objectId != null) {
		// From server-side
 		service.call(new RemoteCallback<PortableConference>() {
 			@Override public void callback(PortableConference response) {
 				widget.setModel(response);
       }
 		}).read(objectId);
	}
	else {
		// New instance
		widget.setModel(new PortableConference());
	}
}
 

开发者ID:pd-pmueller,
项目名称:cpa,
代码行数:23,
代码来源:ConferenceEditPage.java

示例2: _onPageShowing

点赞 2

import org.jboss.errai.ui.nav.client.local.PageShowing; //导入依赖的package包/类
/**
 * Called when a page is about to be shown (either when the app is first loaded or
 * when navigating TO this page from another).
 */
@PageShowing
private final void _onPageShowing() {
    // Do initial page loading work, but do it as a post-init task
    // of the errai bus so that all RPC endpoints are ready.  This
    // is only necessary on initial app load, but it doesn't hurt
    // to always do it.
    CDI.addPostInitTask(new Runnable() {
        @Override
        public void run() {
            onPageShowing();
        }
    });
}
 

开发者ID:Governance,
项目名称:rtgov-ui,
代码行数:18,
代码来源:AbstractPage.java

示例3: pageShowing

点赞 2

import org.jboss.errai.ui.nav.client.local.PageShowing; //导入依赖的package包/类
@PageShowing
private void pageShowing(HistoryToken token)
{
   boolean update = false;

   Collection<String> texts = token.getState().get("t");
   if (!texts.isEmpty())
   {
      text.setValue(texts.iterator().next());
      update = true;
   }

   Collection<String> regexes = token.getState().get("r");
   if (!regexes.isEmpty())
   {
      regex.setValue(regexes.iterator().next());
      update = true;
   }

   Collection<String> replacements = token.getState().get("x");
   if (!replacements.isEmpty())
   {
      replacement.setValue(replacements.iterator().next());
      update = true;
   }

   if (update)
   {
      new Timer() {
         @Override
         public void run()
         {
            requestUpdate();
         }
      }.schedule(DELAY);
   }
}
 

开发者ID:ocpsoft,
项目名称:regex-tester,
代码行数:38,
代码来源:Tester.java

示例4: onShowing

点赞 2

import org.jboss.errai.ui.nav.client.local.PageShowing; //导入依赖的package包/类
@PageShowing
public void onShowing() {
    loadEvent.fire(new LoadEvent(true, ProgressType.INDETERMINATE));
}
 

开发者ID:kevzlou7979,
项目名称:gwt-material-chat,
代码行数:5,
代码来源:SettingsPage.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)