charva.awt.event
Class FocusEvent

java.lang.Object
  extended byjava.util.EventObject
      extended bycharva.awt.event.AWTEvent
          extended bycharva.awt.event.FocusEvent
All Implemented Interfaces:
java.io.Serializable

public class FocusEvent
extends AWTEvent

Correct manage of FocusEvents.

See Also:
Serialized Form

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
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
FocusEvent(int id_, Component source_)
          Create a new FocusEvent.
FocusEvent(int id_, Component source_, boolean temporary, Component opposite)
           
 
Method Summary
 Component getOppositeComponent()
           
 boolean isTemporary()
           
 java.lang.String toString()
           
 
Methods inherited from class charva.awt.event.AWTEvent
getID
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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.

FocusEvent

public FocusEvent(int id_,
                  Component source_,
                  boolean temporary,
                  Component opposite)
Method Detail

getOppositeComponent

public Component getOppositeComponent()

isTemporary

public boolean isTemporary()

toString

public java.lang.String toString()