本文整理汇总了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);
}
});
}
示例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());
}
示例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);
}
示例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;
}
示例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();
}
示例6: w3wRed24
import com.google.gwt.resources.client.ImageResource; //导入依赖的package包/类
@Source("images/ic_w3w_red-24.png")
ImageResource w3wRed24();
示例7: getTreeClosed
import com.google.gwt.resources.client.ImageResource; //导入依赖的package包/类
@Source("dir_close.png")
ImageResource getTreeClosed();
示例8: getTreeLeaf
import com.google.gwt.resources.client.ImageResource; //导入依赖的package包/类
@Source("dir_close.png")
ImageResource getTreeLeaf();
示例9: treeClosed
import com.google.gwt.resources.client.ImageResource; //导入依赖的package包/类
@Override
public ImageResource treeClosed() {
return Resources.instance.getTreeClosed();
}
示例10: loading
import com.google.gwt.resources.client.ImageResource; //导入依赖的package包/类
@Source("org/unitime/timetable/gwt/resources/icons/loading.gif")
ImageResource loading();
示例11: geocoding24
import com.google.gwt.resources.client.ImageResource; //导入依赖的package包/类
@Source("images/ic_map_location_arrow-24.png")
ImageResource geocoding24();
示例12: point
import com.google.gwt.resources.client.ImageResource; //导入依赖的package包/类
@Source("images/ic_point-24.png")
ImageResource point();
示例13: copyLayer24
import com.google.gwt.resources.client.ImageResource; //导入依赖的package包/类
@Source("images/ic_copy_layer-24.png")
ImageResource copyLayer24();
示例14: printLogo
import com.google.gwt.resources.client.ImageResource; //导入依赖的package包/类
@Source("images/ic_print-24.png")
ImageResource printLogo();
示例15: baseLayer
import com.google.gwt.resources.client.ImageResource; //导入依赖的package包/类
@Source("images/ic_base_layer-16.png")
ImageResource baseLayer();