本文整理了Java中javax.swing.JToolBar.isVisible()
方法的一些代码示例,展示了JToolBar.isVisible()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JToolBar.isVisible()
方法的具体详情如下:
包路径:javax.swing.JToolBar
类名称: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") :
内容来源于网络,如有侵权,请联系作者删除!