@Override public void onClick(ClickEvent event) { PrintPreferencesCanvas canvas = new PrintPreferencesCanvas(mapWidget); canvas.setMargin(WidgetLayout.marginSmall); Window window = new KeepInScreenWindow(); window.setTitle(MESSAGES.printPrefsTitle()); window.addItem(canvas); window.centerInPage(); window.setAutoSize(true); window.show(); }
/** {@inheritDoc} */ public void onClick(ClickEvent event) { PrintPreferencesCanvas canvas = new PrintPreferencesCanvas(mapWidget); canvas.setMargin(WidgetLayout.marginSmall); Window window = new KeepInScreenWindow(); window.setTitle(MESSAGES.printPrefsTitle()); window.addItem(canvas); window.centerInPage(); window.setAutoSize(true); window.show(); }
public Window createFeatureDetailWindow(Feature feature, boolean editingAllowed) { Window w = new Window(); w.setAutoSize(true); w.setTitle(I18nProvider.getAttribute().getAttributeWindowTitle(feature.getLabel())); w.setCanDragReposition(true); w.setCanDragResize(true); w.addItem(new CustomCountriesFeatureInfoCanvas(feature)); return w; }
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(); } }); } }
public Window createFeatureDetailWindow(Feature feature, boolean editingAllowed) { String url = buildUrl(feature); if (url == null) { if (showDefaultIfNull) { return FeatureDetailWidgetFactory.createDefaultFeatureDetailWindow(feature, feature.getLayer(), editingAllowed); } else { Label l = new Label(MESSAGES.urlFeatureDetailWidgetBuilderNoValue()); l.setWidth100(); l.setHeight100(); l.setValign(VerticalAlignment.CENTER); l.setAlign(Alignment.CENTER); Window w = createWindow(feature.getLabel()); w.addItem(l); return w; } } else { HTMLPane htmlPane = new HTMLPane(); htmlPane.setWidth100(); htmlPane.setHeight100(); htmlPane.setContentsURL(url); htmlPane.setContentsType(ContentsType.PAGE); Window w = createWindow(feature.getLabel()); w.addItem(htmlPane); return w; } }
private void createInformationWindow() { informationWindow = new Window(); informationWindow.setTitle(LegendEntryTimeSeries.this.getTimeSeries().getTimeSeriesLabel()); informationWindow.setWidth(450); informationWindow.setHeight(500); informationWindow.setShowMinimizeButton(false); informationWindow.centerInPage(); HTMLPane htmlPane = new HTMLPane(); htmlPane.setContentsURL(LegendEntryTimeSeries.this .getTimeSeries().getMetadataUrl()); htmlPane.setContentsType(ContentsType.PAGE); informationWindow.addItem(htmlPane); }
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(); } });
private Window createRemoteWindow(String title, String url) { Window remoteWindow = new Window(); HTMLPane htmlPane = new HTMLPane(); htmlPane.setContentsURL(url); htmlPane.setContentsType(ContentsType.PAGE); remoteWindow.addItem(htmlPane); remoteWindow.setTitle(title); remoteWindow.setShowMaximizeButton(true); remoteWindow.setCanDragReposition(true); remoteWindow.setCanDragResize(true); remoteWindow.setHeight("40%"); remoteWindow.setWidth("40%"); remoteWindow.setAutoCenter(true); remoteWindow.setShowResizeBar(true); remoteWindow.setDefaultResizeBars(LayoutResizeBarPolicy.MARKED); remoteWindow.show(); return remoteWindow; }
private Window createBinaryImgWindow(String title, String path, String mimeType) { Window binaryWindow = new Window(); Img img = new Img(BINARY_SERVLET_PATH + path); img.setImageType(ImageStyle.STRETCH); img.setHeight100(); img.setWidth100(); binaryWindow.addItem(img); binaryWindow.setTitle(title); binaryWindow.setShowMaximizeButton(true); binaryWindow.setCanDragReposition(true); binaryWindow.setCanDragResize(true); binaryWindow.setHeight("40%"); binaryWindow.setWidth("40%"); binaryWindow.setAutoCenter(true); binaryWindow.setShowResizeBar(true); //binaryWindow.setDefaultResizeBars(LayoutResizeBarPolicy.MARKED); binaryWindow.show(); return binaryWindow; }
public void onSelectAlternative(SelectAlternativeEvent event) { if (null == altWindow) { altGrid = new GeocoderAlternativesGrid(geocoderWidget, event.getAlternatives()); altWindow = new Window(); altWindow.setAutoSize(true); altWindow.setTitle(messages.alternativeSelectTitle()); altWindow.setAutoSize(true); altWindow.setLeft(20); altWindow.setTop(20); altWindow.setCanDragReposition(true); altWindow.setCanDragResize(true); altWindow.addItem(altGrid); altWindow.addCloseClickHandler(new CloseClickHandler() { public void onCloseClick(CloseClickEvent closeClickEvent) { removeAltWindow(); } }); map.addChild(altWindow); } else { altGrid.update(event.getAlternatives()); } } // @extract-end
/** * Show the window. */ public void show() { final Window winModal = new Window(); winModal.setWidth(500); winModal.setHeight(300); winModal.setTitle(MESSAGES.rolesWindowUnauthorizedWindowTitle()); winModal.setShowMinimizeButton(false); winModal.setIsModal(true); winModal.setShowModalMask(true); winModal.centerInPage(); winModal.setShowCloseButton(false); winModal.setZIndex(GdmLayout.roleSelectZindex); HTMLPane pane = new HTMLPane(); pane.setContents("<br/><br/><center>" + MESSAGES.rolesWindowInsufficientRightsForDesk() + "</center>"); winModal.addItem(pane); winModal.show(); } }
winModal.addItem(layout); winModal.show(); } else {
private void createWindow() { window = new Window(); window.setWidth(500); window.setHeight(300); window.setShowMinimizeButton(false); window.setIsModal(true); window.setShowModalMask(true); window.centerInPage(); window.setShowCloseButton(true); window.setZIndex(2000); VLayout layout = new VLayout(); layout.setLayoutMargin(25); layout.setMembersMargin(10); fileUploadForm = new GenericUploadForm(); button = new IButton(); layout.setLayoutMargin(25); layout.addMember(fileUploadForm); layout.addMember(button); window.addItem(layout); }
addMixinTypeForm.addSubmitValuesHandler(new AddNodeSubmitValuesHandler(jackrabbitExplorer)); addMixinTypeForm.setItems(mixinNodeType, addMixinTypeSubmitItem); addMixinTypeWindow.addItem(addMixinTypeForm); addMixinTypeWindow.show(); mixinNodeType.focusInItem();
lay.addMember(panel); lay.setAutoHeight(); window.addItem(lay); window.centerInPage(); window.setAutoSize(true);
w.setHeight(100); w.setWidth(300); w.addItem(layout); w.setShowMinimizeButton(false); w.setShowCloseButton(false);
verticalStack.addMember(horizontalStack); changeNodeTypeWindow.addItem(verticalStack); return changeNodeTypeWindow;
mainLayout.addMember(form); mainLayout.addMember(buttonLayout); addWindow.addItem(mainLayout); addWindow.show();
window.addItem(form); window.draw();