org.zkoss.zul.Label.setVisible()方法的使用及代码示例

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

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

Label.setVisible介绍

暂无

代码示例

代码示例来源:origin: org.hspconsortium.carewebframework/cwf-ui-patientheader

public void setShowUser(boolean showUser) {
    this.showUser = showUser;
    
    if (lblUser != null) {
      lblUser.setVisible(showUser);
    }
  }
}

代码示例来源:origin: org.carewebframework/org.carewebframework.vista.security.impl

/**
 * Displays the specified message text on the form.
 *
 * @param text Message text to display.
 */
private void showMessage(final String text) {
  lblMessage.setValue(text);
  lblMessage.setVisible(!StringUtils.isEmpty(text));
}

代码示例来源:origin: org.carewebframework/org.carewebframework.security.spring.core

/**
 * Disable all user input elements.
 *
 * @param text Status text to display.
 */
private void showStatus(String text) {
  lblStatus.setValue(text);
  loginPrompts.setVisible(false);
  lblStatus.setVisible(true);
}

代码示例来源:origin: org.carewebframework/org.carewebframework.vista.security.impl

/**
 * Disable all user input elements.
 *
 * @param text State text to display.
 */
private void showState(final String text) {
  lblState.setValue(text);
  loginPrompts.setVisible(false);
  lblState.setVisible(true);
}

代码示例来源:origin: org.hspconsortium.carewebframework/cwf-ui-patientheader

private void setLabel(Label label, String value, Component associatedComponent) {
  label.setValue(value);
  label.setVisible(value != null && !value.isEmpty());
  
  if (associatedComponent != null) {
    associatedComponent.setVisible(label.isVisible());
  }
}

代码示例来源:origin: org.carewebframework/org.carewebframework.vista.ui.documents

/**
 * Sets the fixed filter.
 *
 * @param name The fixed filter.
 */
public void setFixedFilter(String name) {
  fixedFilter = findCategory(name);
  cboFilter.setVisible(fixedFilter == null);
  lblFilter.setVisible(fixedFilter != null);
  lblFilter.setValue(fixedFilter == null ? null : fixedFilter.getName());
  refresh();
}

代码示例来源:origin: org.carewebframework/org.carewebframework.vista.security.impl

/**
 * Sets the message text to the specified value. If the text starts with an html tag, it will be
 * rendered as such.
 *
 * @param value The message text.
 * @param plainText Component to display plain text.
 * @param htmlText Component to display html.
 */
private void setMessageText(String value, Label plainText, Html htmlText) {
  value = StringUtils.trimToEmpty(value);
  final boolean isHtml = StringUtils.startsWithIgnoreCase(value, "<html>");
  final boolean notEmpty = !value.isEmpty();
  plainText.setVisible(notEmpty && !isHtml);
  htmlText.setVisible(notEmpty && isHtml);
  
  if (isHtml) {
    htmlText.setContent(value);
  } else {
    plainText.setValue(value);
  }
}

代码示例来源:origin: org.carewebframework/org.carewebframework.security.spring.core

/**
 * Sets the message text to the specified value. If the text starts with an html tag, it will be
 * rendered as such.
 *
 * @param value The message text.
 * @param plainText Component to display plain text.
 * @param htmlText Component to display html.
 * @param parent If not null, parent will be hidden if text is empty.
 */
private void setMessageText(String value, Label plainText, Html htmlText, Component parent) {
  value = StringUtils.trimToEmpty(value);
  boolean isHtml = StringUtils.startsWithIgnoreCase(value, "<html>");
  boolean notEmpty = !value.isEmpty();
  plainText.setVisible(notEmpty && !isHtml);
  htmlText.setVisible(notEmpty && isHtml);
  
  if (parent != null) {
    parent.setVisible(notEmpty);
  }
  
  if (isHtml) {
    htmlText.setContent(value);
  } else {
    plainText.setValue(value);
  }
}

代码示例来源:origin: org.carewebframework/org.carewebframework.cal.ui.reporting

/**
 * Displays a message to client.
 *
 * @param message Message to display to client. If null, message label is hidden.
 * @param isError If true, highlight the message to indicate an error.
 */
public void showMessage(String message, boolean isError) {
  showBusy(null);
  message = StrUtil.formatMessage(message);
  boolean show = message != null;
  
  if (lblMessage != null) {
    lblMessage.setVisible(show);
    lblMessage.setValue(show ? message : "");
    ZKUtil.toggleSclass(lblMessage, "alert-danger", "alert-warning", isError);
  }
  
  if (hideOnShowMessage != null) {
    hideOnShowMessage.setVisible(!show);
  }
}

代码示例来源:origin: org.hspconsortium.carewebframework/cwf-ui-patientheader

@Override
public void doAfterCompose(Component comp) throws Exception {
  super.doAfterCompose(comp);
  noSelection = lblName.getValue();
  IUser user = SecurityUtil.getAuthenticatedUser();
  setLabel(lblUser, user.getFullName() + " @ " + user.getSecurityDomain().getName(), null);
  lblUser.setVisible(showUser);
  this.getEventManager().subscribe(PATIENT_CHANGE_EVENT, patientChangeListener);
  setPatient(PatientContext.getActivePatient());
}

代码示例来源:origin: org.carewebframework/org.carewebframework.cal.ui.patientselection.v1

btnFavorite.setDisabled(list == this.favorites);
boolean hasDateRange = (list != null && list.isDateRangeRequired());
lblDateRange.setVisible(hasDateRange);
drpDateRange.setVisible(hasDateRange);

代码示例来源:origin: org.carewebframework/org.carewebframework.cal.ui.patientselection.v1

lblManagedList.setVisible(itemManager != null);
lstManagedList.setModel((ListModelList<?>) null);

相关文章