com.smartgwt.client.widgets.layout.VLayout Java Examples
The following examples show how to use
com.smartgwt.client.widgets.layout.VLayout.
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: DigitalObjectPreview.java From proarc with GNU General Public License v3.0 | 6 votes |
public DigitalObjectPreview(ClientMessages i18n) { this.i18n = i18n; zoomValues = new ValuesManager(); zoomValues.setValue(FIELD_ZOOM, Zoom.FIT_PANEL); VLayout imgContainer = new VLayout(); imgContainer.setAlign(Alignment.CENTER); windowContainer = new VLayout(); windowContainer.setAlign(Alignment.CENTER); windowContainer.setWidth100(); windowContainer.setHeight100(); imageWindow = createFullImageWindow(windowContainer); previewLayout = new VLayout(); previewLayout.setBackgroundColor(BACKGROUND_COLOR); previewLayout.addMember(imgContainer); previewLoadTask = new ImageLoadTask(imgContainer, new Zoom(zoomValues.getValueAsString(FIELD_ZOOM)), false, i18n); }
Example #2
Source File: PopupMessage.java From document-management-software with GNU Lesser General Public License v3.0 | 6 votes |
public PopupMessage(String title, String messageText) { setHeaderControls(HeaderControls.HEADER_LABEL, HeaderControls.CLOSE_BUTTON); setTitle(title); setAlign(Alignment.CENTER); setAutoSize(true); centerInPage(); Label label=new Label(messageText); label.setMinWidth(350); VLayout layout= new VLayout(); layout.setMembersMargin(2); layout.setMembers(label); addItem(layout); Scheduler.get().scheduleFixedDelay(new RepeatingCommand() { @Override public boolean execute() { PopupMessage.this.destroy(); return false; } }, Session.get().getConfigAsInt("gui.popup.timeout") * 1000); }
Example #3
Source File: NewIssueEditor.java From proarc with GNU General Public License v3.0 | 6 votes |
/** * Starts the editor. * @param consumer a callback that consumes the edited values as a record * @see DigitalObjectResourceApi#DIGITALOBJECT_SERIES_DATE_FROM_PARAM * @see DigitalObjectResourceApi#DIGITALOBJECT_SERIES_DATE_TO_PARAM * @see DigitalObjectResourceApi#DIGITALOBJECT_SERIES_DAYS_INCLUDED_PARAM * @see DigitalObjectResourceApi#DIGITALOBJECT_SERIES_PARTNUMBER_FROM_PARAM */ public void showWindow(Consumer<Record> consumer) { Objects.nonNull(consumer); this.consumer = consumer; if (dialog == null) { dialog = new Dialog(i18n.DigitalObjectEditor_ChildrenEditor_AddAction_Title()); VLayout container = dialog.getDialogContentContainer(); container.setMembers(getWidget()); dialog.addOkButton((event) -> { onSave(); }); dialog.addCancelButton(() -> { dialog.hide(); }); } dialog.show(); form.clearValues(); form.focus(); }
Example #4
Source File: DigitalObjectSearchView.java From proarc with GNU General Public License v3.0 | 6 votes |
public DigitalObjectSearchView(ClientMessages i18n, String sourceName) { this.i18n = i18n; this.i18nSmartGwt = ClientUtils.createSmartGwtMessages(); foundGrid = createList(); selectionCache = SelectionCache.selector(foundGrid); filters = createFilter(); VLayout vLayout = new VLayout(); vLayout.addMember(filters); toolbar = createToolbar(); vLayout.addMember(toolbar); vLayout.addMember(foundGrid); rootWidget = vLayout; this.sourceName = sourceName; }
Example #5
Source File: LoginWindow.java From proarc with GNU General Public License v3.0 | 6 votes |
private Window createWindow(DynamicForm form) { VLayout container = new VLayout(); container.setMembers(form, createButtons()); container.setMargin(15); Window window = new Window(); window.setAutoCenter(true); window.setAutoSize(true); window.setIsModal(true); window.addItem(container); window.setTitle(i18nSgwt.dialog_LoginTitle()); window.setShowCloseButton(false); window.setShowMinimizeButton(false); window.setKeepInParentRect(true); window.setShowModalMask(true); window.setCanDragReposition(false); return window; }
Example #6
Source File: Header.java From SensorWebClient with GNU General Public License v2.0 | 6 votes |
private Label getImprintLink() { Label imprint = getHeaderLinkLabel(i18n.Impressum()); imprint.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { com.smartgwt.client.widgets.Window w = new com.smartgwt.client.widgets.Window(); w.setTitle(i18n.Impressum()); w.setWidth(450); w.setHeight(460); w.centerInPage(); w.setIsModal(true); VLayout layout = new VLayout(); HTMLPane pane = new HTMLPane(); pane.setContentsURL(i18n.imprintPath()); layout.setStyleName("n52_sensorweb_client_imprint_content"); layout.addMember(pane); w.addItem(layout); w.show(); } }); return imprint; }
Example #7
Source File: DigitalObjectAdministrationEditor.java From proarc with GNU General Public License v3.0 | 6 votes |
public BatchEditor(ClientMessages i18n) { widget = new VLayout(); form = new DynamicForm(); form.setBrowserSpellCheck(false); TextItem owner = new TextItem(DigitalObjectAdministrationDataSource.FIELD_OWNER); owner.setCanEdit(Boolean.FALSE); SelectItem device = new SelectItem(DigitalObjectAdministrationDataSource.FIELD_DEVICE, i18n.ImportSourceChooser_OptionScanner_Title()); DeviceDataSource.setOptionDataSource(device); device.setWidth(250); device.setAllowEmptyValue(true); device.setEmptyDisplayValue(ClientUtils.format("<i><%s></i>", i18n.DigitalObjectEditor_AdministrationEditor_NoDeviceSelection_Title())); form.setItems(device); widget.setMembers(form); }
Example #8
Source File: View.java From SensorWebClient with GNU General Public License v2.0 | 6 votes |
public void init() { tooltipElements = new ArrayList<Button>(); mainPanel = new MainPanel(); SosStringsAccessor.init(); SesStringsAccessor.init(); int fadeout = getPropertiesManager().getParamaterAsInt("toasterFadeout", 5); createToasterInstance("toaster", 400, 200, i18n.loggerWindowTitle(), mainPanel, fadeout * 1000); VLayout vLayout = createLayoutStack(); mainPanel.addMember(vLayout); diagramTab = new DiagramTab("diagram", i18n.diagram()); registerTabWidget(diagramTab); if (ClientUtils.isSesEnabled()) { sesTab = new SesTab("SES", "SES"); registerTabWidget(sesTab); } getMainEventBus().fireEvent(new TabSelectedEvent(datapanel.getTab(0))); }
Example #9
Source File: ImportBatchChooser.java From proarc with GNU General Public License v3.0 | 6 votes |
public ImportBatchChooser(ClientMessages i18n) { this.i18n = i18n; this.actionSource = new ActionSource(this); setWidth100(); setHeight100(); lGridBatches = initBatchesListGrid(); lGridBatches.setDataSource(ImportBatchDataSource.getInstance()); lGridBatches.setShowResizeBar(true); lGridBatches.setResizeBarTarget("next"); ToolStrip toolbar = createToolbar(); logForm = createLogForm(); VLayout innerLayout = new VLayout(); innerLayout.setMargin(4); innerLayout.addMember(lGridBatches); innerLayout.addMember(logForm); setMembers(toolbar, innerLayout); }
Example #10
Source File: Header.java From SensorWebClient with GNU General Public License v2.0 | 6 votes |
private Layout getHomeLabel() { Layout layout = new VLayout(); layout.setStyleName("n52_sensorweb_client_logoBlock"); Img homeLabel = new Img("../img/client-logo.png", 289, 55); homeLabel.setStyleName("n52_sensorweb_client_logo"); homeLabel.setCursor(Cursor.POINTER); homeLabel.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { String url = "http://52north.org/communities/sensorweb/"; Window.open(url, "_blank", ""); } }); layout.addMember(homeLabel); return layout; }
Example #11
Source File: ImportBatchItemEditor.java From proarc with GNU General Public License v3.0 | 6 votes |
private Canvas initDigitalObjectEditor(DigitalObjectEditor childEditor, SimpleEventBus eventBus) { childEditor.setImportView(true); RelationDataSource relationDataSource = RelationDataSource.getInstance(); relationDataSource.addRelationChangeHandler(new RelationChangeHandler() { @Override public void onRelationChange(RelationChangeEvent event) { // issue 262: isVisible seems to be always true and isAttached is always null. // Add test isDrawn that seems to change for dettached widgets. if (batchItemGrid.isVisible() && batchItemGrid.isDrawn()) { updateCache(); } } }); ActivityManager activityManager = new ActivityManager( new ChildActivities(childEditor), eventBus); VLayout editorsLayout = new VLayout(); editorsLayout.addStyleName("defaultBorder"); activityManager.setDisplay(new ChildEditorDisplay(editorsLayout)); return editorsLayout; }
Example #12
Source File: StationSelector.java From SensorWebClient with GNU General Public License v2.0 | 6 votes |
private Canvas createInfoWindow() { VLayout layout = new VLayout(); layout.addMember(createInformationFieldForSelectedStation()); HLayout buttons = new HLayout(); buttons.setAutoHeight(); buttons.setAlign(Alignment.RIGHT); buttons.addMember(createApplyCancelCanvas()); layout.addMember(buttons); infoWindow = new InteractionWindow(layout); infoWindow.setZIndex(1000000); infoWindow.setWidth(300); infoWindow.setHeight(300); setInfoWindowPosition(); infoWindow.hide(); return infoWindow; }
Example #13
Source File: ImportParentChooser.java From proarc with GNU General Public License v3.0 | 5 votes |
public ImportParentChooser(ClientMessages i18n) { this.i18n = i18n; this.widget = new VLayout(4); widget.setWidth100(); widget.setHeight100(); widget.setOverflow(Overflow.AUTO); selectionView = createSelectionView(i18n); foundView = new DigitalObjectSearchView(i18n, LAST_SELECTED_MODEL_TAG); treeView = new DigitalObjectTreeView(i18n); foundView.getGrid().setSelectionType(SelectionStyle.SINGLE); foundView.getGrid().addSelectionUpdatedHandler(new SelectionUpdatedHandler() { @Override public void onSelectionUpdated(SelectionUpdatedEvent event) { final ListGridRecord selectedRecord = foundView.getGrid().getSelectedRecord(); if (selectedRecord != null) { String pid = selectedRecord.getAttribute(RelationDataSource.FIELD_PID); treeView.setRoot(pid); } } }); widget.addMember(selectionView); Canvas foundViewWidget = foundView.asWidget(); foundViewWidget.setShowResizeBar(true); widget.addMember(foundViewWidget); widget.addMember(treeView.asWidget()); createActions(); initToolbar(foundView.getToolbar(), foundView); initToolbar(treeView.getToolbar(), treeView); initContextMenu(foundView.getGrid().getContextMenu(), foundView); initContextMenu(treeView.getTree().getContextMenu(), treeView); }
Example #14
Source File: LoginPanel.java From document-management-software with GNU Lesser General Public License v3.0 | 5 votes |
protected void prepareSwitchViewLink() { String url = "mobile".equals(Util.getJavascriptVariable("j_layout")) ? (Util.contextPath() + "login.jsp") : (Util.contextPath() + "login-mobile.jsp"); url += "?tenant=" + Util.detectTenant(); String label = "mobile".equals(Util.getJavascriptVariable("j_layout")) ? I18N.message("viewclassicweb") : I18N.message("viewmobileweb"); /* * A link to the alternative login page */ HTMLFlow switchLink = new HTMLFlow("<a href='" + url + "' class='login-switchview'>" + label + "</a>"); switchLink.setHeight(16); switchLink.setWidth(COLUMN_WIDTH + 20); switchLink.setStyleName("login-switchview"); HLayout spacer10 = new HLayout(); spacer10.setHeight(10); spacer10.setWidth(10); VLayout link = new VLayout(); link.setMembersMargin(0); link.setMargin(0); link.setStyleName("login-switchview"); link.setMembers(spacer10, switchLink); link.setLayoutAlign(VerticalAlignment.TOP); link.setLayoutAlign(Alignment.CENTER); link.setWidth(COLUMN_WIDTH + 20); link.setHeight(18); mainPanel.addMember(link); }
Example #15
Source File: DeviceManager.java From proarc with GNU General Public License v3.0 | 5 votes |
public DeviceManagerWidget(ClientMessages i18n) { this.i18n = i18n; actionSource = new ActionSource(this); widget = new VLayout(); Label lblHeader = new Label(); String title = ClientUtils.format("<b>%s</b>", i18n.DeviceManager_Title()); lblHeader.setContents(title); lblHeader.setAutoHeight(); lblHeader.setPadding(4); lblHeader.setStyleName(Editor.CSS_PANEL_DESCRIPTION_TITLE); ToolStrip toolbar = createToolbar(i18n); deviceList = createDeviceList(i18n); form = createForm(); premisForm = createPremisForm(); descriptionForm = createDescriptionForm(); valuesManager = new ValuesManager(); valuesManager.addMember(form); valuesManager.addMember(premisForm); valuesManager.addMember(descriptionForm); valuesManager.setDataSource(DeviceDataSource.getInstance()); VLayout forms = new VLayout(); forms.setOverflow(Overflow.AUTO); forms.setMembers(form, premisForm, descriptionForm); HLayout hLayout = new HLayout(); deviceList.setWidth100(); forms.setWidth100(); hLayout.setMembers(deviceList, forms); widget.addMember(lblHeader); widget.addMember(toolbar); widget.addMember(hLayout); }
Example #16
Source File: ChannelsPanel.java From document-management-software with GNU Lesser General Public License v3.0 | 5 votes |
@Override public void onDraw() { ToolStrip toolStrip = new ToolStrip(); toolStrip.setHeight(20); toolStrip.setWidth100(); toolStrip.addSpacer(2); ToolStripButton refresh = new ToolStripButton(); refresh.setTitle(I18N.message("refresh")); toolStrip.addButton(refresh); refresh.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { list.refresh(new ChannelsDS()); } }); toolStrip.addFill(); Layout listing = new VLayout(); setMembers(toolStrip, listing); ListGridField name = new ListGridField("name", I18N.message("channel"), 150); name.setCanEdit(false); ListGridField members = new ListGridField("members", I18N.message("members")); members.setCanEdit(false); members.setWidth("*"); list = new RefreshableListGrid(); list.setEmptyMessage(I18N.message("notitemstoshow")); list.setCanEdit(false); list.setWidth100(); list.setHeight100(); list.setAutoFetchData(true); list.setSelectionType(SelectionStyle.SINGLE); list.setFields(name, members); list.setDataSource(new ChannelsDS()); listing.addMember(list); }
Example #17
Source File: Toaster.java From SensorWebClient with GNU General Public License v2.0 | 5 votes |
private void getToasterWindow() { if (this.toasterWindow == null) { this.toasterWindow = new Window(); this.layout = new VLayout(); this.layout.setTabIndex( -1); this.toasterWindow.setParentElement(this.parentElem); this.toasterWindow.setAnimateFadeTime(fadeout); this.toasterWindow.setHeight(this.height); this.toasterWindow.setWidth(this.width); this.toasterWindow.setTitle(this.title); this.toasterWindow.setAutoSize(new Boolean(false)); this.toasterWindow.setOverflow(Overflow.AUTO); this.left = this.toasterWindow.getParentElement().getWidth().intValue() - this.width - 10; this.top = this.toasterWindow.getParentElement().getHeight().intValue() - this.height - 30; this.toasterWindow.setLeft(this.left); this.toasterWindow.setTop(this.top); this.toasterWindow.setCanDragResize(true); this.toasterWindow.setShowMaximizeButton(true); this.toasterWindow.setID(this.id); this.toasterWindow.addItem(this.layout); this.toasterWindow.addCloseClickHandler(new CloseClickHandler() { public void onCloseClick(CloseClickEvent event) { hide(); } }); } }
Example #18
Source File: LegendEntryTimeSeries.java From SensorWebClient with GNU General Public License v2.0 | 5 votes |
private Canvas createLegendInfo() { this.legendInfo = new VLayout(); this.legendInfo.setTabIndex(-1); // this.offeringLabel = new Label(); // this.procedureLabel = new Label(); this.phenonmenonLabel = new Label(); this.stationLabel = new Label(); this.firstValueInterval = new Label(); this.lastValueInterval = new Label(); this.phenonmenonLabel.setStyleName("n52_sensorweb_client_legendInfoRow"); this.stationLabel.setStyleName("n52_sensorweb_client_legendInfoRow"); // this.offeringLabel.setHeight(15); // this.procedureLabel.setHeight(15); this.phenonmenonLabel.setAutoHeight(); this.stationLabel.setAutoHeight(); // this.legendInfo.addMember(this.offeringLabel); // this.legendInfo.addMember(this.procedureLabel); this.legendInfo.addMember(this.phenonmenonLabel); this.legendInfo.addMember(this.stationLabel); this.legendInfo.addMember(createValueIntervalLabel()); return this.legendInfo; }
Example #19
Source File: WorkflowJobFormView.java From proarc with GNU General Public License v3.0 | 5 votes |
private Canvas createMainLayout() { VLayout main = new VLayout(); main.addMember(createJobToolbar()); main.addMember(createForm()); main.addMember(createTaskList()); main.addMember(createMaterialList()); return main; }
Example #20
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 #21
Source File: ProgressTracker.java From proarc with GNU General Public License v3.0 | 5 votes |
public ProgressTracker(ClientMessages i18n) { this.i18n = i18n; widget = new VLayout(4); label = new Label(); label.setWidth100(); label.setAutoHeight(); progressbar = new Progressbar(); progressbar.setVertical(false); progressbar.setLength(400); progressbar.setBreadth(24); widget.setMembers(label, progressbar); widget.setWidth100(); widget.setAutoHeight(); progressPrefix = i18n.ProgressTracker_Progress_0(); closeBtn = new IButton(i18n.ProgressTracker_CloseBtn_Title(), new ClickHandler() { @Override public void onClick(ClickEvent event) { stop(); } }); closeBtn.setTooltip(i18n.ProgressTracker_CloseBtn_Hint()); closeBtn.setAutoFit(true); }
Example #22
Source File: DigitalObjectEditor.java From proarc with GNU General Public License v3.0 | 5 votes |
public DigitalObjectEditor(ClientMessages i18n, PlaceController places, boolean embedded) { this.i18n = i18n; this.places = places; this.editorCache = new EnumMap<DatastreamEditorType, EditorDescriptor>(DatastreamEditorType.class); this.widget = new VLayout(); this.lblHeader = new Label(); lblHeader.setAutoHeight(); lblHeader.setPadding(4); lblHeader.setStyleName(Editor.CSS_PANEL_DESCRIPTION_TITLE); this.actionSource = new ActionSource(this); this.embeddedView = embedded; this.toolbar = Actions.createToolStrip(); this.editorContainer = new VLayout(); editorContainer.setLayoutMargin(4); editorContainer.setWidth100(); editorContainer.setHeight100(); widget.addMember(lblHeader); widget.addMember(toolbar); if (embedded) { widget.addMember(editorContainer); } else { editorContainer.setResizeBarTarget("next"); HLayout multiView = new HLayout(); multiView.setWidth100(); multiView.setHeight100(); multiView.setLayoutMargin(4); multiView.addMember(editorContainer); initOptionalEditor(multiView); widget.addMember(multiView); } }
Example #23
Source File: CatalogBrowser.java From proarc with GNU General Public License v3.0 | 5 votes |
private Canvas createAdvancedOptions() { formCatalog = createCatalogForm(); lgResult = new ListGrid(); lgResult.setDataSource(BibliographyQueryDataSource.getInstance()); // lgResult.setUseAllDataSourceFields(true); ListGridField preview = new ListGridField(BibliographyQueryDataSource.FIELD_PREVIEW, i18n.CatalogBrowser_HeaderPreview_Title()); ListGridField title = new ListGridField(BibliographyQueryDataSource.FIELD_TITLE, i18n.CatalogBrowser_HeaderTitle_Title()); lgResult.setDetailField(BibliographyQueryDataSource.FIELD_PREVIEW); lgResult.setFields(title, preview); // lgResult.setAutoFetchData(true); lgResult.setHeight100(); lgResult.setWidth100(); lgResult.setCanExpandRecords(true); lgResult.setCanExpandMultipleRecords(false); lgResult.setExpansionMode(ExpansionMode.DETAIL_FIELD); lgResult.setSelectionType(SelectionStyle.SINGLE); // lgResult.setSelectionAppearance(SelectionAppearance.CHECKBOX); lgResult.setAlternateRecordStyles(true); lgResult.addDataArrivedHandler(new DataArrivedHandler() { @Override public void onDataArrived(DataArrivedEvent event) { if (event.getStartRow() == 0 && event.getEndRow() > 0) { lgResult.focus(); lgResult.selectSingleRecord(0); } } }); VLayout layout = new VLayout(); layout.setMembers(formCatalog, lgResult); layout.setMargin(4); layout.setMembersMargin(4); layout.setOverflow(Overflow.AUTO); return layout; }
Example #24
Source File: ModsCustomEditor.java From proarc with GNU General Public License v3.0 | 5 votes |
public ModsCustomEditor(ClientMessages i18n) { this.i18n = i18n; this.editorCache = new HashMap<String, DynamicForm>(); this.widget = new VLayout(); this.widget.setOverflow(Overflow.AUTO); String wmsg = ClientUtils.format("<div class='proarcMetadataFormWarning'>%s</div>", i18n.DigitalObjectEditor_DescriptionFormEditor_FormSaveWarning_Msg()); warning.setContents(wmsg); warning.setAutoHeight(); }
Example #25
Source File: ImportPresenter.java From proarc with GNU General Public License v3.0 | 5 votes |
@Override public Canvas asWidget() { if (widget == null) { widget = new ImportParentChooser(i18n); widget.setParentOwnerCheck(true); widget.getUI().setMargin(4); container = new VLayout(); container.setMembers(buildToolbar(), widget.getUI()); } return container; }
Example #26
Source File: WorkflowNewJobEditor.java From proarc with GNU General Public License v3.0 | 5 votes |
public WorkflowNewJobEditor(ClientMessages i18n, PlaceController places) { this.i18n = i18n; this.places = places; uiContainer = new VLayout(); editor = new ModsMultiEditor(i18n); ToolStrip toolbar = Actions.createToolStrip(); toolbar.setMembers(editor.getToolbarItems()); uiContainer.addMembers(toolbar, editor.getUI()); }
Example #27
Source File: OverUndershootRuleTemplate.java From SensorWebClient with GNU General Public License v2.0 | 5 votes |
@Override public Canvas createEditCanvas() { controller.clearSelectionData(); Layout layout = new VLayout(); layout.setStyleName("n52_sensorweb_client_create_abo_template_overundershootcondition"); layout.addMember(alignVerticalCenter(createEntryConditionEditCanvas())); layout.addMember(alignVerticalCenter(createExitConditionEditCanvas())); return layout; }
Example #28
Source File: UsersView.java From proarc with GNU General Public License v3.0 | 5 votes |
public UsersView(ClientMessages i18n) { this.i18n = i18n; ToolStrip toolbar = createToolbar(i18n); userGrid = createUserList(toolbar); VLayout main = new VLayout(); main.setWidth100(); main.setHeight100(); main.addMember(userGrid); this.widget = main; }
Example #29
Source File: UploadFile.java From proarc with GNU General Public License v3.0 | 5 votes |
public void showWindow(DigitalObject dobj, BooleanCallback callback) { this.dobj = dobj; this.windowCallback = callback; form.setAutoHeight(); window = new Window(); window.setAutoSize(true); window.setAutoCenter(true); window.setIsModal(true); window.setTitle(i18n.DigitalObjectEditor_MediaEditor_Uploader_Title()); window.setShowMinimizeButton(false); window.setShowModalMask(true); window.addCloseClickHandler(new CloseClickHandler() { @Override public void onCloseClick(CloseClickEvent event) { closeWindow(); } }); VLayout winContent = new VLayout(4); winContent.setWidth(400); winContent.setPadding(5); winContent.addMember(createBrowseCanvas()); winContent.addMember(form); winContent.addMember(createProgressBar()); winContent.addMember(createButtons()); window.addItem(winContent); window.show(); }
Example #30
Source File: UploadFile.java From proarc with GNU General Public License v3.0 | 5 votes |
private Canvas createProgressBar() { progressbar.setVertical(false); progressbar.setWidth100(); progressbar.setHeight(24); progressbar.setBreadth(1); VLayout vLayout = new VLayout(); vLayout.addMember(progressbar); return vLayout; }