public void onSuccess() { window.animateRect(originalLeft, originalTop, originalWidth, null); window.setCanDragReposition(originalDragRepo); }
public void onMinimizeClick(MinimizeClickEvent event) { originalWidth = window.getWidth(); originalLeft = window.getLeft(); originalTop = window.getTop(); originalDragRepo = window.getCanDragReposition(); window.setCanDragReposition(false); // doens't work !? window.setAutoCenter(false); docked = true; GWT.runAsync(new RunAsyncCallback() { public void onSuccess() { window.animateRect(currentPosition, Document.get().getBody().getClientHeight() - minimizedHeight, minimizedWidth, null, new AnimationCallback() { public void execute(boolean earlyFinish) { currentPosition += window.getWidth(); // not // necessarily // equal // to // minimizedWidth. } }); } public void onFailure(Throwable reason) { } }); }
private Window createWindow(String subtitle) { Window w = new Window(); w.setWidth(windowWidth); w.setHeight(windowHeight); w.setTitle(I18nProvider.getAttribute().getAttributeWindowTitle(subtitle)); w.setCanDragReposition(true); w.setCanDragResize(true); w.setAutoCenter(true); w.setKeepInParentRect(true); return w; }
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 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
addMixinTypeWindow.setCanDragReposition(true); addMixinTypeWindow.setCanDragResize(true); addMixinTypeWindow.setHeight(120);
changeNodeTypeWindow.setShowModalMask(true); changeNodeTypeWindow.setTitle("Change Node Type Icon"); changeNodeTypeWindow.setCanDragReposition(true); changeNodeTypeWindow.setCanDragResize(false); changeNodeTypeWindow.setAutoCenter(true);
addNewNodeWindow.setCanDragReposition(true); addNewNodeWindow.setCanDragResize(true); addNewNodeWindow.setHeight(200);
window.setAutoSize(true); window.setTitle(i18n.createNewUser()); window.setCanDragReposition(true); window.setCanDragResize(true); window.centerInPage();
window.setAutoSize(true); window.setTitle(i18n.editUserData()); window.setCanDragReposition(true); window.setCanDragResize(true); window.centerInPage();
editPropertyWindow.setTitle("Edit Property"); editPropertyWindow.setCanDragReposition(true); editPropertyWindow.setCanDragResize(true); editPropertyWindow.setHeight(600);