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);
}
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);
}
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);
}
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);
}
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;
}
Aggregations