• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java OpenHandler类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中com.google.gwt.event.logical.shared.OpenHandler的典型用法代码示例。如果您正苦于以下问题:Java OpenHandler类的具体用法?Java OpenHandler怎么用?Java OpenHandler使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



OpenHandler类属于com.google.gwt.event.logical.shared包,在下文中一共展示了OpenHandler类的17个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: onSuccess

import com.google.gwt.event.logical.shared.OpenHandler; //导入依赖的package包/类
public void onSuccess(List<PacketBbsThread> result) {
	for (final PacketBbsThread thread : result) {
		final LazyPanel lazyPanel = new LazyPanel() {
			@Override
			protected Widget createWidget() {
				DecoratorPanel decoratorPanel = new DecoratorPanel();
				decoratorPanel.setWidget(new PanelThread((int) thread.id, thread.title));
				return decoratorPanel;
			}
		};

		OpenHandler<DisclosurePanel> openHandler = new OpenHandler<DisclosurePanel>() {
			@Override
			public void onOpen(OpenEvent<DisclosurePanel> event) {
				lazyPanel.ensureWidget();
			}
		};

		DisclosurePanel disclosurePanel = new DisclosurePanel(thread.title);
		disclosurePanel.setContent(lazyPanel);
		disclosurePanel.addOpenHandler(openHandler);
		add(disclosurePanel);
	}
}
 
开发者ID:nodchip,项目名称:QMAClone,代码行数:25,代码来源:PanelThreadList.java


示例2: addBlankLine

import com.google.gwt.event.logical.shared.OpenHandler; //导入依赖的package包/类
public void addBlankLine() {
	List<Widget> line = new ArrayList<Widget>();

	HorizontalPanel hp = new HorizontalPanel();
	line.add(hp);

	CurriculaCourseSelectionBox cx = new CurriculaCourseSelectionBox();
	cx.setWidth("130px");
	cx.addCourseSelectionHandler(iCourseChangedHandler);
	if (cx.getCourseFinder() instanceof HasOpenHandlers)
		((HasOpenHandlers<PopupPanel>)cx.getCourseFinder()).addOpenHandler(new OpenHandler<PopupPanel>() {
			@Override
			public void onOpen(OpenEvent<PopupPanel> event) {
				iTable.clearHover();
			}
		});
	if (!iEditable) cx.setEnabled(false);
	line.add(cx);
	
	for (int col = 0; col < iClassifications.getClassifications().size(); col++) {
		ShareTextBox ex = new ShareTextBox(col, null, null);
		if (!iEditable) ex.setReadOnly(true);
		line.add(ex);
		EnrollmentLabel note = new EnrollmentLabel(col, null, null, null, null, null, null);
		line.add(note);
	}
	
	int row = iTable.addRow("", line);
	iTable.getRowFormatter().addStyleName(row, "unitime-NoPrint");
	if (iVisibleCourses != null) iTable.getRowFormatter().setVisible(row, false);
	for (int col = 0; col < line.size(); col++)
		if (!iTable.getCellFormatter().isVisible(0, col))
			iTable.getCellFormatter().setVisible(row, col, false);
}
 
开发者ID:Jenner4S,项目名称:unitimes,代码行数:35,代码来源:CurriculaCourses.java


示例3: setDatasetOpenHandler

import com.google.gwt.event.logical.shared.OpenHandler; //导入依赖的package包/类
public void setDatasetOpenHandler(OpenHandler<TreeItem> handler) {
    // There is no default open handler, so if it's null don't remove it.
    if (xRegisterDatasetOpenHandler != null) {
        xRegisterDatasetOpenHandler.removeHandler();
    }
    xRegisterDatasetOpenHandler = xDatasetButton.addOpenHandler(handler);
}
 
开发者ID:NOAA-PMEL,项目名称:LAS,代码行数:8,代码来源:BaseUI.java


示例4: addDocTreeOpenHandler

import com.google.gwt.event.logical.shared.OpenHandler; //导入依赖的package包/类
/**
 * 
 */
private void addDocTreeOpenHandler() {
	docTree.addOpenHandler(new OpenHandler<TreeItem>() {

		@Override
		public void onOpen(OpenEvent<TreeItem> arg0) {
			TreeItem target = arg0.getTarget();
			String title = target.getTitle();
			String text = target.getText();
			presenter.document = getdocTreeItemByTitle(arg0.getTarget().getTitle()).document;
			boolean isAlreadySelected = setDocumentSelected(arg0.getTarget());

			List<Page> pageList = presenter.document.getPages().getPage();
			for (Page page : pageList) {
				String identifier = page.getIdentifier();
				PageImage pageImage = pageImageMap.get(identifier);
				RotatableImage image = pageImage.getImage();
				if (!page.isIsRotated()) {
					image.setUrl(presenter.batchDTO.getAbsoluteURLFor(page.getThumbnailFileName()), page.getDirection());
				} else {
					image.setUrl(presenter.batchDTO.getAbsoluteURLForRotatedImage(page.getThumbnailFileName(), page.getDirection()
							.toString()), page.getDirection());
				}
			}

			presenter.page = presenter.document.getPages().getPage().get(0);

			setPageSelected(getPageImageById(presenter.page.getIdentifier()).image, false);
			int itemCount = presenter.getView().getRvPanel().getReviewPanel().documentTypes.getItemCount();
			if (target.getChildCount() > 0 && !(title.isEmpty() && text.isEmpty())) {
				scrollIntoView(target.getElement());
			}
			if (!isAlreadySelected || itemCount == 0) {
				DocumentTree.this.fireEvent(new DocExpandEvent(presenter.document));
			} else {
				DocumentTree.this.fireEvent(new DocExpandEvent(presenter.document, false));
			}
		}
	});
}
 
开发者ID:kuzavas,项目名称:ephesoft,代码行数:43,代码来源:DocumentTree.java


示例5: addOpenHandler

import com.google.gwt.event.logical.shared.OpenHandler; //导入依赖的package包/类
public HandlerRegistration addOpenHandler(OpenHandler<UniTimeDialogBox> handler) {
    return addHandler(handler, OpenEvent.getType());
}
 
开发者ID:Jenner4S,项目名称:unitimes,代码行数:4,代码来源:UniTimeDialogBox.java


示例6: addOpenHandler

import com.google.gwt.event.logical.shared.OpenHandler; //导入依赖的package包/类
@Override
public HandlerRegistration addOpenHandler(OpenHandler<WindowBox> handler) {
	return addHandler(handler, OpenEvent.getType());
}
 
开发者ID:NOAA-PMEL,项目名称:LAS,代码行数:5,代码来源:WindowBox.java


示例7: addOpenHandler

import com.google.gwt.event.logical.shared.OpenHandler; //导入依赖的package包/类
public HandlerRegistration addOpenHandler(OpenHandler<TreeItem> handler) {
    return datasetWidget.addOpenHandler(handler);
}
 
开发者ID:NOAA-PMEL,项目名称:LAS,代码行数:4,代码来源:DatasetButton.java


示例8: addOpenHandler

import com.google.gwt.event.logical.shared.OpenHandler; //导入依赖的package包/类
public HandlerRegistration addOpenHandler(final OpenHandler<Appointment> appointmentOpenHandler) {
    return calendar.addOpenHandler(appointmentOpenHandler);
}
 
开发者ID:kiegroup,项目名称:kie-docker-ci,代码行数:4,代码来源:KieCalendar.java


示例9: addOpenHandler

import com.google.gwt.event.logical.shared.OpenHandler; //导入依赖的package包/类
@Override
public final HandlerRegistration addOpenHandler(final OpenHandler<TreeViewItem> handler) {
	return this.addHandler(handler,
						   OpenEvent.getType());
}
 
开发者ID:opendata-euskadi,项目名称:r01fb,代码行数:6,代码来源:TreeView.java


示例10: addOpenHandler

import com.google.gwt.event.logical.shared.OpenHandler; //导入依赖的package包/类
@Override
public HandlerRegistration addOpenHandler(OpenHandler<DisclosurePanel> h) {
  return main.addOpenHandler(h);
}
 
开发者ID:gerrit-review,项目名称:gerrit,代码行数:5,代码来源:ComplexDisclosurePanel.java


示例11: addOpenHandler

import com.google.gwt.event.logical.shared.OpenHandler; //导入依赖的package包/类
@Override
public HandlerRegistration addOpenHandler(final OpenHandler<T> handler) {
    return addHandler(handler,
                      OpenEvent.getType());
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:6,代码来源:Tree.java


示例12: addOpenHandler

import com.google.gwt.event.logical.shared.OpenHandler; //导入依赖的package包/类
public HandlerRegistration addOpenHandler(OpenHandler<AbstractLazyStackPanelHeader> handler) {
    return addHandler(handler,
                      OpenEvent.getType());
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:5,代码来源:AbstractLazyStackPanelHeader.java


示例13: addOpenHandler

import com.google.gwt.event.logical.shared.OpenHandler; //导入依赖的package包/类
public HandlerRegistration addOpenHandler(OpenHandler<DisclosurePanel> openHandler) {
    return widget.addOpenHandler(openHandler);
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:4,代码来源:DecoratedDisclosurePanel.java


示例14: addOpenHandler

import com.google.gwt.event.logical.shared.OpenHandler; //导入依赖的package包/类
@Override
public HandlerRegistration addOpenHandler(OpenHandler<WindowUI> handler) {
	return addHandler(handler, OpenEvent.getType());
}
 
开发者ID:marat-gainullin,项目名称:platypus-js,代码行数:5,代码来源:WindowPanel.java


示例15: addOpenHandler

import com.google.gwt.event.logical.shared.OpenHandler; //导入依赖的package包/类
@Override
public HandlerRegistration addOpenHandler(OpenHandler<WindowUI> handler) {
    return window.addHandler(handler, OpenEvent.getType());
}
 
开发者ID:marat-gainullin,项目名称:platypus-js,代码行数:5,代码来源:WindowPopupPanel.java


示例16: addOpenHandler

import com.google.gwt.event.logical.shared.OpenHandler; //导入依赖的package包/类
@Override
public HandlerRegistration addOpenHandler(OpenHandler<AutoCloseBox> handler) {
	return addHandler(handler, OpenEvent.getType());
}
 
开发者ID:marat-gainullin,项目名称:platypus-js,代码行数:5,代码来源:AutoCloseBox.java


示例17: addOpenHandler

import com.google.gwt.event.logical.shared.OpenHandler; //导入依赖的package包/类
@Override
   public HandlerRegistration addOpenHandler(OpenHandler<TractionDialogBox> handler) {
return addHandler(handler, OpenEvent.getType());
   }
 
开发者ID:tractionsoftware,项目名称:gwt-traction,代码行数:5,代码来源:TractionDialogBox.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java Voice类代码示例发布时间:2022-05-21
下一篇:
Java DeniedByServerException类代码示例发布时间:2022-05-21
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap