/** {@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(); }
@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(); }
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
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(); } }); } }
window.addItem(lay); window.centerInPage(); window.setAutoSize(true); window.show(); window.setKeepInParentRect(true);
window.setWidth(300); window.setHeight(250); window.setAutoSize(true); window.setTitle(i18n.createNewUser()); window.setCanDragReposition(true);
window.setAutoSize(true); window.setTitle(i18n.editUserData()); window.setCanDragReposition(true);