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


Java ImageResource类代码示例

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


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

示例1: IconCell

import com.google.gwt.resources.client.ImageResource; //导入依赖的package包/类
public IconCell(ImageResource resource, final String title, String text) {
	super(null);
	iIcon = new Image(resource);
	iIcon.setTitle(title);
	iIcon.setAltText(title);
	if (text != null && !text.isEmpty()) {
		iLabel = new HTML(text, false);
		iPanel = new HorizontalPanel();
		iPanel.setStyleName("icon");
		iPanel.add(iIcon);
		iPanel.add(iLabel);
		iIcon.getElement().getStyle().setPaddingRight(3, Unit.PX);
		iPanel.setCellVerticalAlignment(iIcon, HasVerticalAlignment.ALIGN_MIDDLE);
	}
	iIcon.addClickHandler(new ClickHandler() {
		@Override
		public void onClick(ClickEvent event) {
			event.stopPropagation();
			UniTimeConfirmationDialog.info(title);
		}
	});
}
 
开发者ID:Jenner4S,项目名称:unitimes,代码行数:23,代码来源:WebTable.java

示例2: setPreloader

import com.google.gwt.resources.client.ImageResource; //导入依赖的package包/类
public void setPreloader() {
    RootPanel preloaderWidget = rootPanelDelegate.getRootPanel(MAIN_PRELOADER_ID);
    if (preloaderWidget == null) {
        ImageResource progressImage = progressBundle.getProgressImage();
        mainPreloader = new Image(progressImage);
    } else {
        mainPreloader = Image.wrap(preloaderWidget.getElement());
    }
    RootPanel rootPanel = rootPanelDelegate.getRootPanel();
    rootPanel.add(mainPreloader);

    int halfWidth = windowDelegate.getClientWidth() / 2;
    int halfHeight = windowDelegate.getClientHeight() / 2;
    centerMainPreloader(halfWidth, halfHeight, mainPreloader.getElement());
}
 
开发者ID:YoungDigitalPlanet,项目名称:empiria.player,代码行数:16,代码来源:ContentPreloader.java

示例3: ButtonTool

import com.google.gwt.resources.client.ImageResource; //导入依赖的package包/类
public ButtonTool(String label, ImageResource icon,
		LayerManagerWidget layerManager) {
	super();
	setText(label);
	setIconAlign(IconAlign.TOP);
	setSize(width, height);
	setIcon(icon);		
	registerSelectHandler();	
	layerManager.addChangeLayerListener(this);
}
 
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:11,代码来源:ButtonTool.java

示例4: createConfirm

import com.google.gwt.resources.client.ImageResource; //导入依赖的package包/类
/**
 * Create a modal Confirm Message Box with YES and NO Buttons
 * 
 * @param title
 * @param question
 * @param icon
 * @return ConfirmMessageBox
 */
public ConfirmMessageBox createConfirm(final String title, final String question,
		final ImageResource icon) {
	final ConfirmMessageBox confirmDialog = new ConfirmMessageBox(title, question);
	confirmDialog.setModal(true);
	confirmDialog.setIcon(icon);
	confirmDialog.setBlinkModal(true);

	return confirmDialog;
}
 
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:18,代码来源:MessageDialogBuilder.java

示例5: MockContainer

import com.google.gwt.resources.client.ImageResource; //导入依赖的package包/类
/**
 * Creates a new component container.
 * <p>
 * Implementations are responsible for constructing their own visual appearance
 * and calling {@link #initWidget(com.google.gwt.user.client.ui.Widget)}.
 * This appearance should include {@link #rootPanel} so that children
 * components are displayed correctly.
 *
 * @param editor  editor of source file the component belongs to
 */
MockContainer(SimpleEditor editor, String type, ImageResource icon,
    MockLayout layout) {
  super(editor, type, icon);

  this.layout = layout;
  layout.setContainer(this);

  children = new ArrayList<MockComponent>();
  rootPanel = new AbsolutePanel();
}
 
开发者ID:mit-cml,项目名称:appinventor-extensions,代码行数:21,代码来源:MockContainer.java

示例6: w3wRed24

import com.google.gwt.resources.client.ImageResource; //导入依赖的package包/类
@Source("images/ic_w3w_red-24.png")
ImageResource w3wRed24();
 
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:3,代码来源:ImageProvider.java

示例7: getTreeClosed

import com.google.gwt.resources.client.ImageResource; //导入依赖的package包/类
@Source("dir_close.png")
ImageResource getTreeClosed();
 
开发者ID:ICT-BDA,项目名称:EasyML,代码行数:3,代码来源:Resources.java

示例8: getTreeLeaf

import com.google.gwt.resources.client.ImageResource; //导入依赖的package包/类
@Source("dir_close.png")
ImageResource getTreeLeaf();
 
开发者ID:ICT-BDA,项目名称:EasyML,代码行数:3,代码来源:Resources.java

示例9: treeClosed

import com.google.gwt.resources.client.ImageResource; //导入依赖的package包/类
@Override
public ImageResource treeClosed() {
	return Resources.instance.getTreeClosed();
}
 
开发者ID:ICT-BDA,项目名称:EasyML,代码行数:5,代码来源:TreeImageResources.java

示例10: loading

import com.google.gwt.resources.client.ImageResource; //导入依赖的package包/类
@Source("org/unitime/timetable/gwt/resources/icons/loading.gif")
ImageResource loading();
 
开发者ID:Jenner4S,项目名称:unitimes,代码行数:3,代码来源:GwtResources.java

示例11: geocoding24

import com.google.gwt.resources.client.ImageResource; //导入依赖的package包/类
@Source("images/ic_map_location_arrow-24.png")
ImageResource geocoding24();
 
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:3,代码来源:ImageProvider.java

示例12: point

import com.google.gwt.resources.client.ImageResource; //导入依赖的package包/类
@Source("images/ic_point-24.png")
ImageResource point();
 
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:3,代码来源:ImageProvider.java

示例13: copyLayer24

import com.google.gwt.resources.client.ImageResource; //导入依赖的package包/类
@Source("images/ic_copy_layer-24.png")
ImageResource copyLayer24();
 
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:3,代码来源:ImageProvider.java

示例14: printLogo

import com.google.gwt.resources.client.ImageResource; //导入依赖的package包/类
@Source("images/ic_print-24.png")
ImageResource printLogo();
 
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:3,代码来源:ImageProvider.java

示例15: baseLayer

import com.google.gwt.resources.client.ImageResource; //导入依赖的package包/类
@Source("images/ic_base_layer-16.png")
ImageResource baseLayer();
 
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:3,代码来源:ImageProvider.java


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