Search in sources :

Example 71 with HTML

use of com.google.gwt.user.client.ui.HTML in project gwt-test-utils by gwt-test-utils.

the class HTMLTest method getHTML.

@Test
public void getHTML() {
    // Given
    HTML html = new HTML("<a href='#'>link</a><br/>test&nbsp;test");
    // When
    String result = html.getHTML();
    // Then
    assertThat(result).isEqualTo("<a href=\"#\">link</a><br>test&nbsp;test");
}
Also used : HTML(com.google.gwt.user.client.ui.HTML) Test(org.junit.Test)

Example 72 with HTML

use of com.google.gwt.user.client.ui.HTML in project kie-wb-common by kiegroup.

the class IntegerBoxFieldRenderer method getFormGroup.

@Override
protected FormGroup getFormGroup(RenderMode renderMode) {
    Widget widget;
    String inputId = generateUniqueId();
    if (renderMode.equals(RenderMode.PRETTY_MODE)) {
        widget = new HTML();
        widget.getElement().setId(inputId);
    } else {
        integerBox.setId(inputId);
        integerBox.setPlaceholder(field.getPlaceHolder());
        integerBox.setMaxLength(field.getMaxLength());
        integerBox.setEnabled(!field.getReadOnly());
        widget = integerBox.asWidget();
    }
    DefaultFormGroup formGroup = formGroupsInstance.get();
    formGroup.render(inputId, widget, field);
    registerFieldRendererPart(widget);
    return formGroup;
}
Also used : Widget(com.google.gwt.user.client.ui.Widget) HTML(com.google.gwt.user.client.ui.HTML) DefaultFormGroup(org.kie.workbench.common.forms.dynamic.client.rendering.formGroups.impl.def.DefaultFormGroup)

Example 73 with HTML

use of com.google.gwt.user.client.ui.HTML in project kie-wb-common by kiegroup.

the class AbstractListBoxFieldRenderer method getFormGroup.

@Override
protected FormGroup getFormGroup(RenderMode renderMode) {
    DefaultFormGroup formGroup = formGroupsInstance.get();
    if (renderMode.equals(RenderMode.PRETTY_MODE)) {
        formGroup.render(new HTML(), field);
    } else {
        String inputId = generateUniqueId();
        widgetList.setId(inputId);
        widgetList.setName(fieldNS);
        widgetList.setEnabled(!field.getReadOnly());
        refreshSelectorOptions();
        formGroup.render(inputId, widgetList, field);
        registerFieldRendererPart(widgetList);
    }
    return formGroup;
}
Also used : HTML(com.google.gwt.user.client.ui.HTML) DefaultFormGroup(org.kie.workbench.common.forms.dynamic.client.rendering.formGroups.impl.def.DefaultFormGroup)

Example 74 with HTML

use of com.google.gwt.user.client.ui.HTML in project kie-wb-common by kiegroup.

the class DecimalBoxFieldRenderer method getFormGroup.

@Override
protected FormGroup getFormGroup(RenderMode renderMode) {
    DefaultFormGroup formGroup = formGroupsInstance.get();
    if (renderMode.equals(RenderMode.PRETTY_MODE)) {
        formGroup.render(new HTML(), field);
    } else {
        String inputId = generateUniqueId();
        decimalBox.setId(inputId);
        decimalBox.setPlaceholder(field.getPlaceHolder());
        decimalBox.setMaxLength(field.getMaxLength());
        decimalBox.setEnabled(!field.getReadOnly());
        formGroup.render(inputId, decimalBox.asWidget(), field);
        registerFieldRendererPart(decimalBox);
    }
    return formGroup;
}
Also used : HTML(com.google.gwt.user.client.ui.HTML) DefaultFormGroup(org.kie.workbench.common.forms.dynamic.client.rendering.formGroups.impl.def.DefaultFormGroup)

Example 75 with HTML

use of com.google.gwt.user.client.ui.HTML in project cuba by cuba-platform.

the class CubaTwinColSelectWidget method enableAddAllBtn.

protected void enableAddAllBtn() {
    HTML br1 = new HTML("<span/>");
    br1.setStyleName(CLASSNAME + "-deco");
    buttons.add(br1);
    buttons.insert(br1, buttons.getWidgetIndex(addItemsLeftToRightButton) + 1);
    addAll = new VButton();
    addAll.setText(">>");
    addAll.addStyleName("addAll");
    addAllHandlerRegistration = addAll.addClickHandler(this);
    buttons.insert(addAll, buttons.getWidgetIndex(br1) + 1);
    HTML br2 = new HTML("<span/>");
    br2.setStyleName(CLASSNAME + "-deco");
    buttons.add(br2);
    removeAll = new VButton();
    removeAll.setText("<<");
    removeAll.addStyleName("removeAll");
    removeAllHandlerRegistration = removeAll.addClickHandler(this);
    buttons.add(removeAll);
}
Also used : VButton(com.vaadin.client.ui.VButton) HTML(com.google.gwt.user.client.ui.HTML)

Aggregations

HTML (com.google.gwt.user.client.ui.HTML)170 ViewerPanel (org.cesiumjs.cs.widgets.ViewerPanel)34 ClickHandler (com.google.gwt.event.dom.client.ClickHandler)32 ClickEvent (com.google.gwt.event.dom.client.ClickEvent)31 Confirm (cz.metacentrum.perun.webgui.widgets.Confirm)26 VerticalPanel (com.google.gwt.user.client.ui.VerticalPanel)21 FlexTable (com.google.gwt.user.client.ui.FlexTable)17 JSONString (com.google.gwt.json.client.JSONString)16 ChangeEvent (com.google.gwt.event.dom.client.ChangeEvent)14 ChangeHandler (com.google.gwt.event.dom.client.ChangeHandler)14 Label (com.google.gwt.user.client.ui.Label)14 AbsolutePanel (com.google.gwt.user.client.ui.AbsolutePanel)13 HorizontalPanel (com.google.gwt.user.client.ui.HorizontalPanel)12 Image (com.google.gwt.user.client.ui.Image)11 Widget (com.google.gwt.user.client.ui.Widget)11 ViewerOptions (org.cesiumjs.cs.widgets.options.ViewerOptions)11 Button (org.gwtbootstrap3.client.ui.Button)11 ListBox (com.google.gwt.user.client.ui.ListBox)10 ArrayList (java.util.ArrayList)10 SmallLabel (org.uberfire.ext.widgets.common.client.common.SmallLabel)10