本文整理汇总了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);
}
});
}
}
});
}
示例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();
}
}
示例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();
}
}
示例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();
}
}
示例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();
}
}
示例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();
}
}
示例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();
}
}
示例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);
}
}
});
}
示例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;
}
});
}
}
示例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;
}
});
}
}
示例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);
}
}
});
}
示例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();
}
}
示例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+"×tamp="+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();
}
});
}
示例14: addHideHandler
import com.sencha.gxt.widget.core.client.event.HideEvent.HideHandler; //导入依赖的package包/类
@Override
public HandlerRegistration addHideHandler(HideHandler handler) {
return view.addHideHandler(handler);
}
示例15: addHideHandler
import com.sencha.gxt.widget.core.client.event.HideEvent.HideHandler; //导入依赖的package包/类
public HandlerRegistration addHideHandler(HideHandler handler);