public void addMessage(String msg) { Date d = new Date(); String timeStamp = DateTimeFormat.getFormat("dd.MM.yyyy HH:mm").format(d); Label l = new Label(timeStamp + " " + msg); l.setCanSelectText(true); l.setStyleName("n52_sensorweb_client_toasterMsg"); l.setAutoHeight(); this.messages.add(l); for (int i = 0; i < this.messages.size(); i++) { if (this.layout.hasMember(this.messages.get(i))) { this.layout.removeMember(this.messages.get(i)); } } for (int i = this.messages.size() - 1; i >= 0; i--) { this.layout.addMember(this.messages.get(i)); } // 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); animateToaster(); }
public void addErrorMessage(String error) { Date d = new Date(); String timeStamp = DateTimeFormat.getFormat("dd.MM.yyyy HH:mm").format(d); Label l = new Label(timeStamp + " " + error); l.setCanSelectText(true); l.setStyleName("n52_sensorweb_client_toasterErrorMsg"); l.setAutoHeight(); for (int i = 0; i < this.messages.size(); i++) { this.layout.removeMember(this.messages.get(i)); } this.messages.add(l); for (int i = this.messages.size() - 1; i >= 0; i--) { this.layout.addMember(this.messages.get(i)); } 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); animateToaster(); }
private Canvas createLegendInfo() { this.legendInfo = new VLayout(); this.legendInfo.setTabIndex(-1); // this.offeringLabel = new Label(); // this.procedureLabel = new Label(); this.phenonmenonLabel = new Label(); this.stationLabel = new Label(); this.firstValueInterval = new Label(); this.lastValueInterval = new Label(); this.phenonmenonLabel.setStyleName("n52_sensorweb_client_legendInfoRow"); this.stationLabel.setStyleName("n52_sensorweb_client_legendInfoRow"); // this.offeringLabel.setHeight(15); // this.procedureLabel.setHeight(15); this.phenonmenonLabel.setAutoHeight(); this.stationLabel.setAutoHeight(); // this.legendInfo.addMember(this.offeringLabel); // this.legendInfo.addMember(this.procedureLabel); this.legendInfo.addMember(this.phenonmenonLabel); this.legendInfo.addMember(this.stationLabel); this.legendInfo.addMember(createValueIntervalLabel()); return this.legendInfo; }
public InteractionWindow(Layout content) { this.setContent(content); title = new Label(); title.setWidth100(); title.setAutoHeight(); title.setStyleName("n52_sensorweb_client_interactionmenuHeader"); title.setWrap(false); title.hide(); addMember(title); addMember(content); setStyleName("n52_sensorweb_client_interactionmenu"); }
private Canvas createSelectionMenuButton() { showSelectionMenuButton = new Label(i18n.chooseDataSource()); showSelectionMenuButton.setStyleName("n52_sensorweb_client_legendbuttonPrimary"); showSelectionMenuButton.setZIndex(1000000); showSelectionMenuButton.setAutoHeight(); showSelectionMenuButton.setAutoWidth(); showSelectionMenuButton.setWrap(false); showSelectionMenuButton.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { if (selectionMenu.isVisible()) { selectionMenu.animateHide(AnimationEffect.SLIDE); } else { selectionMenu.animateShow(AnimationEffect.SLIDE); } } }); setSelectionMenuButtonPosition(); return showSelectionMenuButton; }
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; }
role.getValue().getSurname() + ". " + MESSAGES.rolesWindowPleaseSpecifyRole()); label.setAutoHeight(); layout.addMember(label);
public WmsPreviewLayerStep(Wizard parent) { super(NewLayerModelWizardWindow.STEP_WMS_PREVIEW_LAYER, MESSAGES.wmsPreviewLayerStepNumbering() + " " + MESSAGES.wmsPreviewLayerStepTitle(), false, parent); setWindowTitle(MESSAGES.wmsPreviewLayerStepTitle()); img = new Img(); img.setWidth(300); img.setHeight(200); img.setImageType(ImageStyle.CENTER); img.setLayoutAlign(VerticalAlignment.CENTER); addMember(img); warnings = new Label(); warnings.setWidth100(); warnings.setAutoHeight(); warnings.setPadding(3); warnings.setOverflow(Overflow.VISIBLE); warnings.setVisible(false); warnings.setBackgroundColor("#FFCCCC"); addMember(warnings); }
+ this.getTimeSeries().getProperties() .getRefValue(value).getValue()); label.setAutoHeight(); label.setWidth100(); label.setMargin(5);
l.setPadding(10); l.setWidth100(); l.setAutoHeight(); root.addMember(l); root.addMember(maxBoundsForm);
tooltip = new VLayout(5); info = new Label(getInfoText()); info.setAutoHeight(); info.setWidth100(); info.setAlign(Alignment.CENTER);
warnings.setAutoHeight(); warnings.setPadding(3); warnings.setOverflow(Overflow.VISIBLE);
warnings.setAutoHeight(); warnings.setPadding(3); warnings.setOverflow(Overflow.VISIBLE);
warnings.setAutoHeight(); warnings.setPadding(3); warnings.setOverflow(Overflow.VISIBLE);