use of com.google.gwt.user.client.ui.FlowPanel in project gwt-test-utils by gwt-test-utils.
the class ComplexPanelTest method count.
@Test
public void count() {
// Given
ComplexPanel panel = new FlowPanel();
panel.add(new Button());
panel.add(new Button());
// When & Then
assertThat(panel.getWidgetCount()).isEqualTo(2);
}
use of com.google.gwt.user.client.ui.FlowPanel in project gwt-test-utils by gwt-test-utils.
the class WidgetWithUiChild method addMyUiLabel.
@UiChild
void addMyUiLabel(Label l) {
FlowPanel flowPanel = (FlowPanel) this.getWidget();
flowPanel.add(l);
labels.add(l);
}
use of com.google.gwt.user.client.ui.FlowPanel in project gwt-test-utils by gwt-test-utils.
the class WidgetWithUiChild method uiCustomChild.
@UiChild(tagname = "customChild", limit = 1)
void uiCustomChild(Widget w) {
FlowPanel flowPanel = (FlowPanel) this.getWidget();
flowPanel.add(w);
customWidgets.add(w);
}
use of com.google.gwt.user.client.ui.FlowPanel in project che by eclipse.
the class EditorPaneMenuWidget method getDelimiter.
private FlowPanel getDelimiter() {
final FlowPanel delimiter = new FlowPanel();
delimiter.addStyleName(resources.coreCss().editorPaneMenuDelimiter());
return delimiter;
}
use of com.google.gwt.user.client.ui.FlowPanel in project che by eclipse.
the class PreviewViewImpl method checkChildrenState.
private void checkChildrenState(TreeItem treeItem, Boolean value) {
int childCount = treeItem.getChildCount();
if (childCount == 0) {
return;
}
for (int i = 0; i < childCount; i++) {
TreeItem childItem = treeItem.getChild(i);
if (!(childItem.getWidget() instanceof FlowPanel)) {
return;
}
FlowPanel childItemContainer = (FlowPanel) childItem.getWidget();
if (!(childItemContainer.getWidget(0) instanceof CheckBox)) {
return;
}
CheckBox childCheckBox = (CheckBox) childItemContainer.getWidget(0);
childCheckBox.setValue(value);
checkChildrenState(childItem, value);
}
}
Aggregations