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

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

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

JToolBar.isVisible介绍

暂无

代码示例

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

/**
 * Flips the visibility of the toolbar to the opposite of what it was
 *
 * @see #setToolBarVisible(boolean)
 */
public void toggleToolBarVisibility() {
  if (completeToolBar != null)
    setToolBarVisible(!completeToolBar.isVisible());
}

代码示例来源:origin: nz.ac.waikato.cms.weka/weka-stable

@Override
 public void actionPerformed(ActionEvent ae) {
  m_jTbTools.setVisible(!m_jTbTools.isVisible());
 } // actionPerformed
} // class ActionViewToolbar

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

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

代码示例来源:origin: org.opentcs.thirdparty.jhotdraw/jhotdraw

@Override
  public void actionPerformed(ActionEvent e) {
    if (toolBar != null) {
      putValue(ActionUtil.SELECTED_KEY, ! toolBar.isVisible());
    }
  }
}

代码示例来源:origin: Waikato/weka-trunk

@Override
 public void actionPerformed(ActionEvent ae) {
  m_jTbTools.setVisible(!m_jTbTools.isVisible());
 } // actionPerformed
} // class ActionViewToolbar

代码示例来源:origin: vasl-developers/vasl

@Override
public void draw(Graphics g, Map map) 
{
  if ((m_Toolbar != null) && (m_Toolbar.isVisible()))
    m_objDRQH.draw(g, map, m_enToolbarPosition);
}

代码示例来源:origin: edu.toronto.cs.savant/savant-core

private void statusBarItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_statusBarItemActionPerformed
  this.toolbar_bottom.setVisible(!this.toolbar_bottom.isVisible());
}//GEN-LAST:event_statusBarItemActionPerformed

代码示例来源:origin: xyz.cofe/gui.swing

public boolean getToolBarVisible(){ return getToolBar().isVisible(); }
public void setToolBarVisible(boolean v){

代码示例来源:origin: UNIVALI-LITE/Portugol-Studio

@Override
  public void actionPerformed(ActionEvent e) {
    botoesPlugin.setVisible(!botoesPlugin.isVisible());
    if(botoesPlugin.isVisible()){
      WeblafUtils.configurarBotao(btnConfigPlugin, ColorController.FUNDO_BOTOES_EXPANSIVEIS, ColorController.COR_LETRA, ColorController.COR_DESTAQUE, ColorController.COR_LETRA, 5);
    }else{
      WeblafUtils.configurarBotao(btnConfigPlugin, ColorController.COR_PRINCIPAL, ColorController.COR_LETRA, ColorController.COR_DESTAQUE, ColorController.COR_LETRA, 5);
    }
  }
});

代码示例来源:origin: org.opentcs.thirdparty.jhotdraw/jhotdraw

public void setToolBar(JToolBar newValue) {
  if (toolBar != null) {
    toolBar.removePropertyChangeListener(propertyHandler);
  }
  
  toolBar = newValue;
  if (toolBar != null) {
    toolBar.addPropertyChangeListener(propertyHandler);
    putValue(ActionUtil.SELECTED_KEY, toolBar.isVisible());
  }
}

代码示例来源:origin: nu.zoom/svansprogram

@Override
  public void actionPerformed(ActionEvent e) {
    if (toolbar.isVisible()) {
      toolbar.setVisible(false);
      setName(showToolbarText);
      setIcon(showToolbarIcon);
    } else {
      toolbar.setVisible(true);
      setName(hideToolbarText);
      setIcon(hideToolbarIcon);
    }
  }
}

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

setEnabled(fitWidthMenuItem, opened && !pdfCollection);
if (showHideToolBarMenuItem != null) {
  boolean vis = (completeToolBar != null) && completeToolBar.isVisible();
  showHideToolBarMenuItem.setText(
      vis ? messageBundle.getString("viewer.toolbar.hideToolBar.label") :

相关文章

JToolBar类方法