dialogContents.setSpacing(4); setWidget(dialogContents);
/** * 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.setSpacing(4); dialogContents.getElement().getStyle().setOverflow(Overflow.AUTO); setWidget(dialogContents);
dialogContents.setSpacing(4); setWidget(dialogContents);
dialogContents.setSpacing(4); setWidget(dialogContents);
dialogContents.setSpacing(4); setWidget(dialogContents);
availableEcfsPanel.setSpacing(6); Label availableLabel = new Label(Utils.constants.available()); availableEcfsPanel.add(availableLabel); ecfButtonsPanel.setSpacing(6); ecfButtonsPanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE); ecfButtonsPanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER); selectedEcfsPanel.setSpacing(6); Label selectedLabel = new Label(Utils.constants.selected()); selectedEcfsPanel.add(selectedLabel);
dialogContents.setSpacing(4); setWidget(dialogContents);
VerticalPanel contactsPanel = new VerticalPanel(); contactsPanel.setSpacing(4); String[] contactNames = constants.cwStackPanelContacts(); String[] contactEmails = constants.cwStackPanelContactsEmails(); for (int i = 0; i < contactNames.length; i++) { final String contactName = contactNames[i]; final String contactEmail = contactEmails[i]; final Anchor contactLink = new Anchor(contactName); contactsPanel.add(contactLink)
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; }
private static class CombinedWidget extends Composite { public CombinedWidget() { // place the check above the text box using a vertical panel. VerticalPanel panel = new VerticalPanel(); DockLayoutPanel dPanel = new DockLayoutPanel(Unit.EM); panel.setSpacing(13); panel.add(nameProject); nameProject.setStyleName("gwt-Group-Label"); panel.add(className); panel.add(nameKs); panel.add(nameEsmond); panel.add(nameBowen); panel.add(nameAaron); dPanel.addWest(panel, 13); dPanel.add(getGeoChart()); // all composites must call initWidget() in their constructors. initWidget(dPanel); setWidth("100%"); }
public class Firstmodule implements EntryPoint { private MainGUI famLayout = new MainGUI(); public void onModuleLoad() { loadingGUI(); } /** * The message displayed to the user when the server cannot be reached or returns an error. */ static final String SERVER_ERROR = "An error occurred while " + "attempting to contact the server. Please check your network " + "connection and try again."; private void loadingGUI() { VerticalPanel Layout = new VerticalPanel(); Layout.add(famLayout.getFormPanel()); Layout.setSpacing(30); DecoratorPanel decPanel = new DecoratorPanel(); decPanel.setWidget(Layout); decPanel.setWidth("60%"); decPanel.setHeight("90%"); RootPanel.get("uploadContainer").add(decPanel); } }
hp.getElement().getStyle().setMarginTop(40, Unit.PX); vp.add(hp); vp.setSpacing(10); dialog.add(vp);
public WSGrid(boolean scrollable, boolean editable) { innerPanel = new VerticalPanel(); innerPanel.setSpacing(0);
buttonBar.setSpacing(3); buttonBar.getElement().getStyle().setProperty("margin", "7px"); buttonBar.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);