private Label createCSVLabel() { Label toCSV = new Label(i18n.toCSV()); toCSV.setWrap(false); toCSV.setAutoFit(true); toCSV.setPadding(3); toCSV.setWidth100(); toCSV.setStyleName("n52_sensorweb_client_exportEntry"); toCSV.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { controller.exportTo(ExportType.CSV_ZIP); exportMenu.hide(); } }); return toCSV; }
private Canvas createValueIntervalLabel() { Layout interval = new HLayout(); interval.setAutoWidth(); interval.setStyleName("n52_sensorweb_client_legendInfoRow"); this.firstValueInterval.setAutoWidth(); this.firstValueInterval.setWrap(false); this.firstValueInterval.setStyleName("n52_sensorweb_client_legendlink"); this.lastValueInterval.setAutoWidth(); this.lastValueInterval.setWrap(false); this.lastValueInterval.setStyleName("n52_sensorweb_client_legendlink"); Label separator = new Label(i18n.to()); separator.setAlign(Alignment.CENTER); separator.setWidth(20); interval.addMember(this.firstValueInterval); interval.addMember(separator); interval.addMember(this.lastValueInterval); return interval; }
public void setWarning(String warning) { if (warning == null || "".equals(warning)) { warnings.setVisible(false); warnings.setContents(""); } else { warnings.setVisible(true); warnings.setContents(warning); } }
public Canvas createCategory(String title) { Label cat = new Label(title); cat.setStyleName("themeWidget-selectionPanelTitle"); cat.setWidth100(); cat.setHeight(20); return cat; }
private Label getHeaderLinkLabel(String labelText) { Label label = new Label(labelText); label.setStyleName("n52_sensorweb_client_headerlink"); label.setAutoWidth(); label.setWrap(false); return label; }
private Label getSeparator(){ Label pipe = new Label("|"); pipe.setStyleName("n52_sensorweb_client_pipe"); pipe.setAutoWidth(); return pipe; }
Label titleLabel = new Label(slogan); titleLabel.setWidth(logoWidth); titleLabel.setHeight(24); titleLabel.setLayoutAlign(Alignment.CENTER); titleLabel.setAlign(Alignment.CENTER); layout.addMember(titleLabel); errorLabel = new Label(); errorLabel.setWidth100(); errorLabel.setHeight(14); layout.addMember(errorLabel);
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); }
topBar.addSpacer(6); Label title = new Label("Geomajas, Simple printing GWT example"); title.setStyleName("sgwtTitle"); title.setWidth(400); topBar.addMember(title);
public void drawMainLayout() { mainLayout.setLayoutMargin(15); Label navigationLabel = new Label(); navigationLabel.setAlign(Alignment.CENTER); navigationLabel.setOverflow(Overflow.HIDDEN); navigationLabel.setWidth("40%"); navigationLabel.setShowResizeBar(true); Label topRightLabel = new Label(); topRightLabel.setAlign(Alignment.CENTER); topRightLabel.setOverflow(Overflow.HIDDEN); topRightLabel.setHeight("185"); topRightLabel.setShowResizeBar(true); Label bottonRightLabel = new Label(); bottonRightLabel.setAlign(Alignment.CENTER); bottonRightLabel.setOverflow(Overflow.HIDDEN); bottonRightLabel.setHeight("100%"); navigationLabel.addChild(createNavigation()); topRightLabel.addChild(new Details().createDetails(this)); bottomRightTabSet.setWidth100(); bottomRightTabSet.setHeight100(); bottomRightTabSet.setTabs(createPropertiesTab(), createSearchResultsTab()); bottonRightLabel.addChild(bottomRightTabSet); vLayout.addMember(topRightLabel); vLayout.addMember(bottonRightLabel);
mainLayout.setHeight100(); Label titleBar = new Label(messages.geometricSearchWidgetSelectionSearchTitle()); titleBar.setBackgroundColor("#E0E9FF"); titleBar.setWidth100(); titleBar.setHeight(20); titleBar.setPadding(5); noSelection = new Label(messages.geometricSearchWidgetSelectionSearchNothingSelected()); noSelection.setWidth100(); noSelection.setAlign(Alignment.CENTER); noSelection.setPadding(5); noSelection.setTooltip(messages.geometricSearchWidgetSelectionSearchNothingSelectedTooltip());
private void createLoadingWidget() { loadingLayout = new VLayout(); loadingLayout.setWidth100(); loadingLayout.setHeight100(); loadingLayout.setOpacity(70); loadingLayout.setBackgroundColor("ffffff"); loadingLabel = new Label(); loadingLabel.setTop("30%"); loadingLabel.setAlign(Alignment.CENTER); loadingLayout.addMember(loadingLabel); loadingLayout.hide(); } }
lbl = new Label(label); lbl.setWidth(147); lbl.setHeight(20); lbl.setAlign(Alignment.RIGHT); lbl.setBaseStyle("formTitle"); lbl.setShowDisabled(true); lbl.setDisabled(true); if (tooltip != null) { lbl.setTooltip(tooltip);
private Canvas createAutoScaleButton() { Layout layout = new Layout(); layout.setStyleName("n52_sensorweb_client_scaleButtonLayout"); autoScaleButton = new Label(i18n.resetScale()); autoScaleButton.setStyleName("n52_sensorweb_client_scaleButton"); autoScaleButton.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { EventBus.getMainEventBus().fireEvent(new SwitchAutoscaleEvent(true), new EventCallback() { public void onEventFired() { EventBus.getMainEventBus().fireEvent(new RequestDataEvent()); } }); } }); autoScaleButton.setWidth(80); autoScaleButton.setWrap(false); return autoScaleButton; }
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"); }
if (tooltip == null) { tooltip = new VLayout(5); info = new Label(getInfoText()); info.setAutoHeight(); info.setWidth100(); info.setAlign(Alignment.CENTER); tooltip.setWidth(width); tooltip.setAutoHeight(); info.setContents(getInfoText());
Label day = new Label(i18n.day()); day.setWidth(35); day.setAlign(Alignment.CENTER); day.setPosition(Positioning.ABSOLUTE); day.setStyleName("controlLabel"); Label week = new Label(i18n.week()); week.setWidth(35); week.setAlign(Alignment.CENTER); week.setPosition(Positioning.ABSOLUTE); week.setStyleName("controlLabel"); Label month = new Label(i18n.month()); month.setWidth(35); month.setAlign(Alignment.CENTER); month.setPosition(Positioning.ABSOLUTE); month.setStyleName("controlLabel"); Label year = new Label(i18n.year()); year.setWidth(35); year.setAlign(Alignment.CENTER); year.setPosition(Positioning.ABSOLUTE); year.setStyleName("controlLabel");
public MultiFeatureListGrid(MapWidget map) { super(); this.map = map; tabset = new TabSet(); tabset.setWidth100(); tabset.setHeight100(); tabset.setOverflow(Overflow.HIDDEN); tabset.addCloseClickHandler(new CloseClickHandler() { public void onCloseClick(TabCloseClickEvent event) { setEmpty((tabset.getTabs().length == 1)); } }); this.addChild(tabset); empty = new Label(MESSAGES.multiFeatureListGridNoData()); empty.setWidth100(); empty.setAlign(Alignment.CENTER); empty.setPadding(15); this.addChild(empty); }
layout.setAlign(Alignment.CENTER); layout.setWidth100(); Label label = new Label(messages.searchControllerSearchingMessage()); label.setWidth100(); label.setHeight(30); label.setAlign(Alignment.CENTER); layout.addMember(label);
labeltext.append("<br />" + description); Label desc = new Label(labeltext.toString()); desc.setCursor(Cursor.HAND); desc.setBackgroundColor("transparent"); desc.setWidth100(); desc.setHeight100(); desc.setBackgroundColor("transparent"); desc.setValign(VerticalAlignment.CENTER); addMember(desc); desc.addMouseOverHandler(movh); desc.addMouseOutHandler(mouh);