com.smartgwt.client.widgets.Label.setVisible()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(5.6k)|赞(0)|评价(0)|浏览(157)

本文整理了Java中com.smartgwt.client.widgets.Label.setVisible()方法的一些代码示例,展示了Label.setVisible()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Label.setVisible()方法的具体详情如下:
包路径:com.smartgwt.client.widgets.Label
类名称:Label
方法名:setVisible

Label.setVisible介绍

暂无

代码示例

代码示例来源:origin: org.geomajas.widget/geomajas-widget-searchandfilter-gwt

private void setEmpty(boolean state) {
  empty.setVisible(state);
}

代码示例来源:origin: org.geomajas/geomajas-project-deskmanager-gwt

public void setWarning(String warning) {
  if (warning == null || "".equals(warning)) {
    warnings.setVisible(false);
    warnings.setContents("");
  } else {
    warnings.setVisible(true);
    warnings.setContents(warning);
  }
}

代码示例来源:origin: org.geomajas/geomajas-project-deskmanager-gwt

private void clearNonFormValidation() {
  urlWarningLabel.clear();
  urlWarningLabel.setVisible(false);
}

代码示例来源:origin: org.geomajas/geomajas-project-deskmanager-gwt

public void execute(String result) {
    reset();
    warnings.setVisible(true);
    warnings.setContents("<b><i>" + result + "</i></b>");
    loading = false;
    fireChangedEvent();
  }
});

代码示例来源:origin: org.geomajas.widget/geomajas-widget-searchandfilter-gwt

private void updateState() {
    boolean hasSelection = (mapWidget.getMapModel().getNrSelectedFeatures() > 0);
    mainLayout.setVisible(hasSelection);
    noSelection.setVisible(!hasSelection);
  }
}

代码示例来源:origin: org.geomajas/geomajas-project-deskmanager-gwt

public void execute(String result) {
    grid.setShowEmptyMessage(false);
    reset();
    warnings.setVisible(true);
    warnings.setContents("<b><i>" + result + "</i></b>");
  }
});

代码示例来源:origin: org.geomajas/geomajas-project-deskmanager-gwt

public void reset() {
  grid.deselectAllRecords();
  grid.setData(new Record[]{});
  warnings.setVisible(false);
  warnings.setContents("");
}

代码示例来源:origin: org.geomajas/geomajas-project-deskmanager-gwt

public void execute(String result) {
    grid.setShowEmptyMessage(false);
    reset();
    warnings.setVisible(true);
    warnings.setContents("<b><i>" + result + "</i></b>");
  }
});

代码示例来源:origin: org.geomajas/geomajas-project-deskmanager-gwt

@Override
public void reset() {
  grid.deselectAllRecords();
  grid.setData(new Record[] {});
  warnings.setVisible(false);
  warnings.setContents("");
}

代码示例来源:origin: org.geomajas/geomajas-project-deskmanager-gwt

@Override
public void reset() {
  grid.deselectAllRecords();
  grid.setData(new Record[] {});
  warnings.setVisible(false);
  warnings.setContents("");
}

代码示例来源:origin: org.geomajas/geomajas-project-deskmanager-gwt

/**
 * 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);
    }
  }
}

代码示例来源:origin: org.n52.sensorweb/sensorwebclient-ui

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;
}

代码示例来源:origin: org.geomajas/geomajas-project-deskmanager-gwt

urlWarningLabel.setVisible(false);
urlWarningLabel.setWidth100();
Layout errorLabelLayout = new Layout();

代码示例来源:origin: org.geomajas/geomajas-project-deskmanager-gwt

@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;
}

代码示例来源:origin: org.geomajas/geomajas-project-deskmanager-gwt

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);
}

代码示例来源:origin: org.geomajas/geomajas-project-deskmanager-gwt

warnings.setPadding(3);
warnings.setOverflow(Overflow.VISIBLE);
warnings.setVisible(false);
warnings.setBackgroundColor("#FFCCCC");

代码示例来源:origin: org.geomajas/geomajas-project-deskmanager-gwt

warnings.setPadding(3);
warnings.setOverflow(Overflow.VISIBLE);
warnings.setVisible(false);
warnings.setBackgroundColor("#FFCCCC");

代码示例来源:origin: org.geomajas/geomajas-project-deskmanager-gwt

warnings.setPadding(3);
warnings.setOverflow(Overflow.VISIBLE);
warnings.setVisible(false);
warnings.setBackgroundColor("#FFCCCC");

相关文章