本文整理了Java中javax.swing.JComboBox.isPopupVisible()
方法的一些代码示例,展示了JComboBox.isPopupVisible()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JComboBox.isPopupVisible()
方法的具体详情如下:
包路径:javax.swing.JComboBox
类名称:JComboBox
方法名:isPopupVisible
暂无
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/toniclf
public boolean isEnabled()
{
return comboBox.isPopupVisible();
}
}
代码示例来源:origin: stackoverflow.com
scriptsCombobox.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
JComboBox source = (JComboBox) e.getSource();
if(!source.isPopupVisible()){
//update data
}
}
});
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-cnd-debugger-common2
@Override
public void actionPerformed(ActionEvent e) {
if ("comboBoxChanged".equals(e.getActionCommand()) && exprList.isPopupVisible()) { //NOI18N
evaluateTypedExpression();
}
}
});
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-mercurial
@Override
public void run () {
if (!cmbFilterKind.isPopupVisible()) {
txtFilter.requestFocusInWindow();
}
}
});
代码示例来源:origin: org.netbeans.api/org-openide-explorer
@Override
public void actionPerformed(ActionEvent ae) {
if (!comboBox.isPopupVisible()) {
comboBox.showPopup();
}
}
}
代码示例来源:origin: abbot/abbot
@Override
public void run() {
if (cb.isPopupVisible()) {
cb.hidePopup();
}
}
});
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-php-editor
@Override
public void actionPerformed(ActionEvent e) {
if (e.getSource() instanceof JComboBox) {
JComboBox combo = (JComboBox) e.getSource();
combo.setPopupVisible(!combo.isPopupVisible());
}
}
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-groovy-editor
public void actionPerformed(ActionEvent e) {
if( e.getSource() instanceof JComboBox ) {
JComboBox combo = (JComboBox)e.getSource();
combo.setPopupVisible( !combo.isPopupVisible() );
}
}
}
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide
public void actionPerformed(ActionEvent ae) {
if (!comboBox.isPopupVisible()) {
comboBox.showPopup();
}
}
}); //NOI18N
代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide
public void actionPerformed(ActionEvent ae) {
if (!comboBox.isPopupVisible()) {
comboBox.showPopup();
}
}
}); //NOI18N
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-cnd-debugger-common2
public boolean isKnownComponent(Component c) {
System.out.printf("isKnownComponent(): %s\n", c); // NOI18N
if (c == this ||
c == comboBox ||
c == comboBox.getEditor().getEditorComponent() ||
c == popupMenu ||
comboBox.isPopupVisible()) {
return true;
} else {
return false;
}
}
代码示例来源:origin: edu.stanford.protege/ca.uvic.cs.chisel.cajun
private void hidePopup() {
if (combobox.isShowing() && combobox.isPopupVisible()) {
combobox.setPopupVisible(false);
}
}
代码示例来源:origin: org.gosu-lang.gosu/gosu-editor
public void actionPerformed( ActionEvent e )
{
enableFindButton( btnFind );
if( btnFind.isEnabled() && !_comboSearch.isPopupVisible() )
{
btnFind.doClick();
}
}
} );
代码示例来源:origin: omegat-org/omegat
@Override
public void actionPerformed(ActionEvent e) {
if (box.isPopupVisible()) {
box.hidePopup();
} else {
doCancel();
}
}
});
代码示例来源:origin: com.cedarsoft.utils/tags
public void actionPerformed( ActionEvent e ) {
tagCombo.setSelectedItem( tagCombo.getEditor().getItem() );
if ( tagCombo.isPopupVisible() ) {
tagCombo.setPopupVisible( false );
} else {
addSelectedTag();
tagCombo.getEditor().selectAll();
}
}
} );
代码示例来源:origin: freeplane/freeplane
public boolean isInputFieldFocused(){
if (values.isFocusOwner())
return true;
if (values.isPopupVisible() || values.getEditor().getEditorComponent().isFocusOwner())
return true;
return false;
}
代码示例来源:origin: edu.stanford.protege/ca.uvic.cs.chisel.cajun
private void showPopup() {
if (isShowPopup() && combobox.isShowing() && combobox.isEnabled() && !combobox.isPopupVisible()) {
combobox.setPopupVisible(true);
}
}
代码示例来源:origin: net.java.dev.glazedlists/glazedlists_java15
/**
* A small convenience method to try showing the ComboBoxPopup.
*/
private void togglePopup() {
// break out early if we're flagged to ignore attempts to toggle the popup state
if (doNotTogglePopup) return;
if (comboBoxModel.getSize() == 0)
comboBox.hidePopup();
else if (comboBox.isShowing() && !comboBox.isPopupVisible() && comboBoxEditorComponent.hasFocus())
comboBox.showPopup();
}
代码示例来源:origin: net.java.dev.glazedlists/glazedlists_java16
/**
* A small convenience method to try showing the ComboBoxPopup.
*/
private void togglePopup() {
// break out early if we're flagged to ignore attempts to toggle the popup state
if (doNotTogglePopup) return;
if (comboBoxModel.getSize() == 0)
comboBox.hidePopup();
else if (comboBox.isShowing() && !comboBox.isPopupVisible() && comboBoxEditorComponent.hasFocus())
comboBox.showPopup();
}
代码示例来源:origin: com.haulmont.thirdparty/glazedlists
/**
* A small convenience method to try showing the ComboBoxPopup.
*/
private void togglePopup() {
// break out early if we're flagged to ignore attempts to toggle the popup state
if (doNotTogglePopup) return;
if (comboBoxModel.getSize() == 0) {
comboBox.hidePopup();
}
else if (comboBox.isShowing() && !comboBox.isPopupVisible() && comboBoxEditorComponent.hasFocus())
comboBox.showPopup();
}
内容来源于网络,如有侵权,请联系作者删除!