Search in sources :

Example 21 with SimplePanel

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

the class SimplePanelTest method visible.

@Test
public void visible() {
    // Given
    SimplePanel sp = new SimplePanel();
    // Preconditions
    assertThat(sp.isVisible()).isEqualTo(true);
    // When
    sp.setVisible(false);
    // Then
    assertThat(sp.isVisible()).isEqualTo(false);
}
Also used : SimplePanel(com.google.gwt.user.client.ui.SimplePanel) Test(org.junit.Test)

Example 22 with SimplePanel

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

the class GuidedScoreCardEditor method getCharacteristics.

private Widget getCharacteristics() {
    characteristicsPanel = new VerticalPanel();
    characteristicsTables = new ArrayList<FlexTable>();
    final HorizontalPanel toolbar = new HorizontalPanel();
    btnAddCharacteristic = new Button(GuidedScoreCardConstants.INSTANCE.addCharacteristic(), new ClickHandler() {

        public void onClick(ClickEvent event) {
            addCharacteristic(null);
        }
    });
    toolbar.add(btnAddCharacteristic);
    toolbar.setHeight("24");
    characteristicsPanel.add(toolbar);
    final SimplePanel gapPanel = new SimplePanel();
    gapPanel.add(new HTML("<br/>"));
    characteristicsPanel.add(gapPanel);
    return characteristicsPanel;
}
Also used : VerticalPanel(com.google.gwt.user.client.ui.VerticalPanel) ClickHandler(com.google.gwt.event.dom.client.ClickHandler) Button(org.gwtbootstrap3.client.ui.Button) ClickEvent(com.google.gwt.event.dom.client.ClickEvent) FlexTable(com.google.gwt.user.client.ui.FlexTable) HorizontalPanel(com.google.gwt.user.client.ui.HorizontalPanel) SimplePanel(com.google.gwt.user.client.ui.SimplePanel) HTML(com.google.gwt.user.client.ui.HTML)

Example 23 with SimplePanel

use of com.google.gwt.user.client.ui.SimplePanel in project pentaho-platform by pentaho.

the class SchedulesPerspectivePanel method createUI.

private void createUI() {
    // $NON-NLS-1$
    this.setStyleName("schedulerPerspective");
    wrapperPanel = new VerticalPanel();
    // $NON-NLS-1$
    String schedulesLabelStr = Messages.getString("mySchedules");
    if (isAdmin) {
        // $NON-NLS-1$
        schedulesLabelStr = Messages.getString("manageSchedules");
    }
    Label schedulesLabel = new Label(schedulesLabelStr);
    // $NON-NLS-1$
    schedulesLabel.setStyleName("workspaceHeading");
    wrapperPanel.add(schedulesLabel);
    schedulesPanel = new SchedulesPanel(isAdmin, isScheduler);
    // $NON-NLS-1$
    schedulesPanel.setStyleName("schedulesPanel");
    // $NON-NLS-1$
    schedulesPanel.addStyleName("schedules-panel-wrapper");
    wrapperPanel.add(schedulesPanel);
    blockoutPanel = new BlockoutPanel(isAdmin);
    // $NON-NLS-1$
    blockoutPanel.setStyleName("schedulesPanel");
    // $NON-NLS-1$
    blockoutPanel.addStyleName("blockout-schedules-panel-wrapper");
    wrapperPanel.add(blockoutPanel);
    SimplePanel sPanel = new SimplePanel();
    sPanel.add(wrapperPanel);
    // $NON-NLS-1$
    sPanel.setStylePrimaryName("schedulerPerspective-wrapper");
    add(sPanel);
}
Also used : VerticalPanel(com.google.gwt.user.client.ui.VerticalPanel) Label(com.google.gwt.user.client.ui.Label) SimplePanel(com.google.gwt.user.client.ui.SimplePanel)

Example 24 with SimplePanel

use of com.google.gwt.user.client.ui.SimplePanel in project pentaho-platform by pentaho.

the class UserDialog method getDialogContents.

public Panel getDialogContents() {
    HorizontalPanel hp = new HorizontalPanel();
    SimplePanel hspacer = new SimplePanel();
    hspacer.setWidth("10px");
    hp.add(hspacer);
    VerticalPanel vp = new VerticalPanel();
    hp.add(vp);
    SimplePanel vspacer = new SimplePanel();
    vspacer.setHeight("10px");
    vp.add(vspacer);
    Label nameLabel = new Label(Messages.getString("userName") + ":");
    vp.add(nameLabel);
    vp.add(nameTextBox);
    Label passwordLabel = new Label(Messages.getString("password") + ":");
    vp.add(passwordLabel);
    vp.add(passwordTextBox);
    Label reTypePasswordLabel = new Label(Messages.getString("retypePassword") + ":");
    vp.add(reTypePasswordLabel);
    vp.add(reTypePasswordTextBox);
    return hp;
}
Also used : VerticalPanel(com.google.gwt.user.client.ui.VerticalPanel) HorizontalPanel(com.google.gwt.user.client.ui.HorizontalPanel) Label(com.google.gwt.user.client.ui.Label) SimplePanel(com.google.gwt.user.client.ui.SimplePanel)

Example 25 with SimplePanel

use of com.google.gwt.user.client.ui.SimplePanel in project pentaho-platform by pentaho.

the class RoleDialog method getDialogContents.

public Panel getDialogContents() {
    HorizontalPanel hp = new HorizontalPanel();
    SimplePanel hspacer = new SimplePanel();
    hspacer.setWidth("10px");
    hp.add(hspacer);
    VerticalPanel vp = new VerticalPanel();
    hp.add(vp);
    SimplePanel vspacer = new SimplePanel();
    vspacer.setHeight("10px");
    vp.add(vspacer);
    Label nameLabel = new Label(Messages.getString("name") + ":");
    vp.add(nameLabel);
    vp.add(roleNameTextBox);
    return hp;
}
Also used : VerticalPanel(com.google.gwt.user.client.ui.VerticalPanel) HorizontalPanel(com.google.gwt.user.client.ui.HorizontalPanel) Label(com.google.gwt.user.client.ui.Label) SimplePanel(com.google.gwt.user.client.ui.SimplePanel)

Aggregations

SimplePanel (com.google.gwt.user.client.ui.SimplePanel)60 Label (com.google.gwt.user.client.ui.Label)19 VerticalPanel (com.google.gwt.user.client.ui.VerticalPanel)14 HorizontalPanel (com.google.gwt.user.client.ui.HorizontalPanel)9 ClickEvent (com.google.gwt.event.dom.client.ClickEvent)7 ClickHandler (com.google.gwt.event.dom.client.ClickHandler)7 HTML (com.google.gwt.user.client.ui.HTML)7 Test (org.junit.Test)5 Element (com.google.gwt.dom.client.Element)4 Style (com.google.gwt.dom.client.Style)4 ChangeEvent (com.google.gwt.event.dom.client.ChangeEvent)4 ChangeHandler (com.google.gwt.event.dom.client.ChangeHandler)4 Button (com.google.gwt.user.client.ui.Button)4 FlowPanel (com.google.gwt.user.client.ui.FlowPanel)4 ListHandler (com.google.gwt.user.cellview.client.ColumnSortEvent.ListHandler)3 Image (com.google.gwt.user.client.ui.Image)3 Widget (com.google.gwt.user.client.ui.Widget)3 HorizontalScrollWrapper (org.pentaho.mantle.client.ui.custom.HorizontalScrollWrapper)3 ListBoxTitle (org.pentaho.mantle.client.ui.custom.ListBoxTitle)3 Context (com.google.gwt.cell.client.Cell.Context)2