本文整理了Java中javax.swing.JComboBox.fireActionEvent()
方法的一些代码示例,展示了JComboBox.fireActionEvent()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JComboBox.fireActionEvent()
方法的具体详情如下:
包路径:javax.swing.JComboBox
类名称:JComboBox
方法名:fireActionEvent
暂无
代码示例来源:origin: org.netbeans.modules/org-netbeans-lib-profiler-ui
protected void fireActionEvent() {
super.fireActionEvent();
updateFilter();
}
public boolean isEnabled() {
代码示例来源:origin: com.jidesoft/jide-oss
@Override
protected void fireActionEvent() {
if (!_preventActionEvent) {
super.fireActionEvent();
}
}
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-lib-profiler-ui
protected void fireActionEvent() {
super.fireActionEvent();
treeTable.clearSelection();
prepareResults();
}
public Dimension getMaximumSize() {
代码示例来源:origin: stackoverflow.com
at javax.swing.JComboBox.fireActionEvent(JComboBox.java:1260)
at javax.swing.JComboBox.contentsChanged(JComboBox.java:1331)
at javax.swing.AbstractListModel.fireContentsChanged(AbstractListModel.java:118)
at javax.swing.DefaultComboBoxModel.setSelectedItem(DefaultComboBoxModel.java:94)
at javax.swing.DefaultComboBoxModel.addElement(DefaultComboBoxModel.java:132)
代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide
/** Overridden to not fire changes is an event is called inside the
* connect method */
public void fireActionEvent() {
if (connecting || editor == null) {
return;
} else {
if (editor == null) {
return;
}
if ("comboBoxEdited".equals(getActionCommand())) {
log ("Translating comboBoxEdited action command to COMMAND_SUCCESS");
setActionCommand(COMMAND_SUCCESS);
}
log ("Combo editor firing ActionPerformed command=" + getActionCommand());
super.fireActionEvent();
}
}
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide
/** Overridden to not fire changes is an event is called inside the
* connect method */
public void fireActionEvent() {
if (connecting || editor == null) {
return;
} else {
if (editor == null) {
return;
}
if ("comboBoxEdited".equals(getActionCommand())) {
log ("Translating comboBoxEdited action command to COMMAND_SUCCESS");
setActionCommand(COMMAND_SUCCESS);
}
log ("Combo editor firing ActionPerformed command=" + getActionCommand());
super.fireActionEvent();
}
}
代码示例来源:origin: org.netbeans.api/org-openide-explorer
/** Overridden to not fire changes is an event is called inside the
* connect method */
@Override
public void fireActionEvent() {
if (connecting || (editor == null)) {
return;
} else {
if (editor == null) {
return;
}
if( suppressFireActionEvent ) {
return;
}
if ("comboBoxEdited".equals(getActionCommand())) {
log("Translating comboBoxEdited action command to COMMAND_SUCCESS");
setActionCommand(COMMAND_SUCCESS);
}
log("Combo editor firing ActionPerformed command=" + getActionCommand());
super.fireActionEvent();
}
}
代码示例来源:origin: org.tentackle/tentackle-swing
/**
* Overridden for the reason of actionEvents not being triggered by setFormValue().
* ActionEvents will *ONLY* be triggered due to a selection in the pulldown-menu!
* @see #actionPerformed(java.awt.event.ActionEvent)
*/
@Override
protected void fireActionEvent() {
if (!valueAdjusting) {
if (valueEnteredOnSelect) {
if (isCellEditorUsage()) {
// fake user pressed ENTER.
// we need this if table is in celltraversal mode.
// otherwise this does not harm
dispatchEvent(new KeyEvent(this, KeyEvent.KEY_PRESSED,
System.currentTimeMillis(), 0, KeyEvent.VK_ENTER, KeyEvent.CHAR_UNDEFINED));
}
else {
if (isAutoUpdate()) {
fireValueEntered();
FormUtilities.getInstance().doValidate(this);
}
lastActionItem = getSelectedItem();
actionFired = true;
}
}
else {
super.fireActionEvent();
}
}
}
内容来源于网络,如有侵权,请联系作者删除!