/** * Instantiates a new ProfileFilterStructView. */ public ProfileFilterStructView(HasErrorMessage hasErrorMessage) { super(hasErrorMessage); testFilterButton = new Button(Utils.constants.testFilter()); prependButton(testFilterButton); }
@Override protected void init() { super.init(); downloadConfigurationButton = new Button(Utils.constants.downloadConfiguration()); buttonsPanel.add(downloadConfigurationButton); downloadConfigurationButton.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent clickEvent) { String url = Window.Location.getHref(); Window.open("/kaaAdmin/servlet/kaaConfigurationDownloadServlet?schemaId=" + Utils.getSchemaIdFromUrl(url) + "&endGroupId=" + Utils.getEndpointGroupIdFromUrl(url), "_blank", "status=0,toolbar=0,menubar=0,location=0"); } }); }
/** * Instantiates a new UnauthorizedSessionDialog. */ public UnauthorizedSessionDialog(final Listener listener) { super(false, true); setWidth("500px"); setTitle(Utils.constants.sessionExpired()); VerticalPanel dialogContents = new VerticalPanel(); dialogContents.setSpacing(4); add(dialogContents); AlertPanel warningPanel = new AlertPanel(AlertPanel.Type.WARNING); warningPanel.setMessage(Utils.messages.sessionExpiredMessage()); dialogContents.add(warningPanel); Button loginButton = new Button(Utils.constants.logInAgain(), new ClickHandler() { @Override public void onClick(ClickEvent event) { hide(); listener.onLogin(); } }); Button ignoreButton = new Button(Utils.constants.ignore(), new ClickHandler() { @Override public void onClick(ClickEvent event) { hide(); listener.onIgnore(); } }); addButton(loginButton); addButton(ignoreButton); }
dialogContents.add(messageLabel); okButton = new Button(Utils.constants.ok(), new ClickHandler() { @Override public void onClick(ClickEvent event) {
supportPanel.setWidth("1000px"); resetButton = new Button(Utils.constants.reset()); supportPanel.add(resetButton); endpointKeyHash = new TextBox(); endpointKeyHash.setWidth("100%"); findButton = new Button(Utils.constants.find()); findButton.addStyleName(Utils.avroUiStyle.buttonSmall()); keyHashPanel.add(endpointKeyHashButton);
Button backButton = new Button(); backButton.addStyleName(Utils.kaaAdminStyle.bAppBackButton()); backButtonPanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT); horizontalPanel.setCellHeight(buttonsPanel, "100%"); Button saveButton = new Button(); buttonsPanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT); buttonsPanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE); Button cancelButton = new Button(); cancelButton.setVisible(false); buttonsPanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT);
@Override protected void initDetailsTable() { tenantName = new KaaAdminSizedTextBox(TENANT_NAME_TEXT_SIZE_BOX); tenantName.setWidth("100%"); tenantName.addInputHandler(this); lableUser = new Label("Users"); Label titleLabel = new Label(Utils.constants.tenantName()); titleLabel.addStyleName(REQUIRED); detailsTable.setWidget(0, 0, titleLabel); detailsTable.setWidget(0, 1, tenantName); tenantAdminsGrid = new UsersGrid(false, true); tenantAdminsGrid.setWidth("100%"); tenantAdminsGrid.setSize("1000px", "400px"); detailsTable.getFlexCellFormatter().setColSpan(2, 0, 3); tenantAdminAddButton = new Button(Utils.constants.addNewUser()); tenantAdminAddButton.addStyleName(Utils.kaaAdminStyle.bAppButtonSmall()); tenantName.setFocus(true); if (!create) { detailsTable.setWidget(2, 0, tenantAdminsGrid); detailsTable.setWidget(3, 3, tenantAdminAddButton); detailsTable.setWidget(1, 0, lableUser); } }
generateSdkButton = new Button(Utils.constants.generateSdk()); detailsTable.setWidget(3, 0, generateSdkButton); } else {
detailsTable.setWidget(3, 1, email); changePasswordButton = new Button(Utils.constants.changePassword());
.setColSpan(2, 0, 2); loginButton = new Button(Utils.constants.login()); loginButton.addStyleName(Utils.kaaAdminStyle.loginButton()); loginTable.setWidget(3, 2, loginButton);
recordFileUpload.addChangeHandler(this); recordFileItemName = recordFileUpload.getFileItemName(); uploadButton = new Button(Utils.constants.upload(), new ClickHandler() { @Override public void onClick(ClickEvent event) {
sendNotification = new Button(Utils.constants.sendNotification()); detailsTable.setWidget(5, 0, sendNotification); sendNotification.setVisible(!create);
ecfVersionsLabel.addStyleName(Utils.kaaAdminStyle.bAppContentTitleLabel()); addEcfVersionButton = new Button(Utils.constants.addFamilyVersion()); addEcfVersionButton.addStyleName(Utils.kaaAdminStyle.bAppButtonSmall());