@Override public void execute(Boolean value) { JcrExplorer.loginWindow.show(); return; } }
@Override public void onClick(ClickEvent event) { LegendEntryTimeSeries.this.styleChanger.show(); } });
/** * Shows window that ask to upload a file. The callback will be called with the token of the file. * * @param callback returns token of file when the file has been uploaded. */ public void showWindowAndUploadFile(final Callback<String, ExceptionDto> callback) { this.callback = callback; window.show(); }
public void onClick(ClickEvent event) { if (informationWindow == null) { createInformationWindow(); } informationWindow.show(); } });
public void showPossibleIconsWindow() { possibleIconsWindow.show(); }
public void onClick(ClickEvent event) { Window w = new ChooseBlueprintWindow(new DataCallback<String>() { public void execute(String result) { if (result != null && !"".equals(result)) { //TODO: i18n ManagerCommandService.createNewGeodesk(result, "[New Geodesk]"); } } }); w.show(); } });
public void onClick(ClickEvent event) { DataControlsTimeSeries.this.expertsWindow.centerInPage(); DataControlsTimeSeries.this.expertsWindow.show(); } });
public void onClick(ClickEvent event) { Window w = new NewLayerModelWizardWindow(new DataCallback<DynamicLayerConfiguration>() { public void execute(DynamicLayerConfiguration result) { if (result != null && !"".equals(result)) { Notify.info(MESSAGES.datalayersNewLayerIsBeingSaved()); ManagerCommandService.createNewLayerModel(result); } } }); w.show(); } });
public void onClick(ClickEvent event) { Window w = new ChooseUserAppNameWindow(new DataCallback<HashMap<String, Object>>() { public void execute(HashMap<String, Object> result) { if (result != null && result.containsKey("userApplication") && result.containsKey("public") && result.containsKey("name")) { //TODO: i18n ManagerCommandService.createNewBlueprint(result.get("userApplication").toString(), (Boolean) result.get("public"), result.get("name").toString()); } } }); w.show(); } });
private void showWindow() { if (window == null) { window = createWindow(); if (isModalSearch()) { window.setIsModal(true); window.setShowModalMask(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(); }
@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 onClick(ClickEvent event) { Window window = new Window(); window.setTitle(MESSAGES.geodeskLabel() + ": " + rollOverRecord.getAttribute(FLD_NAME)); window.setAutoCenter(true); window.setWidth("90%"); window.setHeight("90%"); window.setSrc(GeodeskUrlUtil.createPreviewUrl(rollOverRecord.getAttribute(FLD_GEODESKID))); window.setContentsType("page"); window.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; }
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 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; }
/** * 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(); } }
public void show() { form.clearValues(); publicLayer.setValue(layer.getLayerModel().isPublic()); ClientLayerInfo cli = layer.getClientLayerInfo(); if (cli == null) { // If layerInfo not set (yet), copy from model. cli = layer.getReferencedLayerInfo(); } label.setValue(cli.getLabel()); defaultVisible.setValue(cli.isVisible()); minScale.setValue(SensibleScaleConverter.scaleToString(cli.getMinimumScale())); maxScale.setValue(SensibleScaleConverter.scaleToString(cli.getMaximumScale())); clearWidgetTabs(); loadWidgetTabs(layer); super.show(); }
addMixinTypeForm.setItems(mixinNodeType, addMixinTypeSubmitItem); addMixinTypeWindow.addItem(addMixinTypeForm); addMixinTypeWindow.show(); mixinNodeType.focusInItem(); return addMixinTypeWindow;
window.centerInPage(); window.setAutoSize(true); window.show(); window.setKeepInParentRect(true);