|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfds.micro.ui.events.EventUI
fds.micro.ui.events.FocusEvent
This class is used with Component sub-classes for focus events.
Field Summary | |
static int |
FOCUS_GAINED
Define the constant for a gained focus event. |
static int |
FOCUS_LOST
Define the constant for a lost focus event. |
Constructor Summary | |
FocusEvent(Component source,
int type)
Build a focus event raised by given source component. |
|
FocusEvent(Component source,
int type,
Component oppositeComponent)
Build a focus event raised by given source component. |
Method Summary | |
Component |
getOppositeComponent()
Get the opposite component. |
int |
getType()
Get the event type. |
java.lang.String |
toString()
Give String description of this event. |
Methods inherited from class fds.micro.ui.events.EventUI |
getSource |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int FOCUS_GAINED
public static final int FOCUS_LOST
Constructor Detail |
public FocusEvent(Component source, int type)
source
- The component that have produced the event.type
- The event type. Must be FOCUS_LOST or FOCUS_GAINED.public FocusEvent(Component source, int type, Component oppositeComponent)
source
- The component that have produced the event.type
- The event type. Must be FOCUS_LOST or FOCUS_GAINED.oppositeComponent
- The opposite component. i.e. if type=FOCUS_LOST this is the component that have gained the focus,
and if type=FOCUS_GAINED this is the component that have lost the focus.Method Detail |
public Component getOppositeComponent()
public int getType()
public java.lang.String toString()
EventUI
toString
in class EventUI
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |