当前位置: 首页>>代码示例>>Java>>正文


Java HideHandler类代码示例

本文整理汇总了Java中com.sencha.gxt.widget.core.client.event.HideEvent.HideHandler的典型用法代码示例。如果您正苦于以下问题:Java HideHandler类的具体用法?Java HideHandler怎么用?Java HideHandler使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


HideHandler类属于com.sencha.gxt.widget.core.client.event.HideEvent包,在下文中一共展示了HideHandler类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: ImportantContactConfigWindow

import com.sencha.gxt.widget.core.client.event.HideEvent.HideHandler; //导入依赖的package包/类
public ImportantContactConfigWindow(){
	importantContactList = new ArrayList<ZUser>();
	notImportantContactList = new ArrayList<ZUser>();
	setHeadingText("管理重要联系人");
	setModal(true);
	setSize("300", "200");
	add(panel);
	addButton(add);
	addButton(delete);
	addHideHandler(new HideHandler() {
		public void onHide(HideEvent event) {
			if(jobPresenter!=null){
				RPCS.getJobService().getUpstreamJob(jobPresenter.getJobModel().getId(), new AbstractAsyncCallback<JobModel>() {
					@Override
					public void onSuccess(JobModel result) {
						jobPresenter.display(result);
					}
				});
			}
		}
	});
}
 
开发者ID:ctripcorp,项目名称:dataworks-zeus,代码行数:23,代码来源:ImportantContactConfigWindow.java

示例2: loadPaidout

import com.sencha.gxt.widget.core.client.event.HideEvent.HideHandler; //导入依赖的package包/类
@Override
public void loadPaidout(final List<String> addresses) {
	PaidoutViewPresenter paidoutPresenter = openedPaidout.get(addresses);

	// If no window opened for the given addresses, then open it.
	if (paidoutPresenter == null) {
		boolean isAllAddresses = (addresses.size() == dataManager.getMiddlecoinDataManager().getAddresses().size() && dataManager
				.getMiddlecoinDataManager().getDataContainer().getAddressesStats().size() > 1);
		paidoutPresenter = new PaidoutViewPresenter(clientFactory, addresses, isAllAddresses);
		openedPaidout.put(addresses, paidoutPresenter);
		paidoutPresenter.addHideHandler(new HideHandler() {
			public void onHide(HideEvent event) {
				openedPaidout.remove(addresses);
			}
		});
	} else {
		// Else bring it to front.
		paidoutPresenter.bringToFront();
	}
}
 
开发者ID:Stratehm,项目名称:multipool-stats-backend,代码行数:21,代码来源:MiddlecoinViewPresenter.java

示例3: loadCurrencyDetails

import com.sencha.gxt.widget.core.client.event.HideEvent.HideHandler; //导入依赖的package包/类
@Override
public void loadCurrencyDetails(ExchangePlaceDTO exchangePlace, String currencyCode) {
	final Pair<String, String> key = new Pair<String, String>(exchangePlace.getName(), currencyCode);
	CurrencyViewPresenter currencyPresenter = openedCurrencies.get(key);

	// If no window opened for the given place and currency, then open it.
	if (currencyPresenter == null) {
		currencyPresenter = new CurrencyViewPresenter(clientFactory, exchangePlace, currencyCode);
		openedCurrencies.put(key, currencyPresenter);
		currencyPresenter.addHideHandler(new HideHandler() {
			public void onHide(HideEvent event) {
				openedCurrencies.remove(key);
			}
		});

	} else {
		// Else bring it to front.
		currencyPresenter.bringToFront();
	}
}
 
开发者ID:Stratehm,项目名称:multipool-stats-backend,代码行数:21,代码来源:MiddlecoinViewPresenter.java

示例4: loadPaidout

import com.sencha.gxt.widget.core.client.event.HideEvent.HideHandler; //导入依赖的package包/类
@Override
public void loadPaidout(final List<String> addresses) {
	PaidoutViewPresenter paidoutPresenter = openedPaidout.get(addresses);

	// If no window opened for the given addresses, then open it.
	if (paidoutPresenter == null) {
		boolean isAllAddresses = (addresses.size() == dataManager.getCoinshiftDataManager().getAddresses().size() && dataManager
				.getCoinshiftDataManager().getDataContainer().getAddressesStats().size() > 1);
		paidoutPresenter = new PaidoutViewPresenter(clientFactory, addresses, isAllAddresses);
		openedPaidout.put(addresses, paidoutPresenter);
		paidoutPresenter.addHideHandler(new HideHandler() {
			public void onHide(HideEvent event) {
				openedPaidout.remove(addresses);
			}
		});
	} else {
		// Else bring it to front.
		paidoutPresenter.bringToFront();
	}
}
 
开发者ID:Stratehm,项目名称:multipool-stats-backend,代码行数:21,代码来源:CoinshiftViewPresenter.java

示例5: loadPaidout

import com.sencha.gxt.widget.core.client.event.HideEvent.HideHandler; //导入依赖的package包/类
@Override
public void loadPaidout(final List<String> addresses) {
	PaidoutViewPresenter paidoutPresenter = openedPaidout.get(addresses);

	// If no window opened for the given addresses, then open it.
	if (paidoutPresenter == null) {
		boolean isAllAddresses = (addresses.size() == dataManager.getCoinsolverDataManager().getAddresses().size() && dataManager
				.getCoinsolverDataManager().getDataContainer().getAddressesStats().size() > 1);
		paidoutPresenter = new PaidoutViewPresenter(clientFactory, addresses, isAllAddresses);
		openedPaidout.put(addresses, paidoutPresenter);
		paidoutPresenter.addHideHandler(new HideHandler() {
			public void onHide(HideEvent event) {
				openedPaidout.remove(addresses);
			}
		});
	} else {
		// Else bring it to front.
		paidoutPresenter.bringToFront();
	}
}
 
开发者ID:Stratehm,项目名称:multipool-stats-backend,代码行数:21,代码来源:CoinsolverViewPresenter.java

示例6: loadPaidout

import com.sencha.gxt.widget.core.client.event.HideEvent.HideHandler; //导入依赖的package包/类
@Override
public void loadPaidout(final List<String> addresses) {
	PaidoutViewPresenter paidoutPresenter = openedPaidout.get(addresses);

	// If no window opened for the given addresses, then open it.
	if (paidoutPresenter == null) {
		boolean isAllAddresses = (addresses.size() == dataManager.getWaffleDataManager().getAddresses().size() && dataManager
				.getWaffleDataManager().getDataContainer().getAddressesStats().size() > 1);
		paidoutPresenter = new PaidoutViewPresenter(clientFactory, addresses, isAllAddresses);
		openedPaidout.put(addresses, paidoutPresenter);
		paidoutPresenter.addHideHandler(new HideHandler() {
			public void onHide(HideEvent event) {
				openedPaidout.remove(addresses);
			}
		});
	} else {
		// Else bring it to front.
		paidoutPresenter.bringToFront();
	}
}
 
开发者ID:Stratehm,项目名称:multipool-stats-backend,代码行数:21,代码来源:WaffleViewPresenter.java

示例7: onDelete

import com.sencha.gxt.widget.core.client.event.HideEvent.HideHandler; //导入依赖的package包/类
@Override
public void onDelete() {
	List<FileModel> fileModels = getFileManagerView().getSelectedItems();
	if(!fileModels.isEmpty()){
		final FileModel model=fileModels.get(0);
		String msg="";
		if(model.isFolder()){
			msg="确定 删除文件夹 以及文件夹下所有的文件?";
		}else{
			msg="确定 删除文件:"+model.getName()+"?";
		}
		ConfirmMessageBox box=new ConfirmMessageBox("删除", msg);
		box.addHideHandler(new HideHandler() {
			public void onHide(HideEvent event) {
				Dialog dialog=(Dialog) event.getSource();
				if(DefaultMessages.getMessages().messageBox_yes().equals(dialog.getHideButton().getText())){
					context.getFileSystem().deleteFile(model.getId(), new PlatformAsyncCallback<Void>() {
						public void callback(Void t) {
							getFileManagerView().getMyTreeStore().remove(model);
						}
					});
				}
			}
		});
		box.show();
	}
}
 
开发者ID:ctripcorp,项目名称:dataworks-zeus,代码行数:28,代码来源:FileManagerPresenterImpl.java

示例8: addHideHandler

import com.sencha.gxt.widget.core.client.event.HideEvent.HideHandler; //导入依赖的package包/类
@Override
public HandlerRegistration addHideHandler(final HideHandler handler) {
	return window.addHideHandler(new HideHandler() {
		public void onHide(HideEvent event) {
			if (fireHideEvent) {
				handler.onHide(event);
			}
		}
	});
}
 
开发者ID:Stratehm,项目名称:multipool-stats-backend,代码行数:11,代码来源:PaidoutViewImpl.java

示例9: openMiddlecoinTwitterWindow

import com.sencha.gxt.widget.core.client.event.HideEvent.HideHandler; //导入依赖的package包/类
@Override
public void openMiddlecoinTwitterWindow() {
	if (middlecoinTwitterTimelineWindow != null) {
		middlecoinTwitterTimelineWindow.activate();
	} else {
		middlecoinTwitterTimelineWindow = new TwitterTimelineWindow("Middlecoin Twitter", "https://twitter.com/middlecoinpool",
				"430349112135794689");

		middlecoinTwitterTimelineWindow.addHideHandler(new HideHandler() {
			public void onHide(HideEvent event) {
				middlecoinTwitterTimelineWindow = null;
			}
		});
	}
}
 
开发者ID:Stratehm,项目名称:multipool-stats-backend,代码行数:16,代码来源:MiddlecoinViewPresenter.java

示例10: openCoinshiftTwitterWindow

import com.sencha.gxt.widget.core.client.event.HideEvent.HideHandler; //导入依赖的package包/类
@Override
public void openCoinshiftTwitterWindow() {
	if (coinshiftTwitterTimelineWindow != null) {
		coinshiftTwitterTimelineWindow.activate();
	} else {
		coinshiftTwitterTimelineWindow = new TwitterTimelineWindow("CoinShift Twitter", "https://twitter.com/CoinShift", "445511823538663425");

		coinshiftTwitterTimelineWindow.addHideHandler(new HideHandler() {
			public void onHide(HideEvent event) {
				coinshiftTwitterTimelineWindow = null;
			}
		});
	}
}
 
开发者ID:Stratehm,项目名称:multipool-stats-backend,代码行数:15,代码来源:CoinshiftViewPresenter.java

示例11: addHideHandler

import com.sencha.gxt.widget.core.client.event.HideEvent.HideHandler; //导入依赖的package包/类
public HandlerRegistration addHideHandler(final HideHandler handler) {
	return window.addHideHandler(new HideHandler() {
		public void onHide(HideEvent event) {
			if (fireHideEvent) {
				handler.onHide(event);
			}
		}
	});
}
 
开发者ID:Stratehm,项目名称:multipool-stats-backend,代码行数:10,代码来源:TwitterTimelineWindow.java

示例12: showNotification

import com.sencha.gxt.widget.core.client.event.HideEvent.HideHandler; //导入依赖的package包/类
public static void showNotification(String title, String message) {

		if (!isAlreadyOpened(title, message) && !isAlreadyClosed(title, message)) {

			if (openedNotifications.size() >= MAX_NOTIFICATION_OPENED) {
				// Close the first notification
				openedNotifications.getFirst().hide();
			}

			final NotificationWindow notification = new NotificationWindow(title, message);
			Point position = getNextPosition();
			notification.setPosition(position.getX(), position.getY());

			notification.addHideHandler(new HideHandler() {
				public void onHide(HideEvent event) {
					openedNotifications.remove(notification);
					alreadyClosedNotifications.add(new Pair<String, String>(notification.getTitleText(), notification.getMessage()));
					updatePositions();
				}
			});

			openedNotifications.add(notification);

			notification.show();
		}

	}
 
开发者ID:Stratehm,项目名称:multipool-stats-backend,代码行数:28,代码来源:Notification.java

示例13: LogWindow

import com.sencha.gxt.widget.core.client.event.HideEvent.HideHandler; //导入依赖的package包/类
public LogWindow() {
	html = new ScrollPanel();
	html.addStyleName("console-font");
	add(container);
	container.setCenterWidget(html);
	frame.setHeight("140px");
	frame.getElement().setAttribute("style", "border-width:0px");
	BorderLayoutData layoutData=new BorderLayoutData(140);
	container.setSouthWidget(frame, layoutData);
	setSize("700", "500");
	setHeadingText("日志");
	setMaximizable(true);
	timer = new Timer() {
		public void run() {
			RPCS.getJobService().getJobHistory(id,
					new AbstractAsyncCallback<JobHistoryModel>() {
						@Override
						public void onSuccess(JobHistoryModel result) {
							String lastJobId=null;
							if (!result.getLog().equals(lastContent)) {
								String[] lines=result.getLog().split("\n");
								StringBuffer sb=new StringBuffer();
								for(String line:lines){
									String job=ToolUtil.extractJobId(line);
									if(job!=null){
										lastJobId=job;
										String newline=line.replaceAll(job, "<a target='_blank' href='jobdetail.jsp?type=2&jobid="+job+">"+job+"</a>");
										sb.append(newline+"<br/>");
									}else{
										sb.append(line+"<br/>");
									}
								}
								boolean needScroll=(html.getMaximumVerticalScrollPosition()==html.getVerticalScrollPosition());
								html.getElement().setInnerHTML(sb.toString());
								if(needScroll){
									html.scrollToBottom();
								}
								if(result.getEndTime()!=null || lastJobId==null){
									container.hide(LayoutRegion.SOUTH);
								}else if(lastJobId!=null){
									String url="jobdetail.jsp?type=1&jobId="+lastJobId+"&timestamp="+new Date().getTime();
									frame.setUrl(url);
									container.show(LayoutRegion.SOUTH);
								}
								lastContent = result.getLog();
							}
							if (result.getEndTime() != null) {
								timer.cancel();
								return;
							}
						}
					});
		}
	};
	addHideHandler(new HideHandler() {
		public void onHide(HideEvent event) {
			timer.cancel();
		}
	});
}
 
开发者ID:ctripcorp,项目名称:dataworks-zeus,代码行数:61,代码来源:CardHistory.java

示例14: addHideHandler

import com.sencha.gxt.widget.core.client.event.HideEvent.HideHandler; //导入依赖的package包/类
@Override
public HandlerRegistration addHideHandler(HideHandler handler) {
	return view.addHideHandler(handler);
}
 
开发者ID:Stratehm,项目名称:multipool-stats-backend,代码行数:5,代码来源:PaidoutViewPresenter.java

示例15: addHideHandler

import com.sencha.gxt.widget.core.client.event.HideEvent.HideHandler; //导入依赖的package包/类
public HandlerRegistration addHideHandler(HideHandler handler); 
开发者ID:Stratehm,项目名称:multipool-stats-backend,代码行数:2,代码来源:CurrencyView.java


注:本文中的com.sencha.gxt.widget.core.client.event.HideEvent.HideHandler类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。