javax.swing.JTabbedPane.isVisible()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(2.0k)|赞(0)|评价(0)|浏览(105)

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

JTabbedPane.isVisible介绍

暂无

代码示例

代码示例来源:origin: org.icepdf.os/icepdf-viewer

/**
 * If the utility pane is currently visible
 *
 * @return true if pane is visilbe false otherwise.
 */
public boolean isUtilityPaneVisible() {
  return (utilityTabbedPane != null) && utilityTabbedPane.isVisible();
}

代码示例来源:origin: com.eas.platypus/platypus-js-forms

@ScriptFunction(jsDoc = VISIBLE_JSDOC)
@Override
public boolean getVisible() {
  return super.isVisible();
}

代码示例来源:origin: joel-costigliola/assertj-swing

/**
 * Returns the {@code String} representation of the given {@code Component}, which should be a {@code JTabbedPane}.
 *
 * @param c the given {@code Component}.
 * @return the {@code String} representation of the given {@code JTabbedPane}.
 */
@Override
@Nonnull protected String doFormat(@Nonnull Component c) {
 JTabbedPane tabbedPane = (JTabbedPane) c;
 String format = "%s[name=%s, selectedTabIndex=%d, selectedTabTitle=%s, tabCount=%d, tabTitles=%s, enabled=%b, visible=%s, showing=%s";
 return String.format(format, getRealClassName(c), quote(tabbedPane.getName()),
            tabbedPane.getSelectedIndex(), selectedTab(tabbedPane), tabbedPane.getTabCount(),
            Arrays.format(tabTitles(tabbedPane)), tabbedPane.isEnabled(), tabbedPane.isVisible(),
            tabbedPane.isShowing());
}

代码示例来源:origin: org.icepdf.os/icepdf-viewer

/**
 * Make the Search pane visible, and if necessary, the utility pane that encloses it
 *
 * @see #setUtilityPaneVisible(boolean)
 */
public void showSearchPanel() {
  if (utilityTabbedPane != null && searchPanel != null) {
    // make sure the utility pane is visible
    if (!utilityTabbedPane.isVisible()){
      setUtilityPaneVisible(true);
    }
    // if utility pane is shown then select the search tab and request focus
    if (isUtilityPaneVisible()) {
      if (utilityTabbedPane.getSelectedComponent() != searchPanel) {
        // select the search panel
        safelySelectUtilityPanel(searchPanel);
      }
      // request focus
      searchPanel.requestFocus();
    }
  }
}

相关文章

JTabbedPane类方法