protected void processFocusEvent(final java.awt.event.FocusEvent _e) { if (_e.getID() == FocusEvent.FOCUS_GAINED) { pane_.requestFocus(); } }
@Override protected void firePropertyChange(String propertyName, Object oldValue, Object newValue) { // Crazy Swing JFormattedField issues a value change while focus gaining if (!VALUE_PROP_NAME.equals(propertyName) || processedFocusEvent == null || processedFocusEvent.getID() == FocusEvent.FOCUS_LOST) { super.firePropertyChange(propertyName, oldValue, newValue); } }
textArea.addFocusListener(new FocusAdapter() { @Override public void focusLost(FocusEvent e) { actionListener.actionPerformed(new ActionEvent(e.getSource(), e.getID(), "focusLost")); } });
static void focusEventToString (FocusEvent fe, final StringBuffer sb) { Component target = (Component) fe.getSource(); Component opposite = (Component) fe.getOppositeComponent(); sb.append (" focus "); //NOI18N sb.append (fe.getID() == FocusEvent.FOCUS_GAINED ? " gained by " : " lost by "); //NOI18N compToString (target, sb); sb.append (fe.getID() == FocusEvent.FOCUS_GAINED ? " from " : " to "); //NOI18N compToString (opposite, sb); sb.append (" isTemporary: "); //NOI18N sb.append (fe.isTemporary()); }
static void focusEventToString(FocusEvent fe, final StringBuffer sb) { Component target = (Component) fe.getSource(); Component opposite = fe.getOppositeComponent(); sb.append(" focus "); //NOI18N sb.append((fe.getID() == FocusEvent.FOCUS_GAINED) ? " gained by " : " lost by "); //NOI18N compToString(target, sb); sb.append((fe.getID() == FocusEvent.FOCUS_GAINED) ? " from " : " to "); //NOI18N compToString(opposite, sb); sb.append(" isTemporary: "); //NOI18N sb.append(fe.isTemporary()); }
public static final com.jogamp.newt.event.WindowEvent createWindowEvent(final java.awt.event.FocusEvent event, final NativeSurfaceHolder sourceHolder) { final short newtType = eventTypeAWT2NEWT(event.getID()); if( (short)0 != newtType ) { return new com.jogamp.newt.event.WindowEvent(newtType, sourceHolder, System.currentTimeMillis()); } return null; // no mapping .. }
static void focusEventToString (FocusEvent fe, final StringBuffer sb) { Component target = (Component) fe.getSource(); Component opposite = (Component) fe.getOppositeComponent(); sb.append (" focus "); //NOI18N sb.append (fe.getID() == FocusEvent.FOCUS_GAINED ? " gained by " : " lost by "); //NOI18N compToString (target, sb); sb.append (fe.getID() == FocusEvent.FOCUS_GAINED ? " from " : " to "); //NOI18N compToString (opposite, sb); sb.append (" isTemporary: "); //NOI18N sb.append (fe.isTemporary()); }
protected void processFocusEvent(FocusEvent fe) { super.processFocusEvent(fe); if ((fe.getID() == FocusEvent.FOCUS_GAINED) && (inner != null)) { inner.requestFocus(); } }
protected void processFocusEvent(FocusEvent fe) { super.processFocusEvent(fe); if (fe.getID() == FocusEvent.FOCUS_GAINED && inner != null) { inner.requestFocus(); } }
protected void processFocusEvent(final FocusEvent _evt) { super.processFocusEvent(_evt); // pour modifier le tooltip en cas d'erreur if (_evt.getID() == FocusEvent.FOCUS_LOST) { isValideValue(); } }
protected void processFocusEvent(FocusEvent fe) { super.processFocusEvent(fe); if (fe.getID() == FocusEvent.FOCUS_GAINED && inner != null) { inner.requestFocus(); } }
protected void processFocusEvent(FocusEvent fe) { super.processFocusEvent(fe); if (fe.getID() == fe.FOCUS_LOST) { stopTimer(); } } }
public void focusLost(FocusEvent evt) { super.focusLost(evt); if (!m_strOldValue.equalsIgnoreCase(((JTextField)evt.getSource()).getText())) actionPerformed(new ActionEvent(evt.getSource(), evt.getID(), null)); } });
public void focusLost(FocusEvent evt) { super.focusLost(evt); if (!m_strOldValue.equalsIgnoreCase(((JTextField)evt.getSource()).getText())) actionPerformed(new ActionEvent(evt.getSource(), evt.getID(), null)); } });
@Override protected void processFocusEvent(final FocusEvent ev) { if (ev.isTemporary()) { return; } if (ev.getID() == FocusEvent.FOCUS_LOST) { if (getText() == null || getText().isEmpty()) { setValue(null); } } super.processFocusEvent(ev); } };
protected void processFocusEvent(FocusEvent fe) { super.processFocusEvent(fe); if (fe.getID() == fe.FOCUS_GAINED) { if ((inner != null) && inner.isEnabled() && inner.isFocusTraversable()) { inner.requestFocus(); } } }
protected void processFocusEvent (FocusEvent fe) { super.processFocusEvent(fe); if (fe.getID() == fe.FOCUS_GAINED) { if (inner != null && inner.isEnabled() && inner.isFocusTraversable()) { inner.requestFocus(); } } }
protected void processFocusEvent (FocusEvent fe) { super.processFocusEvent(fe); if (fe.getID() == fe.FOCUS_GAINED) { if (inner != null && inner.isEnabled() && inner.isFocusTraversable()) { inner.requestFocus(); } } }
@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); } }
@Override public void focusGained(FocusEvent e) { FocusEvent fe = new FocusEvent(ModelGrid.this, e.getID(), e.isTemporary(), e.getOppositeComponent()); for (FocusListener l : getFocusListeners()) { l.focusGained(fe); } }