當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。