use of com.google.gwt.user.client.ui.SimplePanel in project pentaho-platform by pentaho.
the class UserRolesAdminPanel method createSystemRolesPanel.
private Widget createSystemRolesPanel() {
HorizontalPanel mainSystemRolesPanel = new HorizontalPanel();
mainSystemRolesPanel.getElement().setId("admin-system-roles-panel");
SimplePanel hSpacer = new SimplePanel();
hSpacer.setWidth("15px");
mainSystemRolesPanel.add(hSpacer);
VerticalPanel availablePanel = new VerticalPanel();
mainSystemRolesPanel.add(availablePanel);
hSpacer = new SimplePanel();
hSpacer.setHeight("15px");
availablePanel.add(hSpacer);
HorizontalPanel labelAndButtonsPanel = new HorizontalPanel();
availablePanel.add(labelAndButtonsPanel);
labelAndButtonsPanel.add(new Label(Messages.getString("rolesColon")));
labelAndButtonsPanel.setStyleName("pentaho-fieldgroup-minor");
systemRolesListBox = new ListBoxTitle(true);
HorizontalScrollWrapper systemRolesListBoxWrapper = new HorizontalScrollWrapper(systemRolesListBox);
availablePanel.add(systemRolesListBoxWrapper);
availablePanel.setCellHeight(systemRolesListBoxWrapper, "100%");
systemRolesListBox.setVisibleItemCount(20);
systemRolesListBox.addStyleName("users-roles-list");
hSpacer = new SimplePanel();
hSpacer.setWidth("24px");
mainSystemRolesPanel.add(hSpacer);
VerticalPanel detailsPanel = new VerticalPanel();
detailsPanel.getElement().setId("details-panel");
mainSystemRolesPanel.add(detailsPanel);
mainSystemRolesPanel.setCellWidth(detailsPanel, "100%");
hSpacer = new SimplePanel();
hSpacer.setHeight("15px");
detailsPanel.add(hSpacer);
// todo check if replacement required
systemRolesPermissionsPanel = new PermissionsPanel(systemRolesListBox);
detailsPanel.add(systemRolesPermissionsPanel);
detailsPanel.setCellHeight(systemRolesPermissionsPanel, "100%");
return mainSystemRolesPanel;
}
use of com.google.gwt.user.client.ui.SimplePanel in project pentaho-platform by pentaho.
the class ChangePasswordDialog method getDialogContents.
public Panel getDialogContents() {
VerticalPanel vp = new VerticalPanel();
Label nameLabel = new Label(Messages.getString("newPassword") + ":");
vp.add(nameLabel);
vp.add(newPasswordTextBox);
SimplePanel separatorSpacer = new SimplePanel();
separatorSpacer.setStylePrimaryName("spacer");
vp.add(separatorSpacer);
Label passwordLabel = new Label(Messages.getString("retypePassword") + ":");
vp.add(passwordLabel);
vp.add(reTypePasswordTextBox);
separatorSpacer = new SimplePanel();
separatorSpacer.setStylePrimaryName("spacer");
vp.add(separatorSpacer);
separatorSpacer = new SimplePanel();
separatorSpacer.setStylePrimaryName("spacer");
separatorSpacer.addStyleDependentName("border-top");
vp.add(separatorSpacer);
Label administratorLabel = new Label(Messages.getString("administratorPassword") + ":");
vp.add(administratorLabel);
vp.add(administratorPasswordTextBox);
return vp;
}
use of com.google.gwt.user.client.ui.SimplePanel in project pentaho-platform by pentaho.
the class EmailAdminPanel method createEmailPanel.
private Widget createEmailPanel() {
VerticalPanel mailPanel = new VerticalPanel();
Label mailServerLabel = new Label(Messages.getString("mailServer"));
mailServerLabel.setStyleName("pentaho-fieldgroup-major");
mailPanel.add(mailServerLabel);
SimplePanel vSpacer = new SimplePanel();
vSpacer.setHeight("20px");
mailPanel.add(vSpacer);
Label serverSettingsLabel = new Label(Messages.getString("serverSettings"));
serverSettingsLabel.setStyleName("pentaho-fieldgroup-minor");
mailPanel.add(serverSettingsLabel);
vSpacer = new SimplePanel();
vSpacer.setHeight("20px");
mailPanel.add(vSpacer);
mailPanel.add(new Label(Messages.getString("smtpHost") + ":"));
smtpHostTextBox = new TextBox();
smtpHostTextBox.setWidth("220px");
mailPanel.add(smtpHostTextBox);
vSpacer = new SimplePanel();
vSpacer.setHeight("10px");
mailPanel.add(vSpacer);
mailPanel.add(new Label(Messages.getString("port") + ":"));
portTextBox = new TextBox();
portTextBox.setWidth("220px");
mailPanel.add(portTextBox);
vSpacer = new SimplePanel();
vSpacer.setHeight("10px");
mailPanel.add(vSpacer);
authenticationCheckBox = new CheckBox(Messages.getString("useAuthentication"));
mailPanel.add(authenticationCheckBox);
vSpacer = new SimplePanel();
vSpacer.setHeight("10px");
mailPanel.add(vSpacer);
authenticationPanel = new VerticalPanel();
mailPanel.add(authenticationPanel);
authenticationPanel.add(new Label(Messages.getString("userName") + ":"));
userNameTextBox = new TextBox();
userNameTextBox.setWidth("220px");
authenticationPanel.add(userNameTextBox);
vSpacer = new SimplePanel();
vSpacer.setHeight("10px");
authenticationPanel.add(vSpacer);
authenticationPanel.add(new Label(Messages.getString("password") + ":"));
HorizontalPanel hPanel = new HorizontalPanel();
passwordTextBox = new PasswordTextBox();
passwordTextBox.setWidth("220px");
hPanel.add(passwordTextBox);
SimplePanel hSpacer = new SimplePanel();
hSpacer = new SimplePanel();
hSpacer.setWidth("15px");
hPanel.add(hSpacer);
authenticationPanel.add(hPanel);
vSpacer = new SimplePanel();
vSpacer.setHeight("10px");
mailPanel.add(vSpacer);
HorizontalPanel protocolHbox = new HorizontalPanel();
protocolHbox.add(new Label(Messages.getString("protocol") + ":"));
protocolHbox.getElement().setId("protocolPanel");
hSpacer = new SimplePanel();
hSpacer.setWidth("15px");
protocolHbox.add(hSpacer);
protocolsListBox = new ListBox();
protocolsListBox.addItem(Messages.getString("smtp"));
protocolsListBox.addItem(Messages.getString("smtps"));
protocolHbox.add(protocolsListBox);
mailPanel.add(protocolHbox);
vSpacer = new SimplePanel();
vSpacer.setHeight("10px");
mailPanel.add(vSpacer);
Label emailOrginLabel = new Label(Messages.getString("emailOriginLabel"));
mailPanel.add(emailOrginLabel);
fromAddressTextBox = new TextBox();
fromAddressTextBox.setWidth("220px");
mailPanel.add(fromAddressTextBox);
vSpacer = new SimplePanel();
vSpacer.setHeight("10px");
mailPanel.add(vSpacer);
Label emailFromName = new Label(Messages.getString("emailFromNameLabel"));
mailPanel.add(emailFromName);
fromNameTextBox = new TextBox();
fromNameTextBox.setWidth("220px");
mailPanel.add(fromNameTextBox);
vSpacer = new SimplePanel();
vSpacer.setHeight("10px");
mailPanel.add(vSpacer);
useStartTLSCheckBox = new CheckBox(Messages.getString("useStartTLS"));
mailPanel.add(useStartTLSCheckBox);
useSSLCheckBox = new CheckBox(Messages.getString("useSSL"));
mailPanel.add(useSSLCheckBox);
// debuggingCheckBox = new CheckBox(Messages.getString("enableDebugging"));
// mailPanel.add(debuggingCheckBox);
vSpacer = new SimplePanel();
vSpacer.setHeight("20px");
mailPanel.add(vSpacer);
HorizontalPanel buttonsPanel = new HorizontalPanel();
mailPanel.add(buttonsPanel);
testButton = new Button(Messages.getString("connectionTest.label"));
testButton.setStylePrimaryName("pentaho-button");
buttonsPanel.add(testButton);
hSpacer = new SimplePanel();
hSpacer.setWidth("10px");
buttonsPanel.add(hSpacer);
saveButton = new Button(Messages.getString("save"));
saveButton.setStylePrimaryName("pentaho-button");
buttonsPanel.add(saveButton);
return mailPanel;
}
use of com.google.gwt.user.client.ui.SimplePanel in project che by eclipse.
the class NotificationContainerItem method createCloseWidget.
/**
* Create close icon widget that contains an close notification icon.
*
* @return {@link SimplePanel} as close icon wrapper
*/
private SimplePanel createCloseWidget() {
SimplePanel closeWrapper = new SimplePanel();
SVGImage closeImage = new SVGImage(resources.closeIcon());
closeImage.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
delegate.onClose(notification);
}
});
closeWrapper.add(closeImage);
closeWrapper.setStyleName(resources.notificationCss().notificationCloseButtonWrapper());
closeImage.ensureDebugId(CLOSE_ICON_DBG_ID + notification.getId());
return closeWrapper;
}
use of com.google.gwt.user.client.ui.SimplePanel in project che by eclipse.
the class NotificationContainerItem method createIconWidget.
/**
* Create icon wrapper that contains an icon.
*
* @return {@link SimplePanel} as icon wrapper
*/
private SimplePanel createIconWidget() {
SimplePanel iconWrapper = new SimplePanel();
iconWrapper.setStyleName(resources.notificationCss().notificationIconWrapper());
iconWrapper.ensureDebugId(ICON_DBG_ID + notification.getId());
return iconWrapper;
}
Aggregations