|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jguiraffe.gui.platform.swing.builder.event.SwingEventAdapter
net.sf.jguiraffe.gui.platform.swing.builder.event.FocusEventAdapter
class FocusEventAdapter
A specific event adapter for Swing focus events.
| Constructor Summary | |
|---|---|
FocusEventAdapter(FormEventManager eventManager,
ComponentHandler handler,
java.lang.String name)
Creates a new instance of FocusEventAdapter. |
|
| Method Summary | |
|---|---|
protected FormFocusEvent |
createFocusEvent(java.awt.event.FocusEvent event,
int type)
Creates a general form focus event from the passed in Swing focus event. |
protected void |
fireFocusEvent(java.awt.event.FocusEvent event,
int type)
Sends a focus event to the event manager. |
void |
focusGained(java.awt.event.FocusEvent event)
Call back for focus gained events. |
void |
focusLost(java.awt.event.FocusEvent event)
Call back for focus lost events. |
protected FormListenerType |
getListenerType()
Returns the form listener type for this adapter. |
| Methods inherited from class net.sf.jguiraffe.gui.platform.swing.builder.event.SwingEventAdapter |
|---|
fireEvent, getEventManager, getHandler, getName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FocusEventAdapter(FormEventManager eventManager,
ComponentHandler handler,
java.lang.String name)
FocusEventAdapter.
eventManager - the event managerhandler - the component handlername - the component's name| Method Detail |
|---|
public void focusGained(java.awt.event.FocusEvent event)
focusGained in interface java.awt.event.FocusListenerevent - the eventpublic void focusLost(java.awt.event.FocusEvent event)
focusLost in interface java.awt.event.FocusListenerevent - the event
protected void fireFocusEvent(java.awt.event.FocusEvent event,
int type)
event - the Swing focus eventtype - the event type
protected FormFocusEvent createFocusEvent(java.awt.event.FocusEvent event,
int type)
event - the original eventtype - the event type
protected FormListenerType getListenerType()
getListenerType in class SwingEventAdapter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||