Java Code Examples for com.smartgwt.client.widgets.layout.VLayout#setDefaultLayoutAlign()
The following examples show how to use
com.smartgwt.client.widgets.layout.VLayout#setDefaultLayoutAlign() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ApplicationRestarting.java From document-management-software with GNU Lesser General Public License v3.0 | 5 votes |
private ApplicationRestarting() { setHeaderControls(HeaderControls.HEADER_LABEL); setTitle(" "); setCanDragResize(false); setIsModal(true); setShowModalMask(true); centerInPage(); setAutoSize(true); setShowStatusBar(false); setBodyColor("white"); setMembersMargin(0); messageFlow = new HTMLFlow(); messageFlow.setAlign(Alignment.CENTER); messageFlow.setStyleName("contactingserver"); messageFlow.setLayoutAlign(Alignment.CENTER); messageFlow.setLayoutAlign(VerticalAlignment.CENTER); messageFlow.setBackgroundColor("white"); messageFlow.setHeight(50); VLayout container = new VLayout(); container.setWidth100(); container.setMembersMargin(5); container.setMargin(3); container.setAlign(Alignment.CENTER); container.setDefaultLayoutAlign(Alignment.CENTER); container.setMembers(messageFlow); addItem(container); }
Example 2
Source File: ContactingServer.java From document-management-software with GNU Lesser General Public License v3.0 | 5 votes |
private ContactingServer() { setHeaderControls(HeaderControls.HEADER_LABEL); setTitle(" "); setCanDragResize(false); setIsModal(true); setShowModalMask(true); centerInPage(); setAutoSize(true); setShowStatusBar(false); setBodyColor("white"); setMembersMargin(0); HTMLFlow message = new HTMLFlow(AwesomeFactory.getSpinnerIconHtml("pulse", I18N.message("contactingserver"))); message.setAlign(Alignment.CENTER); message.setStyleName("contactingserver"); message.setLayoutAlign(Alignment.CENTER); message.setLayoutAlign(VerticalAlignment.CENTER); message.setBackgroundColor("white"); message.setHeight(50); VLayout container = new VLayout(); container.setWidth100(); container.setMembersMargin(5); container.setMargin(3); container.setAlign(Alignment.CENTER); container.setDefaultLayoutAlign(Alignment.CENTER); container.setMembers(message); addItem(container); }
Example 3
Source File: Setup.java From document-management-software with GNU Lesser General Public License v3.0 | 4 votes |
private void initGUI(final GUIInfo info) { WindowUtils.setTitle(info.getBranding().getProductName() + " " + info.getRelease() + (info.getLicensee() != null ? " - " + I18N.message("licensedto") + ": " + info.getLicensee() : "")); WindowUtils.setFavicon(info); // Prepare a value manager that will include all forms spanned in each // tab vm = new ValuesManager(); // Create all the tabs each one for a specific setup step tabs = new TabSet(); tabs.setWidth(600); tabs.setHeight(250); Tab registrationTab = setupRegistration(vm); Tab repositoryTab = setupRepository(vm, info); Tab databaseTab = setupDatabase(vm, info); tabs.setTabs(registrationTab, repositoryTab, databaseTab); // This is the button used to confirm each step submit = new IButton(); submit.setTitle(I18N.message("next")); submit.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { onSubmit(info); } }); // Prepare the heading panel with Logo and Title // Prepare the logo image to be shown inside the login form Label header = new Label(I18N.message("setup")); header.setStyleName("setupHeader"); header.setIcon(info.getBranding().getLogoSrc()); header.setIconWidth(205); header.setIconHeight(40); header.setHeight(45); // Prepare a panel to layout setup components VLayout layout = new VLayout(); layout.setHeight(500); layout.setWidth(400); layout.setMembersMargin(5); layout.addMember(header); layout.addMember(tabs); layout.addMember(submit); // Panel for horizontal centering VLayout vPanel = new VLayout(); vPanel.setDefaultLayoutAlign(Alignment.CENTER); vPanel.setWidth100(); vPanel.setHeight(300); vPanel.addMember(layout); RootPanel.get().add(vPanel); // Remove the loading frame RootPanel.getBodyElement().removeChild(RootPanel.get("loadingwrapper-setup").getElement()); }