本文整理了Java中javax.swing.JMenuItem.isVisible()
方法的一些代码示例,展示了JMenuItem.isVisible()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JMenuItem.isVisible()
方法的具体详情如下:
包路径:javax.swing.JMenuItem
类名称:JMenuItem
方法名:isVisible
暂无
代码示例来源:origin: com.eas.platypus/platypus-js-forms
@ScriptFunction(jsDoc = VISIBLE_JSDOC)
@Override
public boolean getVisible() {
return super.isVisible();
}
代码示例来源:origin: com.axway.ats.framework/ats-uiengine
if (menuItemFixture != null && menuItemFixture.component().isVisible()) {
visibleLabels.add(label);
代码示例来源:origin: org.apache.airavata/airavata-xbaya-gui
/**
* @see EventListener#eventReceived(Event)
*/
public void eventReceived(Event event) {
Event.Type type = event.getType();
if (type.equals(Event.Type.MONITOR_CONFIGURATION_CHANGED)) {
// MonitorConfiguration configuration = this.engine.getMonitor().getConfiguration();
// boolean valid = configuration.isValid();
boolean valid = true;
resumeMonitoringItem.setVisible(valid);
pauseMonitoringItem.setVisible(false);
resetMonitoringItem.setVisible(false);
} else if (type.equals(Event.Type.MONITOR_STARTED)) {
resumeMonitoringItem.setVisible(false);
pauseMonitoringItem.setVisible(true);
resetMonitoringItem.setVisible(true);
} else if (type.equals(Event.Type.MONITOR_STOPED)) {
resumeMonitoringItem.setVisible(true);
pauseMonitoringItem.setVisible(false);
resetMonitoringItem.setVisible(false);
}
toolbarButtonPauseMonitor.setEnabled(pauseMonitoringItem.isVisible());
toolbarButtonResumeMonitor.setEnabled(resumeMonitoringItem.isVisible());
}
代码示例来源:origin: net.sourceforge.mydoggy/mydoggy-plaf
protected void enableVisible() {
aggregate.setVisible(!toolWindow.isVisible());
aggregateMenu.setVisible(aggregate.isVisible());
visible.setText(toolWindow.isVisible() ?
resourceManager.getString("@@tool.hide") :
resourceManager.getString("@@tool.show"));
if (toolWindow.getType() == ToolWindowType.DOCKED) {
dockedMode.setVisible(descriptor.getTypeDescriptor(ToolWindowType.SLIDING).isEnabled());
floatingMode.setVisible(descriptor.getTypeDescriptor(ToolWindowType.FLOATING).isEnabled());
floatingLiveMode.setState(false);
floatingLiveMode.setVisible(descriptor.getTypeDescriptor(ToolWindowType.FLOATING_LIVE).isEnabled());
} else if (toolWindow.getType() == ToolWindowType.SLIDING) {
floatingMode.setVisible(descriptor.getTypeDescriptor(ToolWindowType.FLOATING).isEnabled());
floatingLiveMode.setState(false);
floatingLiveMode.setVisible(descriptor.getTypeDescriptor(ToolWindowType.FLOATING_LIVE).isEnabled());
} else if (toolWindow.getType() == ToolWindowType.FLOATING) {
floatingLiveMode.setState(false);
floatingLiveMode.setVisible(descriptor.getTypeDescriptor(ToolWindowType.FLOATING_LIVE).isEnabled());
} else if (toolWindow.getType() == ToolWindowType.FLOATING_LIVE) {
dockedMode.setState(false);
floatingMode.setState(false);
floatingMode.setVisible(descriptor.getTypeDescriptor(ToolWindowType.FLOATING).isEnabled());
}
}
内容来源于网络,如有侵权,请联系作者删除!