Java Code Examples for com.google.gwt.resources.client.ImageResource

The following are top voted examples for showing how to use com.google.gwt.resources.client.ImageResource. These examples are extracted from open source projects. You can vote up the examples you like and your votes will be used in our system to generate more good examples.
Example 1
Project: unitimes   File: WebTable.java   Source Code and License 6 votes vote down vote up
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);
		}
	});
}
 
Example 2
Project: empiria.player   File: ContentPreloader.java   Source Code and License 5 votes vote down vote up
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());
}
 
Example 3
Project: sig-seguimiento-vehiculos   File: ButtonTool.java   Source Code and License 5 votes vote down vote up
public ButtonTool(String label, ImageResource icon,
		LayerManagerWidget layerManager) {
	super();
	setText(label);
	setIconAlign(IconAlign.TOP);
	setSize(width, height);
	setIcon(icon);		
	registerSelectHandler();	
	layerManager.addChangeLayerListener(this);
}
 
Example 4
Project: sig-seguimiento-vehiculos   File: MessageDialogBuilder.java   Source Code and License 5 votes vote down vote up
/**
 * 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;
}
 
Example 5
Project: appinventor-extensions   File: MockContainer.java   Source Code and License 5 votes vote down vote up
/**
 * 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();
}
 
Example 6
Project: sig-seguimiento-vehiculos   File: ImageProvider.java   Source Code and License 4 votes vote down vote up
@Source("images/ic_w3w_red-24.png")
ImageResource w3wRed24();
 
Example 7
Project: EasyML   File: Resources.java   Source Code and License 4 votes vote down vote up
@Source("dir_close.png")
ImageResource getTreeClosed();
 
Example 8
Project: EasyML   File: Resources.java   Source Code and License 4 votes vote down vote up
@Source("dir_close.png")
ImageResource getTreeLeaf();
 
Example 9
Project: EasyML   File: TreeImageResources.java   Source Code and License 4 votes vote down vote up
@Override
public ImageResource treeClosed() {
	return Resources.instance.getTreeClosed();
}
 
Example 10
Project: unitimes   File: GwtResources.java   Source Code and License 4 votes vote down vote up
@Source("org/unitime/timetable/gwt/resources/icons/loading.gif")
ImageResource loading();
 
Example 11
Project: sig-seguimiento-vehiculos   File: ImageProvider.java   Source Code and License 4 votes vote down vote up
@Source("images/ic_map_location_arrow-24.png")
ImageResource geocoding24();
 
Example 12
Project: sig-seguimiento-vehiculos   File: ImageProvider.java   Source Code and License 4 votes vote down vote up
@Source("images/ic_point-24.png")
ImageResource point();
 
Example 13
Project: sig-seguimiento-vehiculos   File: ImageProvider.java   Source Code and License 4 votes vote down vote up
@Source("images/ic_copy_layer-24.png")
ImageResource copyLayer24();
 
Example 14
Project: sig-seguimiento-vehiculos   File: ImageProvider.java   Source Code and License 4 votes vote down vote up
@Source("images/ic_print-24.png")
ImageResource printLogo();
 
Example 15
Project: sig-seguimiento-vehiculos   File: ImageProvider.java   Source Code and License 4 votes vote down vote up
@Source("images/ic_base_layer-16.png")
ImageResource baseLayer();
 
Example 16
Project: sig-seguimiento-vehiculos   File: ZoomToVectorFeatureTool.java   Source Code and License 4 votes vote down vote up
@Override
public ImageResource getIcon() {
	return ImageProvider.INSTANCE.zoomToFeature24();
}
 
Example 17
Project: sig-seguimiento-vehiculos   File: ExportCSVLayerTool.java   Source Code and License 4 votes vote down vote up
@Override
public ImageResource getIcon() {
	return ImageProvider.INSTANCE.fileText24();
}
 
Example 18
Project: sig-seguimiento-vehiculos   File: ImageProvider.java   Source Code and License 4 votes vote down vote up
@Source("images/ic_earth_extension-24.png")
ImageResource currentExtent24();
 
Example 19
Project: unitimes   File: GwtResources.java   Source Code and License 4 votes vote down vote up
@Source("org/unitime/timetable/gwt/resources/icons/accept.png")
ImageResource on();
 
Example 20
Project: sig-seguimiento-vehiculos   File: ExportDataTool.java   Source Code and License 4 votes vote down vote up
@Override
public ImageResource getIcon() {
	return ImageProvider.INSTANCE.download24();
}
 
Example 21
Project: unitimes   File: GwtResources.java   Source Code and License 4 votes vote down vote up
@Source("org/unitime/timetable/gwt/resources/icons/application_edit.png")
ImageResource edit();
 
Example 22
Project: sig-seguimiento-vehiculos   File: ImageProvider.java   Source Code and License 4 votes vote down vote up
@Source("images/ic_capas-24.png")
ImageResource layerIcon();
 
Example 23
Project: unitimes   File: GwtResources.java   Source Code and License 4 votes vote down vote up
@Source("org/unitime/timetable/gwt/resources/icons/download.png")
ImageResource download();
 
Example 24
Project: unitimes   File: GwtResources.java   Source Code and License 4 votes vote down vote up
@Source("org/unitime/timetable/gwt/resources/icons/times.png")
ImageResource filter_clear();
 
Example 25
Project: sig-seguimiento-vehiculos   File: ImageProvider.java   Source Code and License 4 votes vote down vote up
@Source("images/ic_earth_extension-custom-24.png")
ImageResource customExtension24();
 
Example 26
Project: sig-seguimiento-vehiculos   File: ImageProvider.java   Source Code and License 4 votes vote down vote up
@Source("images/ic_marker_car_blue-24.png")
ImageResource markerCarBlue24();
 
Example 27
Project: sig-seguimiento-vehiculos   File: ImageProvider.java   Source Code and License 4 votes vote down vote up
@Source("images/ic_zoom_to_layer-24.png")
ImageResource zoomToLayer();
 
Example 28
Project: sig-seguimiento-vehiculos   File: ZoomToVectorLayerTool.java   Source Code and License 4 votes vote down vote up
@Override
public ImageResource getIcon() {
	return ImageProvider.INSTANCE.zoomToLayer();
}
 
Example 29
Project: sig-seguimiento-vehiculos   File: ImageProvider.java   Source Code and License 4 votes vote down vote up
@Source("images/ic_linkedIn-32.png")
ImageResource linkedIn();
 
Example 30
Project: unitimes   File: GwtResources.java   Source Code and License 4 votes vote down vote up
@Source("org/unitime/timetable/gwt/resources/icons/help_small.png")
ImageResource helpIcon();
 
Example 31
Project: sig-seguimiento-vehiculos   File: ImageProvider.java   Source Code and License 4 votes vote down vote up
@Source("images/ic_select-24.png")
ImageResource select24();
 
Example 32
Project: unitimes   File: GwtResources.java   Source Code and License 4 votes vote down vote up
@Source("org/unitime/timetable/gwt/resources/icons/info.png")
ImageResource info();
 
Example 33
Project: sig-seguimiento-vehiculos   File: ImageProvider.java   Source Code and License 4 votes vote down vote up
@Source("images/ic_bug-32.png")
ImageResource bug();
 
Example 34
Project: sig-seguimiento-vehiculos   File: ImageProvider.java   Source Code and License 4 votes vote down vote up
@Source("images/ic_add_layer-16.png")
ImageResource addLayer16();
 
Example 35
Project: unitimes   File: StudentSectioningResources.java   Source Code and License 4 votes vote down vote up
@Source("org/unitime/timetable/gwt/resources/icons/up.png")
ImageResource up();
 
Example 36
Project: sig-seguimiento-vehiculos   File: ImageProvider.java   Source Code and License 4 votes vote down vote up
@Source("images/ic_info-24.png")
ImageResource info24();
 
Example 37
Project: sig-seguimiento-vehiculos   File: ImageProvider.java   Source Code and License 4 votes vote down vote up
@Source("images/ic_github-24.png")
ImageResource github24();
 
Example 38
Project: unitimes   File: StudentSectioningResources.java   Source Code and License 4 votes vote down vote up
@Source("org/unitime/timetable/gwt/resources/icons/down.png")
ImageResource down();
 
Example 39
Project: unitimes   File: ScheduleStatus.java   Source Code and License 4 votes vote down vote up
Level(String styleName, ImageResource icon) {
	iStyleName = styleName;
	iIcon = icon;
}
 
Example 40
Project: unitimes   File: StudentSectioningResources.java   Source Code and License 4 votes vote down vote up
@Source("org/unitime/timetable/gwt/resources/icons/search_picker_Disabled.png")
ImageResource search_picker_Disabled();