private void setEmpty(boolean state) { empty.setVisible(state); }
public void setWarning(String warning) { if (warning == null || "".equals(warning)) { warnings.setVisible(false); warnings.setContents(""); } else { warnings.setVisible(true); warnings.setContents(warning); } }
private void clearNonFormValidation() { urlWarningLabel.clear(); urlWarningLabel.setVisible(false); }
public void execute(String result) { reset(); warnings.setVisible(true); warnings.setContents("<b><i>" + result + "</i></b>"); loading = false; fireChangedEvent(); } });
private void updateState() { boolean hasSelection = (mapWidget.getMapModel().getNrSelectedFeatures() > 0); mainLayout.setVisible(hasSelection); noSelection.setVisible(!hasSelection); } }
public void execute(String result) { grid.setShowEmptyMessage(false); reset(); warnings.setVisible(true); warnings.setContents("<b><i>" + result + "</i></b>"); } });
public void reset() { grid.deselectAllRecords(); grid.setData(new Record[]{}); warnings.setVisible(false); warnings.setContents(""); }
public void execute(String result) { grid.setShowEmptyMessage(false); reset(); warnings.setVisible(true); warnings.setContents("<b><i>" + result + "</i></b>"); } });
@Override public void reset() { grid.deselectAllRecords(); grid.setData(new Record[] {}); warnings.setVisible(false); warnings.setContents(""); }
@Override public void reset() { grid.deselectAllRecords(); grid.setData(new Record[] {}); warnings.setVisible(false); warnings.setContents(""); }
/** * Checks whether {@link ListGridRecord} can be deselected. When deselected, but the record * contains id or label check, the record is selected again and a warning is shown. * * @param lgr */ private void checkSelectionStatusOfRecordForIdAndLabelFields(ListGridRecord lgr) { if (!isRecordSelected(lgr)) { // deselected warnings.setVisible(false); if (lgr.equals(currentIdField)) { warnings.setContents(MESSAGES.layerAttributesGriDeselectIdAttribute()); warnings.setVisible(true); grid.selectRecord(lgr); } else if (lgr.equals(currentLabelField)) { warnings.setContents(MESSAGES.layerAttributesGriDeselectLabelAttribute()); warnings.setVisible(true); grid.selectRecord(lgr); } } }
private Label createSESTabLabelButton() { Label sesTabLabelButton = new Label(i18n.editProfile()); sesTabLabelButton.setStyleName("n52_sensorweb_client_legendbutton"); sesTabLabelButton.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { Legend.this.showProfileWindow(); } }); sesTabLabelButton.setVisible(true); return sesTabLabelButton; }
urlWarningLabel.setVisible(false); urlWarningLabel.setWidth100(); Layout errorLabelLayout = new Layout();
@Override public boolean stepFinished() { clearNonFormValidation(); Map<String, String> data; try { data = getData(); } catch (GetCapabilitiesIllegalArgumentException iae) { urlWarningLabel.setContents(MESSAGES.addLayerGetCapabilitiesUrlError( iae.getCapabilitiesParameter().getUrlKey(), iae.getObligedValue())); urlWarningLabel.setVisible(true); return false; } // search next step DataReceiverWizardStep nextStep = (DataReceiverWizardStep) parent.getStep(getNextStep()); if (nextStep != null) { nextStep.setPreviousStep(currentStep); nextStep.setData(data); return true; } Notify.error(cannotFindNextStepErrorMessage()); return false; }
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); }
warnings.setPadding(3); warnings.setOverflow(Overflow.VISIBLE); warnings.setVisible(false); warnings.setBackgroundColor("#FFCCCC");
warnings.setPadding(3); warnings.setOverflow(Overflow.VISIBLE); warnings.setVisible(false); warnings.setBackgroundColor("#FFCCCC");
warnings.setPadding(3); warnings.setOverflow(Overflow.VISIBLE); warnings.setVisible(false); warnings.setBackgroundColor("#FFCCCC");