charva.awt.event

Class FocusEvent


public class FocusEvent
extends AWTEvent

A low-level event that indicates that an object has gained or lost the keyboard focus. This event is generated by a component such as a textfield. This event is passed to every FocusListener object that is registered to receive such events using the object's addFocusListener() method.

Field Summary

Fields inherited from class charva.awt.event.AWTEvent

ACTION_PERFORMED, ADJUSTMENT_EVENT, FOCUS_GAINED, FOCUS_LOST, GARBAGE_COLLECTION, INVOCATION_EVENT, ITEM_STATE_CHANGED, KEY_PRESSED, KEY_TYPED, LIST_SELECTION, MOUSE_EVENT, PAINT_EVENT, RESERVED_ID_MAX, SCROLL_EVENT, SYNC_EVENT, WINDOW_CLOSING, WINDOW_OPENED

Constructor Summary

FocusEvent(int id_, Component source_)
Create a new FocusEvent.

Method Summary

String
toString()

Methods inherited from class charva.awt.event.AWTEvent

getID

Constructor Details

FocusEvent

public FocusEvent(int id_,
                  Component source_)
Create a new FocusEvent.
Parameters:
id_ - The event identifier. Must be FOCUS_LOST or FOCUS_GAINED.
source_ - The component to which the event must be delivered.

Method Details

toString

public String toString()