com.google.gwt.user.client.ui.InlineHTML Java Examples
The following examples show how to use
com.google.gwt.user.client.ui.InlineHTML.
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: MockSwitch.java From appinventor-extensions with Apache License 2.0 | 5 votes |
/** * Creates a new MockSwitch component. * * @param editor editor of source file the component belongs to */ public MockSwitch(SimpleEditor editor) { super(editor, TYPE, images.toggleswitch()); panel = new HorizontalPanel(); switchLabel = new InlineHTML(); panel.add(switchLabel); toggleWidget = panel; isInitialized = false; initWrapper(toggleWidget); }
Example #2
Source File: MockLabel.java From appinventor-extensions with Apache License 2.0 | 5 votes |
/** * Creates a new MockLabel component. * * @param editor editor of source file the component belongs to */ public MockLabel(SimpleEditor editor) { super(editor, TYPE, images.label()); // Initialize mock label UI labelWidget = new InlineHTML(); labelWidget.setStylePrimaryName("ode-SimpleMockComponent"); initComponent(labelWidget); }
Example #3
Source File: CubaClickableTextRenderer.java From cuba with Apache License 2.0 | 5 votes |
@Override public InlineHTML createWidget() { InlineHTML inlineHTML = GWT.create(InlineHTML.class); inlineHTML.addClickHandler(this); inlineHTML.setStyleName("v-link"); return inlineHTML; }
Example #4
Source File: CurriculumEdit.java From unitime with Apache License 2.0 | 5 votes |
Check(boolean value, String onMessage, String offMessage) { Image image = new Image(value ? RESOURCES.on() : RESOURCES.off()); image.addStyleName("image"); add(image); InlineHTML text = new InlineHTML(value ? onMessage : offMessage); text.addStyleName("message"); add(text); if (value) addStyleName("check-enabled"); else addStyleName("check-disabled"); }
Example #5
Source File: RoomDetail.java From unitime with Apache License 2.0 | 5 votes |
Check(boolean value, String onMessage, String offMessage) { Image image = new Image(value ? RESOURCES.on() : RESOURCES.off()); image.addStyleName("image"); add(image); InlineHTML text = new InlineHTML(value ? onMessage : offMessage); text.addStyleName("message"); add(text); if (value) addStyleName("check-enabled"); else addStyleName("check-disabled"); }
Example #6
Source File: GwtMockitoTest.java From gwtmockito with Apache License 2.0 | 5 votes |
@Test public void shouldBeAbleToInstantiateLabels() { assertNotNull(new Label()); assertNotNull(new HTML()); assertNotNull(new InlineLabel()); assertNotNull(new InlineHTML()); }
Example #7
Source File: OffPageSelector.java From core with GNU Lesser General Public License v2.1 | 5 votes |
OffPageSelector(final DefaultTabLayoutPanel tabLayout) { this.tabLayout = tabLayout; this.popup = new OffPagePopup(); InlineHTML selector = new InlineHTML(Templates.TEMPLATES.selectorIcon()); selector.addClickHandler(this); initWidget(selector); setStyleName(STYLE_NAME); }
Example #8
Source File: CubaClickableTextRenderer.java From cuba with Apache License 2.0 | 4 votes |
@Override public void render(RendererCellReference cell, String text, InlineHTML inlineHTML) { inlineHTML.setText(text); }