VerticalPanel vPanel = new VerticalPanel(); HorizontalPanel hPanel = new HorizontalPanel(); hPanel.add(ok); hPanel.add(cancel); textBox.setWidth("97%"); textBox.setText(text); vPanel.add(textBox); vPanel.add(hPanel);
@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; }
this.listener = listener; VerticalPanel dialogContents = new VerticalPanel(); dialogContents.setSpacing(4); setWidget(dialogContents); messageLabel.getElement().getStyle().setOverflowY(Overflow.AUTO); messageLabel.setMessage(message); dialogContents.add(messageLabel);
public DSLSentenceWidget( RuleModeller modeller, EventBus eventBus, DSLSentence sentence, Boolean readOnly ) { super( modeller, eventBus ); widgets = new ArrayList<Widget>(); dropDownWidgets = new ArrayList<DSLDropDown>(); this.sentence = sentence; if ( readOnly == null ) { this.readOnly = false; } else { this.readOnly = readOnly; } this.layout = new VerticalPanel(); this.currentRow = new HorizontalPanel(); this.layout.add( currentRow ); this.layout.setCellWidth( currentRow, "100%" ); this.layout.setWidth( "100%" ); if ( this.readOnly ) { this.layout.addStyleName( "editor-disabled-widget" ); } init(); }
public static void ask( String title, String message, final Callback callback ) { Button yes = new Button( "Yes" ); Button no = new Button( "No" ); HorizontalPanel buttonBar = UiBuilder.addIn( new HorizontalPanel(), yes, no ); final DialogBox db = DialogBoxBuilder.create( title, UiBuilder.addIn( new VerticalPanel(), new HTML( message ), buttonBar ) ); no.addClickHandler( new ClickHandler() { @Override public void onClick( ClickEvent event ) { db.hide(); } } ); yes.addClickHandler( new ClickHandler() { @Override public void onClick( ClickEvent event ) { db.hide(); callback.onConfirmedBox(); } } ); db.show( false ); } }
// doesn't necessarily have to be a vertical panel VerticalPanel container = new VerticalPanel(); HorizontalPanel buttons = new HorizontalPanel(); // add the buttons container.add(buttons); container.setCellHorizontalAlignment(buttons, HasHorizontalAlignment.ALIGN_RIGHT);
@Override protected Widget createUi() { HorizontalPanel panel = new HorizontalPanel(); legendPanel = new VerticalPanel(); panel.add( plot ); panel.add( legendPanel ); return panel; }
private VerticalPanel createDrow(final int hour) { final VerticalPanel drow = new VerticalPanel(); drow.setSpacing(2); drow.addStyleName(renderer.getStyle(JrsGxtDateCss.HOUR)); for (int i = 0; i < (showIntervalTimes ? intervalsPerHour : 1); i++) { drow.add(new Label(Dates.printTime(hour, i * intervalMinutes))); } return drow; }
public VerticalDecoratedDecisionTableGridWidget( ResourcesProvider<BaseColumn> resources, DecisionTableCellFactory cellFactory, DecisionTableCellValueFactory cellValueFactory, DecisionTableDropDownManager dropDownManager, boolean isReadOnly, EventBus eventBus ) { super( resources, cellFactory, cellValueFactory, eventBus, new HorizontalPanel(), new VerticalPanel(), new VerticalMergableDecisionTableGridWidget( resources, cellFactory, cellValueFactory, dropDownManager, isReadOnly, eventBus ), new VerticalDecisionTableHeaderWidget( resources, isReadOnly, eventBus ), new VerticalDecisionTableSidebarWidget( resources, isReadOnly, eventBus ) ); }
VerticalPanel vPanel = new VerticalPanel(); HorizontalPanel hPanel = new HorizontalPanel(); hPanel.add(ok); hPanel.add(cancel); textBox.setWidth("97%"); textBox.setText(text); vPanel.add(textBox); vPanel.add(hPanel);
serverProfileSchema.setWidth("80px"); VerticalPanel panel = new VerticalPanel(); panel.setWidth("100%"); panel.add(endpointProfileSchema); panel.add(new HTML(" ")); detailsTable.setWidget(endpointProfileSchemaRow, 1, panel); panel = new VerticalPanel(); panel.setWidth("100%"); panel.add(serverProfileSchema); panel.add(new HTML(" ")); detailsTable.setWidget(serverProfileSchemaRow, 1, panel);
/** * 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); }
public DSLSentenceWidget(RuleModeller modeller, EventBus eventBus, DSLSentence sentence, Boolean readOnly) { super(modeller, eventBus); widgets = new ArrayList<Widget>(); dropDownWidgets = new ArrayList<DSLDropDown>(); this.sentence = sentence; if (readOnly == null) { this.readOnly = false; } else { this.readOnly = readOnly; } this.layout = new VerticalPanel(); this.currentRow = new HorizontalPanel(); this.layout.add(currentRow); this.layout.setCellWidth(currentRow, "100%"); this.layout.setWidth("100%"); if (this.readOnly) { this.layout.addStyleName("editor-disabled-widget"); } init(); }
public static void ask( String title, String message, final Callback callback ) { Button yes = new Button( "Yes" ); Button no = new Button( "No" ); HorizontalPanel buttonBar = UiBuilder.addIn( new HorizontalPanel(), yes, no ); final DialogBox db = DialogBoxBuilder.create( title, UiBuilder.addIn( new VerticalPanel(), new HTML( message ), buttonBar ) ); no.addClickHandler( new ClickHandler() { @Override public void onClick( ClickEvent event ) { db.hide(); } } ); yes.addClickHandler( new ClickHandler() { @Override public void onClick( ClickEvent event ) { db.hide(); callback.onConfirmedBox(); } } ); db.show( false ); } }
protected Widget createUi() { VerticalPanel panel = new VerticalPanel(); legendPanel = new HorizontalPanel(); legendPanel.getElement().getStyle().setMarginBottom( 5, Unit.PX ); panel.add( legendPanel ); panel.add( plot ); return panel; }
public VerticalTabLayoutPanel() { super(); layout = new HorizontalPanel(); layout.setStyleName("fill-layout"); this.tabContainer = new VerticalPanel(); this.tabContainer.setStyleName("vertical-tabpanel-tabs"); this.decks = new DeckPanel(); layout.add(tabContainer); layout.add(decks); decks.getElement().getParentElement().setAttribute("width", "100%"); }
topPanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT); topPanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE); topPanel.add(flexTable); topPanel.setCellHeight(flexTable, "100%"); HorizontalPanel backButtonPanel = new HorizontalPanel(); backButtonPanel.setHeight("100%"); backButtonPanel.addStyleName(Utils.kaaAdminStyle.bAppPaddedPanel()); VerticalPanel verticalPanel = new VerticalPanel(); verticalPanel.setHeight("100%"); flexTable.setWidget(0, 1, verticalPanel); flexTable.getFlexCellFormatter().setVerticalAlignment(0, 1, HasVerticalAlignment.ALIGN_MIDDLE); HorizontalPanel secondRowPanel = new HorizontalPanel(); secondRowPanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT); secondRowPanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE); updateNorthSize(175); verticalPanel.add(secondRowPanel); firstRowPanel.add(titleLabel); firstRowPanel.setCellHeight(titleLabel, "100%");
protected Widget createWidget() { table = createTable(); tableProvider.addDataDisplay(table); HTML titleHtml = new HTML(); if ( displayerSettings.isTitleVisible() ) { titleHtml.setText( displayerSettings.getTitle() ); } VerticalPanel verticalPanel = new VerticalPanel(); verticalPanel.add(titleHtml); verticalPanel.add(table); return verticalPanel; }
VerticalPanel dialogContents = new VerticalPanel(); dialogContents.setSpacing(4); setWidget(dialogContents); dialogContents.add(errorPanel); dialogContents.add(messagePanel); dialogContents.add(table);
public DSLSentenceWidget(RuleModeller modeller, EventBus eventBus, DSLSentence sentence, Boolean readOnly) { super(modeller, eventBus); widgets = new ArrayList<Widget>(); dropDownWidgets = new ArrayList<DSLDropDown>(); this.sentence = sentence; if (readOnly == null) { this.readOnly = false; } else { this.readOnly = readOnly; } this.layout = new VerticalPanel(); this.currentRow = new HorizontalPanel(); this.layout.add(currentRow); this.layout.setCellWidth(currentRow, "100%"); this.layout.setWidth("100%"); if (this.readOnly) { this.layout.addStyleName("editor-disabled-widget"); } init(); }