Search in sources :

Example 46 with Widget

use of com.google.gwt.user.client.ui.Widget in project drools-wb by kiegroup.

the class FieldPageTest method testAsWidget.

@Test
public void testAsWidget() {
    final Widget contentWidget = page.asWidget();
    assertEquals(contentWidget, content);
}
Also used : Widget(com.google.gwt.user.client.ui.Widget) Test(org.junit.Test)

Example 47 with Widget

use of com.google.gwt.user.client.ui.Widget in project drools-wb by kiegroup.

the class FieldPageViewTest method testSetupBinding.

@Test
public void testSetupBinding() {
    final IsWidget isWidget = mock(IsWidget.class);
    final Widget widget = mock(Widget.class);
    doReturn(widget).when(isWidget).asWidget();
    view.setupBinding(isWidget);
    verify(elemental2DomUtil).removeAllElementChildren(bindingFieldContainer);
    verify(elemental2DomUtil).appendWidgetToElement(bindingFieldContainer, widget);
}
Also used : IsWidget(com.google.gwt.user.client.ui.IsWidget) Widget(com.google.gwt.user.client.ui.Widget) IsWidget(com.google.gwt.user.client.ui.IsWidget) Test(org.junit.Test)

Example 48 with Widget

use of com.google.gwt.user.client.ui.Widget in project drools-wb by kiegroup.

the class OperatorPageTest method testAsWidget.

@Test
public void testAsWidget() {
    final Widget contentWidget = page.asWidget();
    assertEquals(contentWidget, content);
}
Also used : Widget(com.google.gwt.user.client.ui.Widget) Test(org.junit.Test)

Example 49 with Widget

use of com.google.gwt.user.client.ui.Widget in project drools-wb by kiegroup.

the class WorkItemPageTest method testAsWidget.

@Test
public void testAsWidget() {
    final Widget contentWidget = page.asWidget();
    assertEquals(contentWidget, content);
}
Also used : Widget(com.google.gwt.user.client.ui.Widget) Test(org.junit.Test)

Example 50 with Widget

use of com.google.gwt.user.client.ui.Widget in project drools-wb by kiegroup.

the class ConstraintValueEditor method expressionEditor.

private Widget expressionEditor() {
    ExpressionBuilder builder = null;
    builder = new ExpressionBuilder(this.modeller, this.eventBus, this.constraint.getExpressionValue(), this.readOnly);
    builder.addOnModifiedCommand(new Command() {

        public void execute() {
            executeOnValueChangeCommand();
        }
    });
    Widget ed = widgets(new HTML(" "), builder);
    return ed;
}
Also used : Command(com.google.gwt.user.client.Command) IsWidget(com.google.gwt.user.client.ui.IsWidget) Widget(com.google.gwt.user.client.ui.Widget) HTML(com.google.gwt.user.client.ui.HTML) ExpressionBuilder(org.drools.workbench.screens.guided.rule.client.widget.ExpressionBuilder)

Aggregations

Widget (com.google.gwt.user.client.ui.Widget)194 Test (org.junit.Test)22 ClickEvent (com.google.gwt.event.dom.client.ClickEvent)16 IsWidget (com.google.gwt.user.client.ui.IsWidget)16 ClickHandler (com.google.gwt.event.dom.client.ClickHandler)15 HTML (com.google.gwt.user.client.ui.HTML)10 ArrayList (java.util.ArrayList)10 IFrameTabPanel (org.pentaho.mantle.client.solutionbrowser.tabs.IFrameTabPanel)10 Element (com.google.gwt.dom.client.Element)9 MaterialWidget (gwt.material.design.client.base.MaterialWidget)9 Label (com.google.gwt.user.client.ui.Label)8 ListItem (gwt.material.design.client.ui.html.ListItem)8 ListBox (org.gwtbootstrap3.client.ui.ListBox)8 ChangeEvent (com.google.gwt.event.dom.client.ChangeEvent)7 ChangeHandler (com.google.gwt.event.dom.client.ChangeHandler)7 Command (com.google.gwt.user.client.Command)7 FileItem (org.pentaho.mantle.client.solutionbrowser.filelist.FileItem)7 Image (com.google.gwt.user.client.ui.Image)6 CubaFileUploadWidget (com.haulmont.cuba.web.toolkit.ui.client.jqueryfileupload.CubaFileUploadWidget)6 Timer (com.google.gwt.user.client.Timer)5