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

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

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

Label.setVisible介绍

暂无

代码示例

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

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

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

private void hideLabels() {
  for (Label child : tbPatient.getChildren(Label.class)) {
    if (child != lblName) {
      child.setVisible(false);
    }
  }
}

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

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

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

/**
 * Displays the specified message. The list box is hidden if the message is not empty.
 *
 * @param message Message to display.
 */
private void showMessage(String message) {
  message = message == null ? null : StrUtil.getLabel(message);
  lblNoResultsFound.setLabel(message);
  lblNoResultsFound.setVisible(!StringUtils.isEmpty(message));
  tblSrchResults.setVisible(!lblNoResultsFound.isVisible());
}

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

/**
 * Perform a search.
 */
@EventHandler(value = "click", target = "btnSearch")
private void onClick$btnSearch() {
  txtSearch.setFocus(true);
  lblNotFound.setVisible(false);
  String text = txtSearch.getValue();
  tree.setSelectedNode(null);
  if (text != null && !text.isEmpty()) {
    text = text.toLowerCase();
    iterator = iterator == null ? tree.iterator() : iterator;
    while (iterator.hasNext()) {
      Treenode node = iterator.next();
      if (node.getLabel().toLowerCase().contains(text)) {
        node.makeVisible();
        node.setSelected(true);
        return;
      }
    }
    iterator = null;
    lblNotFound.setVisible(true);
  }
}

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

/**
 * Resets the viewer to its baseline state. All registered help sets are removed, the history is
 * cleared, and all views are hidden.
 */
private void reset() {
  tvNavigator.setVisible(false);
  lblLoading.setVisible(true);
  helpSets.clear();
  history.clear();
  
  for (Tab tab : tvNavigator.getChildren(Tab.class)) {
    tab.setVisible(false);
  }
}

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

/**
 * @see org.carewebframework.help.IHelpViewer#load(java.lang.Iterable)
 */
@Override
public void load(Iterable<IHelpSet> helpSets) {
  reset();
  
  if (helpSets != null) {
    for (IHelpSet helpSet : helpSets) {
      mergeHelpSet(helpSet);
    }
  }
  
  lblLoading.setVisible(false);
  tvNavigator.setVisible(true);
  selectView(views.get(0));
  onTopicSelected(null);
}

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

protected void status(String message) {
  if (message != null) {
    grid.setVisible(false);
    status.setLabel(StrUtil.piece(message, "^"));
    status.setHint(StrUtil.piece(message, "^", 2, 999));
    status.setVisible(true);
  } else {
    status.setVisible(false);
    status.setLabel(null);
    status.setHint(null);
    grid.setVisible(true);
  }
}

代码示例来源:origin: org.hspconsortium.carewebframework/cwf-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.setLabel(show ? message : "");
    lblMessage.toggleClass("alert-danger", "alert-warning", isError);
  }
  
  if (hideOnShowMessage != null) {
    hideOnShowMessage.setVisible(!show);
  }
}

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

/**
 * @see org.carewebframework.help.IHelpViewer#show()
 */
@Override
public void show() {
  lblLoading.setVisible(false);
  tvNavigator.setVisible(true);
  
  if (mode == HelpViewerMode.EMBEDDED) {
    root.setHeight(lastHeight + "px");
    root.setWidth(lastWidth + "px");
    root.setSize(Size.NORMAL);
    root.popup(null);
  } else {
    ClientUtil.invoke("window.focus");
  }
}

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

@Override
public void afterInitialized(BaseComponent comp) {
  super.afterInitialized(comp);
  noSelection = lblName.getLabel();
  IUser user = SecurityUtil.getAuthenticatedUser();
  lblUser.setVisible(showUser);
  if (user == null) {
    setLabel(lblUser, "Unknown User", null);
  } else {
    setLabel(lblUser, user.getFullName() + " @ " + user.getSecurityDomain().getName(), null);
  }
  setPatient(PatientContext.getActivePatient());
  PatientContext.getPatientContext().addListener(patientChangeListener);
}

相关文章