private void renderIframeAttribute(Attribute feature) { HTMLPane htmlPane = new HTMLPane(); htmlPane.setWidth100(); htmlPane.setHeight100(); htmlPane.setContentsURL(feature.toString()); htmlPane.setContentsType(ContentsType.PAGE); addMember(htmlPane); }
private void renderTextAttribute(Attribute feature) { HTMLPane pane = new HTMLPane(); pane.setContentsType(ContentsType.FRAGMENT); pane.setContents("<pre>" + feature.getValue().toString() + "</pre>"); addMember(pane); }
private Canvas createContextWindowHelp() { HTMLPane htmlPane = new HTMLPane(); htmlPane.setContentsURL(i18n.helpPath()); htmlPane.setStyleName("n52_sensorweb_client_create_abo_context_help"); htmlPane.setHeight(1050); return htmlPane; }
/** * Set the url of the IFrame. * * @param url the IFrame url */ public void setIFrameURL(String url) { setContentsURL(url); if(!isDrawn()) { setContentsType(ContentsType.PAGE); } else { assert getContentsType() == ContentsType.PAGE : "This method cannot be called on a HTMLPane that has a contentsType other than PAGE"; } }
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); }
layout.addMember(label); HTMLPane img = new HTMLPane(); img.setLayoutAlign(Alignment.CENTER); img.setAlign(Alignment.CENTER); img.setWidth(20); img.setHeight(20); img.setOverflow(Overflow.HIDDEN); img.setContents("<img src=\"" + Geomajas.getIsomorphicDir() + "/geomajas/ajax-loader.gif\" width=\"18\" height=\"18\" />"); layout.addMember(img);
headerLayout.setHeight(26); headerLayout.setStyleName(STYLE_HEADER_BAR); HTMLPane attrHeader = new HTMLPane(); attrHeader.setStyleName(STYLE_SEARCH_HEADER); attrHeader.setContents("Attribute"); attrHeader.setWidth(140); HTMLPane operatorHeader = new HTMLPane(); operatorHeader.setContents("Operator"); operatorHeader.setWidth(140); operatorHeader.setStyleName(STYLE_SEARCH_HEADER); HTMLPane valueHeader = new HTMLPane(); valueHeader.setContents("Value"); valueHeader.setStyleName(STYLE_SEARCH_HEADER); valueHeader.setWidth(150); buttonStack.setWidth(70); buttonStack.setAlign(VerticalAlignment.TOP); HTMLPane btnHeader = new HTMLPane(); btnHeader.setStyleName(STYLE_HEADER_BAR); btnHeader.setWidth(70); btnHeader.setHeight(26);
public Impressum() { setTitle(IMPRESSUM_TITLE); setWidth(500); setHeight(500); centerInPage(); setIsModal(true); Layout layout = new VLayout(); HTMLPane htmlContentPane = new HTMLPane(); htmlContentPane.setContentsURL(CONTENT_PATH); layout.addMember(htmlContentPane); addItem(layout); } }
/** * 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 static HTMLPane getOrCreateRef(JavaScriptObject jsObj) { if(jsObj == null) return null; BaseWidget obj = BaseWidget.getRef(jsObj); if(obj != null) { return (HTMLPane) obj; } else { return new HTMLPane(jsObj); } }
public void updateProcedureDetailsURL(String url) { timeseriesInfoHTMLPane.setContentsURL(url); timeseriesInfoHTMLPane.show(); applyCancel.finishLoading(); }
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 Canvas createInformationFieldForSelectedStation() { VLayout layout = new VLayout(); timeseriesInfoHTMLPane = new HTMLPane(); phenomenonBox = new SelectItem(i18n.phenomenonLabel()); phenomenonBox.addChangedHandler(new ChangedHandler() { @Override public void onChanged(ChangedEvent event) { String category = (String) event.getItem().getValue(); controller.loadTimeseriesByCategory(category); } }); DynamicForm form = new DynamicForm(); form.setItems(phenomenonBox); // phenomenonInfoLabel = new Label(); // phenomenonInfoLabel.setAutoHeight(); stationInfoLabel = new Label(); stationInfoLabel.setAutoHeight(); // layout.addMember(phenomenonInfoLabel); layout.addMember(form); layout.addMember(stationInfoLabel); layout.addMember(timeseriesInfoHTMLPane); return layout; }
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; } }