Groovy Documentation

com.wordpress.tipsforjava.swing
[Java] Class RequestFocusListener

java.lang.Object
  com.wordpress.tipsforjava.swing.RequestFocusListener
All Implemented Interfaces:
AncestorListener

public class RequestFocusListener
extends Object

Convenience class to request focus on a component. When the component is added to a realized Window then component will request focus immediately, since the ancestorAdded event is fired immediately. When the component is added to a non realized Window, then the focus request will be made once the window is realized, since the ancestorAdded event will not be fired until then.

Authors:
Rob Camick
Darryl Burke


Constructor Summary
RequestFocusListener()

 
Method Summary
void ancestorAdded(AncestorEvent e)

void ancestorMoved(AncestorEvent e)

void ancestorRemoved(AncestorEvent e)

 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Constructor Detail

RequestFocusListener

RequestFocusListener()


 
Method Detail

ancestorAdded

public void ancestorAdded(AncestorEvent e)


ancestorMoved

public void ancestorMoved(AncestorEvent e)


ancestorRemoved

public void ancestorRemoved(AncestorEvent e)


 

Groovy Documentation