com.google.gwt.resources.client.ImageResource Java Examples
The following examples show how to use
com.google.gwt.resources.client.ImageResource.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: TemplateUploadWizard.java From appinventor-extensions with Apache License 2.0 | 6 votes |
@Override public void render(Context context, TemplateInfo template, SafeHtmlBuilder sb) { if (template == null) return; sb.appendHtmlConstant("<table style='margin: 4pt 0;'>"); // Add the thumbnail image, if available, or a default image. sb.appendHtmlConstant("<tr><td rowspan='3' width=\"32px\">"); if ( !template.thumbStr.equals("") ) { String src = hostUrl + TEMPLATES_ROOT_DIRECTORY + template.name + "/" + template.thumbStr; sb.appendHtmlConstant("<img style='width:32px' src='" + src + "'>"); } else { ImageResource imgResource = Ode.getImageBundle().appInventorLogo(); Image img = new Image(imgResource); String url = img.getUrl(); sb.appendHtmlConstant("<img style='width:32px' src='" + url + "'>"); } sb.appendHtmlConstant("</td>"); // Add the name and description. sb.appendHtmlConstant("<td style='font-size:95%;'><b>"); sb.appendEscaped(template.name); sb.appendHtmlConstant("</b></td></tr><tr><td>"); sb.appendEscaped(template.subtitle); sb.appendHtmlConstant("</td></tr></table>"); }
Example #2
Source File: MockTextBoxBase.java From appinventor-extensions with Apache License 2.0 | 5 votes |
/** * Creates a new MockTextBox component. * * @param editor editor of source file the component belongs to */ MockTextBoxBase(SimpleEditor editor, String type, ImageResource icon) { super(editor, type, icon); // Initialize mock textbox UI textBoxWidget = new TextBox(); initWrapper(textBoxWidget); }
Example #3
Source File: MockMapFeatureBase.java From appinventor-extensions with Apache License 2.0 | 5 votes |
MockMapFeatureBase(SimpleEditor editor, String type, ImageResource icon) { super(editor, type, icon); panel = new SimplePanel(); panel.setStylePrimaryName("ode-SimpleMockComponent"); initComponent(panel); this.unsinkEvents(Event.MOUSEEVENTS); }
Example #4
Source File: Ode.java From appinventor-extensions with Apache License 2.0 | 5 votes |
/** * Helper method to create push buttons. * * @param img image to shown on face of push button * @param tip text to show in tooltip * @return newly created push button */ public static PushButton createPushButton(ImageResource img, String tip, ClickHandler handler) { PushButton pb = new PushButton(new Image(img)); pb.addClickHandler(handler); pb.setTitle(tip); return pb; }
Example #5
Source File: TreeImageResources.java From EasyML with Apache License 2.0 | 4 votes |
@Override public ImageResource treeLeaf() { return Resources.instance.getTreeLeaf(); }
Example #6
Source File: TreeImageResources.java From EasyML with Apache License 2.0 | 4 votes |
@Override public ImageResource treeOpen() { return Resources.instance.getTreeOpen(); }
Example #7
Source File: GalleryImages.java From appinventor-extensions with Apache License 2.0 | 4 votes |
@Source("androidIcon.png") ImageResource androidIcon();
Example #8
Source File: TreeImageResources.java From EasyML with Apache License 2.0 | 4 votes |
@Override public ImageResource treeClosed() { return Resources.instance.getTreeClosed(); }
Example #9
Source File: Resources.java From EasyML with Apache License 2.0 | 4 votes |
@Source("dir_close.png") ImageResource getTreeLeaf();
Example #10
Source File: Images.java From appinventor-extensions with Apache License 2.0 | 4 votes |
/** * Designer item: WebViewer component in designer */ // The image here is public domain and comes from // www.pdclipart.org/displayimage.php/?pid=1047 @Source("com/google/appinventor/images/webviewerbig.png") ImageResource webviewerbig();
Example #11
Source File: Resources.java From EasyML with Apache License 2.0 | 4 votes |
@Source("dir_close.png") ImageResource getTreeClosed();
Example #12
Source File: MockToggleBase.java From appinventor-extensions with Apache License 2.0 | 4 votes |
public MockToggleBase(SimpleEditor editor, String type, ImageResource icon) { super(editor, type, icon); }
Example #13
Source File: MockPolygonBase.java From appinventor-extensions with Apache License 2.0 | 4 votes |
public MockPolygonBase(SimpleEditor editor, String type, ImageResource image) { super(editor, type, image); }
Example #14
Source File: Images.java From appinventor-extensions with Apache License 2.0 | 2 votes |
/** * Talk to Me Logo */ @Source("com/google/appinventor/images/talkToMeLogo.png") ImageResource talkToMeLogo();
Example #15
Source File: Images.java From appinventor-extensions with Apache License 2.0 | 2 votes |
/** * Designer palette item: clock component */ @Source("com/google/appinventor/images/clock.png") ImageResource clock();
Example #16
Source File: Images.java From appinventor-extensions with Apache License 2.0 | 2 votes |
/** * Designer palette item: textbox component */ @Source("com/google/appinventor/images/textbox.png") ImageResource textbox();
Example #17
Source File: Images.java From appinventor-extensions with Apache License 2.0 | 2 votes |
/** * Built in drawer item: lists */ @Source("com/google/appinventor/images/lists.png") ImageResource lists();
Example #18
Source File: Images.java From appinventor-extensions with Apache License 2.0 | 2 votes |
/** * Designer palette item: SoundEffect component */ @Source("com/google/appinventor/images/soundEffect.png") ImageResource soundeffect();
Example #19
Source File: Images.java From appinventor-extensions with Apache License 2.0 | 2 votes |
/** * Designer palette item: Notifier */ @Source("com/google/appinventor/images/notifier.png") ImageResource notifier();
Example #20
Source File: Images.java From appinventor-extensions with Apache License 2.0 | 2 votes |
/** * Designer palette item: PhoneNumberPicker component */ @Source("com/google/appinventor/images/phoneNumberPicker.png") ImageResource phonenumberpicker();
Example #21
Source File: Images.java From appinventor-extensions with Apache License 2.0 | 2 votes |
/** * Designer palette item: ImagePicker component */ @Source("com/google/appinventor/images/imagePicker.png") ImageResource imagepicker();
Example #22
Source File: Images.java From appinventor-extensions with Apache License 2.0 | 2 votes |
/** * Designer palette item: Texting component */ @Source("com/google/appinventor/images/texting.png") ImageResource texting();
Example #23
Source File: Images.java From appinventor-extensions with Apache License 2.0 | 2 votes |
/** * Designer palette item: FusiontablesControl component */ @Source("com/google/appinventor/images/fusiontables.png") ImageResource fusiontables();
Example #24
Source File: Images.java From appinventor-extensions with Apache License 2.0 | 2 votes |
/** * Built in drawer item: text */ @Source("com/google/appinventor/images/text.png") ImageResource text();
Example #25
Source File: Images.java From appinventor-extensions with Apache License 2.0 | 2 votes |
/** * Designer palette item: VideoPlayer component */ @Source("com/google/appinventor/images/videoPlayer.png") ImageResource videoplayer();
Example #26
Source File: Images.java From appinventor-extensions with Apache License 2.0 | 2 votes |
/** * Designer palette item: FirebaseDB Component */ @Source("com/google/appinventor/images/firebaseDB.png") ImageResource firebaseDB();
Example #27
Source File: Images.java From appinventor-extensions with Apache License 2.0 | 2 votes |
/** * Designer palette item: Bluetooth components */ @Source("com/google/appinventor/images/bluetooth.png") ImageResource bluetooth();
Example #28
Source File: Images.java From appinventor-extensions with Apache License 2.0 | 2 votes |
/** * Designer palette item: orientationsensor component */ @Source("com/google/appinventor/images/orientationsensor.png") ImageResource orientationsensor();
Example #29
Source File: Images.java From appinventor-extensions with Apache License 2.0 | 2 votes |
/** * Designer palette item: YandexTranslate */ @Source("com/google/appinventor/images/yandex.png") ImageResource yandex();
Example #30
Source File: Images.java From appinventor-extensions with Apache License 2.0 | 2 votes |
/** * Designer palette item: label component */ @Source("com/google/appinventor/images/label.png") ImageResource label();