本文整理了Java中java.awt.event.FocusListener.focusLost()
方法的一些代码示例,展示了FocusListener.focusLost()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。FocusListener.focusLost()
方法的具体详情如下:
包路径:java.awt.event.FocusListener
类名称:FocusListener
方法名:focusLost
[英]Invoked when a component loses the keyboard focus.
[中]当组件失去键盘焦点时调用。
代码示例来源:origin: org.netbeans.api/org-openide-util
/** Delegates to the original listener.
*/
@Override public void focusLost(FocusEvent ev) {
FocusListener l = (FocusListener) super.get(ev);
if (l != null) {
l.focusLost(ev);
}
}
代码示例来源:origin: freeplane/freeplane
public void closeEdit() {
if (textFieldListener != null) {
textFieldListener.focusLost(null);
}
}
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/org-netbeans-modules-editor-lib
public void focusLost(FocusEvent e) {
fl.focusLost(e);
}
}
代码示例来源:origin: net.java.abeille/abeille
public void focusLost(FocusEvent e) {
fl.focusLost(e);
}
}
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide
/**
* Notifies all registered listeners about the event.
*
* @param event The event to be fired
*/
private void fireFocusLost(FocusEvent event) {
if (listenerList == null) return;
Object[] listeners = listenerList.getListenerList();
for (int i = listeners.length-2; i>=0; i-=2) {
if (listeners[i]==java.awt.event.FocusListener.class) {
((java.awt.event.FocusListener)listeners[i+1]).focusLost(event);
}
}
}
代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide
/**
* Notifies all registered listeners about the event.
*
* @param event The event to be fired
*/
private void fireFocusLost(FocusEvent event) {
if (listenerList == null) return;
Object[] listeners = listenerList.getListenerList();
for (int i = listeners.length-2; i>=0; i-=2) {
if (listeners[i]==java.awt.event.FocusListener.class) {
((java.awt.event.FocusListener)listeners[i+1]).focusLost(event);
}
}
}
代码示例来源:origin: org.netbeans.api/org-openide-explorer
/**
* Notifies all registered listeners about the event.
*
* @param event The event to be fired
*/
private void fireFocusLost(FocusEvent event) {
if (listenerList == null) {
return;
}
Object[] listeners = listenerList.getListenerList();
for (int i = listeners.length - 2; i >= 0; i -= 2) {
if (listeners[i] == java.awt.event.FocusListener.class) {
((java.awt.event.FocusListener) listeners[i + 1]).focusLost(event);
}
}
}
代码示例来源:origin: in.jlibs/org-openide-util
/** Delegates to the original listener.
*/
public void focusLost(FocusEvent ev) {
FocusListener l = (FocusListener) super.get(ev);
if (l != null) {
l.focusLost(ev);
}
}
代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide
/** Delegates to the original listener.
*/
public void focusLost(FocusEvent ev) {
FocusListener l = (FocusListener)super.get (ev);
if (l != null) l.focusLost (ev);
}
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide
/** Delegates to the original listener.
*/
public void focusLost(FocusEvent ev) {
FocusListener l = (FocusListener)super.get (ev);
if (l != null) l.focusLost (ev);
}
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide
/** Delegates to the original listener.
*/
public void focusLost(FocusEvent ev) {
FocusListener l = (FocusListener)super.get (ev);
if (l != null) l.focusLost (ev);
}
代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide
/** Delegates to the original listener.
*/
public void focusLost(FocusEvent ev) {
FocusListener l = (FocusListener)super.get (ev);
if (l != null) l.focusLost (ev);
}
代码示例来源:origin: uk.gov.nationalarchives.thirdparty.netbeans/org-openide-util
/** Delegates to the original listener.
*/
@Override public void focusLost(FocusEvent ev) {
FocusListener l = (FocusListener) super.get(ev);
if (l != null) {
l.focusLost(ev);
}
}
代码示例来源:origin: brackeen/Scared
public void focusLost(FocusEvent e) {
FocusListener focusListener = getFocusedViewFocusListener();
if (focusListener != null) {
focusListener.focusLost(e);
}
}
代码示例来源:origin: com.jidesoft/jide-oss
public void focusLost(FocusEvent e) {
// System.out.println(this + " is firing");
if (listenerMultiCast != null)
if ((e.getSource() != lastFocus) || (isRepeating()))
listenerMultiCast.focusLost(e);
}
}
代码示例来源:origin: com.eas.platypus/platypus-js-forms
@Override
public void focusLost(FocusEvent e) {
FocusListener[] fls = getFocusListeners();
if (fls != null) {
e.setSource(ModelComponentDecorator.this);
for (FocusListener fl : fls) {
fl.focusLost(e);
}
}
}
});
代码示例来源:origin: org.apache.uima/uimaj-tools
@Override
public void focusLost(FocusEvent aEvent) {
if (aEvent.getComponent() == this.field) {
String path = this.getSelected();
if (path.length() == 0) {
path = System.getProperty("user.dir");
}
File file = new File(path);
if (this.fileChooser.getFileSelectionMode() == JFileChooser.FILES_ONLY && file.isDirectory()) {
this.fileChooser.setCurrentDirectory(file);
} else {
this.fileChooser.setSelectedFile(file);
}
}
if (externalFl != null) {
externalFl.focusLost(aEvent);
}
}
代码示例来源:origin: UISpec4J/UISpec4J
public void focusLost() {
for (FocusListener listener : jLabel.getFocusListeners()) {
listener.focusLost(new FocusEvent(jLabel, 0));
}
}
代码示例来源:origin: UISpec4J/UISpec4J
public void focusLost() {
for (FocusListener listener : jTextComponent.getFocusListeners()) {
listener.focusLost(new FocusEvent(jTextComponent, 0));
}
}
}
代码示例来源:origin: com.eas.platypus/platypus-js-forms
@Override
public void focusLost(FocusEvent e) {
FocusEvent fe = new FocusEvent(ModelGrid.this, e.getID(), e.isTemporary(), e.getOppositeComponent());
for (FocusListener l : getFocusListeners()) {
l.focusLost(fe);
}
}
内容来源于网络,如有侵权,请联系作者删除!