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