Refine search
@Override protected void constructTopPanel() { FlexTable flexTable = new FlexTable(); flexTable.setCellSpacing(0); flexTable.setCellPadding(0); flexTable.setHeight("100%"); topPanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT); topPanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE); topPanel.add(flexTable); Button backButton = new Button(); backButton.addStyleName(Utils.kaaAdminStyle.bAppBackButton()); VerticalPanel verticalPanel = new VerticalPanel(); verticalPanel.setHeight("100%"); verticalPanel.add(firstRowPanel); backButton.getElement().getStyle().setPaddingTop(25, Unit.PX); updateNorthSize(175); verticalPanel.add(secondRowPanel); Label titleLabel = new Label(); titleLabel.addStyleName(Utils.kaaAdminStyle.bAppContentTitle()); scope = new Label();
@Override public void setWidget(Widget w) { logArea.clear(); add(w); } }
@Override protected int initDetailsTableImpl() { int row = -1; Label schemaLabel = new Label(Utils.constants.schemaVersion()); detailsTable.setWidget(++row, 0, schemaLabel); if (create) { schemaLabel.addStyleName(Utils.avroUiStyle.requiredField()); schema = new VersionListBox(); schema.setWidth("80px"); VerticalPanel panel = new VerticalPanel(); panel.setWidth("100%"); panel.add(schema); panel.add(new HTML(" ")); detailsTable.setWidget(row, 1, panel); schema.addValueChangeHandler(this); } else { schemaVersion = new KaaAdminSizedTextBox(-1, false); schemaVersion.setWidth("100%"); detailsTable.setWidget(row, 1, schemaVersion); } return row; }
VerticalPanel vPanel = new VerticalPanel(); HorizontalPanel hPanel = new HorizontalPanel(); vPanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT); Button ok = new Button("OK"); ok.addClickHandler(new ClickHandler() { public void onClick (ClickEvent event) { TextInputDialogBox.this.onPositive(); Button cancel = new Button("Cancel"); cancel.addClickHandler(new ClickHandler() { public void onClick (ClickEvent event) { hPanel.add(ok); hPanel.add(cancel); textBox.setWidth("97%"); textBox.setText(text); vPanel.add(textBox); vPanel.add(hPanel);
Element element = Document.get().getElementById("embed-" + GWT.getModuleName()); if (element == null) { VerticalPanel panel = new VerticalPanel(); panel.setWidth("" + config.width + "px"); panel.setHeight("" + config.height + "px"); panel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER); panel.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE); RootPanel.get().add(panel); RootPanel.get().setWidth("" + config.width + "px"); this.root = panel; } else { VerticalPanel panel = new VerticalPanel(); panel.setWidth("" + config.width + "px"); panel.setHeight("" + config.height + "px"); panel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER); panel.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE); element.appendChild(panel.getElement()); root = panel;
VerticalPanel mainPanel = new VerticalPanel(); mainPanel.setBorderWidth(1); mainPanel.getElement().getStyle().setBackgroundColor("white"); final HTML titleBar = new HTML("<center><b>Logging</b></center>"); mainPanel.add(titleBar); new WindowMoveHandler(titleBar); mainPanel.add(scrollPanel); logArea = new VerticalPanel(); scrollPanel.setWidget(logArea); scrollPanel.setPixelSize(300, 200); HorizontalPanel bottomBar = new HorizontalPanel(); mainPanel.add(bottomBar); bottomBar.setWidth("100%"); bottomBar.setVerticalAlignment(HasVerticalAlignment.ALIGN_BOTTOM); final Button maxmin = new Button("Minimize"); bottomBar.add(maxmin); maxmin.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { if (maxmin.getText().equals("Minimize")) { new HTML("<div style='font-size:200%; line-height:75%'>\u21F2</div>"); resizeIcon.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT); bottomBar.add(resizeIcon); new WindowResizeHandler(resizeIcon);
VerticalPanel dialogContents = new VerticalPanel(); dialogContents.setSpacing(4); setWidget(dialogContents); dialogContents.add(errorPanel); FlexTable table = new FlexTable(); table.setCellSpacing(6); Widget label = new Label(Utils.constants.selectNotificationTopics()); label.addStyleName(Utils.avroUiStyle.requiredField()); topic = new TopicListBox(); topic.addValueChangeHandler(this); table.setWidget(0, 0, label); table.setWidget(0, 1, topic); table.getCellFormatter().setHorizontalAlignment(0, 0, HasHorizontalAlignment.ALIGN_RIGHT); dialogContents.add(table); addButton = new Button(Utils.constants.add(), new ClickHandler() { @Override public void onClick(ClickEvent event) { addButton(closeButton); addButton.setEnabled(false);
VerticalPanel dialogContents = new VerticalPanel(); dialogContents.setSpacing(4); setWidget(dialogContents); dialogContents.add(errorPanel); FlexTable table = new FlexTable(); table.setCellSpacing(6); table.addStyleName(Utils.avroUiStyle.fieldWidget()); Widget schemaVersionLabel = new Label(Utils.constants.schemaVersion()); schemaVersionLabel.addStyleName(Utils.avroUiStyle.requiredField()); schemaBox = new SchemaInfoListBox(); schemaBox.addValueChangeHandler(this); HorizontalPanel versionPanel = new HorizontalPanel(); versionPanel.add(schemaVersionLabel); versionPanel.add(schemaBox); table.setWidget(0, 0, versionPanel); table.getFlexCellFormatter().setColSpan(1, 0, 2); dialogContents.add(table); saveButton.setEnabled(false);
selectedAefMaps = new MultiAefMapListBox(); addAefMapButton = new Button(Utils.constants.add()); removeAefMapButton = new Button(Utils.constants.remove()); VerticalPanel availableEcfsPanel = new VerticalPanel(); availableEcfsPanel.setSpacing(6); Label availableLabel = new Label(Utils.constants.available()); availableEcfsPanel.add(availableLabel); availableEcfsPanel.add(availableAefMaps); VerticalPanel ecfButtonsPanel = new VerticalPanel(); ecfButtonsPanel.setSpacing(6); ecfButtonsPanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE); ecfButtonsPanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER); ecfButtonsPanel.add(addAefMapButton); ecfButtonsPanel.add(removeAefMapButton); VerticalPanel selectedEcfsPanel = new VerticalPanel(); selectedEcfsPanel.setSpacing(6); Label selectedLabel = new Label(Utils.constants.selected()); selectedEcfsPanel.add(selectedLabel); selectedEcfsPanel.add(selectedAefMaps); ecfsDisclosure.setContent(ecfsTable); addAefMapButton.addStyleName(Utils.kaaAdminStyle.bAppButtonSmall());
private FlexTable addCharacteristic(final Characteristic characteristic) { final FlexTable cGrid = new FlexTable(); cGrid.setBorderWidth(0); cGrid.setCellPadding(1); cGrid.setCellSpacing(1); cGrid.setWidget(0, 0, new Label(GuidedScoreCardConstants.INSTANCE.name())); final TextBox tbName = TextBoxFactory.getTextBox(DataType.TYPE_STRING); cGrid.setWidget(0, gapPanel.add(new HTML("<br/>")); final VerticalPanel panel = new VerticalPanel(); panel.add(cGrid); characteristicsAttrPanelMap.put(cGrid, panel); panel.setWidth("100%"); DecoratorPanel decoratorPanel = new DecoratorPanel(); decoratorPanel.add(panel); characteristicsPanel.add(decoratorPanel); characteristicsPanel.add(gapPanel); characteristicsTables.add(cGrid);
dialogBox.setGlassEnabled(true); VerticalPanel dialogVPanel = new VerticalPanel(); dialogVPanel.addStyleName("dialogVPanel"); dialogVPanel.add(new HTML("<b>" + title + "</b>")); dialogVPanel.add(new HTML("<br><b>" + message + "</b><br><br>")); dialogVPanel.setHorizontalAlignment(VerticalPanel.ALIGN_CENTER); HorizontalPanel buttons = new HorizontalPanel(); dialogVPanel.add(buttons); Button ok = new Button("OK"); buttons.add(ok); ok.addClickHandler(new ClickHandler() if (style == Style.OK_CANCEL) Label gap = new Label(""); gap.setWidth("10px"); buttons.add(gap); Button cancel = new Button("Cancel"); buttons.add(cancel); cancel.addClickHandler(new ClickHandler()
setModal(false); final VerticalPanel panel = new VerticalPanel(); final Label titleBarLabel = new Label("An Error Occurred in the Bus"); titleBarLabel.getElement().getStyle().setFontSize(10, Style.Unit.PT); titleBarLabel.getElement().getStyle().setFontWeight(Style.FontWeight.BOLDER); titleBarLabel.getElement().getStyle().setColor("white"); final Button disconnectFromServer = new Button("Disconnect Bus"); disconnectFromServer.addClickHandler(new ClickHandler() { @Override public void onClick(final ClickEvent event) { final Button clearErrors = new Button("Clear Log"); clearErrors.addClickHandler(new ClickHandler() { @Override titleBar.setCellHorizontalAlignment(buttonPanel, HasHorizontalAlignment.ALIGN_RIGHT); panel.add(titleBar); final Style s = panel.getElement().getStyle(); panel.add(contentPanel); add(panel);
if( direction == 0 ) VerticalPanel vp = new VerticalPanel(); realPanel = vp; panel = vp; HorizontalPanel hp = new HorizontalPanel(); realPanel = hp; panel = hp; HTML ophtml = new HTML( op ); ophtml.addStyleName( "CriteriaOperator" ); panel.add( ophtml ); Button addButton = new Button( "..." ); addButton.addClickHandler( new ClickHandler() HorizontalPanel hp = new HorizontalPanel(); hp.add( lbField );
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; }
VerticalPanel root = new VerticalPanel(); this.setWidget(root); FlexTable grid = new FlexTable(); grid.setCellSpacing(15); grid.getColumnFormatter().setWidth(0, "115px"); grid.getColumnFormatter().setWidth(1, "115px"); Label label = new Label(Utils.constants.targetPlatform()); grid.setWidget(0, 0, label); grid.setWidget(0, 1, targetPlatform); root.add(grid); Button generateSdk = new Button(Utils.constants.generateSdk(), new ClickHandler() { Button cancel = new Button(Utils.constants.cancel(), new ClickHandler() { @Override public void onClick(ClickEvent event) {
VerticalPanel container = new VerticalPanel(); dialog.setWidget(container); bodyText = new Label(); bodyText.setWordWrap(true); container.add(bodyText); HorizontalPanel buttonPanel = new HorizontalPanel(); container.add(buttonPanel); okButton = new Button(messages.ok()); okButton.addClickHandler(new ClickHandler() buttonPanel.add(okButton);
@Override public Widget create(String machineName, List<RuntimeInfo> runtimeList) { VerticalPanel panel = new VerticalPanel(); panel.ensureDebugId("runtimeInfoVerticalPanel"); panel.setWidth("100%"); Label caption = new Label(locale.cellTableCaption(machineName)); caption.ensureDebugId("runtimeInfoCellTableCaption"); caption.addStyleName(resources.cellTableStyle().cellTableCaption()); HorizontalPanel hPanel = new HorizontalPanel(); hPanel.setWidth("100%"); hPanel.ensureDebugId("runtimeInfoCellTableHeaderWrapper"); hPanel.add(caption); hPanel.add(hideCheckBox); panel.add(hPanel); panel.add(createCellTable(dataProvider)); return new ScrollPanel(panel);
public WSTabSelectorDialog(Set<String> components) { hPanel = new HorizontalPanel(); hPanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER); vPanel = new VerticalPanel(); hPanel.add(vPanel); vPanel.add(message); Button b = new Button("<span><img src='" + instanceProperties.get(LayoutParts.IconURI.name()) + "' align='left'/>" + instanceProperties.get(LayoutParts.Name.name()) + "</span>" , new ClickHandler() { b.getElement().getStyle().setProperty("background", "transparent"); b.getElement().getStyle().setProperty("textAlign", "left"); b.setWidth("100%"); vPanel.add(b); HorizontalPanel innerContainer = new HorizontalPanel(); vPanel.add(innerContainer); innerContainer.setWidth("100%"); innerContainer.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT); innerContainer.add(buttonPanel); Style s = message.getElement().getStyle(); s.setProperty("padding", "8px"); s.setProperty("verticalAlign", "top");
VerticalPanel mainPanel = new VerticalPanel(); HorizontalPanel login = new HorizontalPanel(); HorizontalPanel password = new HorizontalPanel(); HorizontalPanel buttons = new HorizontalPanel(); mainPanel.add(login); mainPanel.add(password); mainPanel.add(buttons); Label userNameLabel = new Label("User:"); Label passwordLabel = new Label("Password:"); password.setCellHorizontalAlignment(passwordInput, HasAlignment.ALIGN_RIGHT); loginButton = new Button("Login"); buttons.add(loginButton); buttons.setWidth("100%");