org.jdesktop.wonderland.client.jme.input
Class FocusEvent3D

java.lang.Object
  extended by org.jdesktop.wonderland.client.input.Event
      extended by org.jdesktop.wonderland.client.jme.input.FocusEvent3D
All Implemented Interfaces:
java.io.Serializable

public class FocusEvent3D
extends Event

An event which indicates that the key focus has been gained or lost.

Author:
deronj
See Also:
Serialized Form

Field Summary
protected  java.awt.event.FocusEvent awtEvent
          The originating AWT input event.
 
Fields inherited from class org.jdesktop.wonderland.client.input.Event
entity, EVENT_CLASS_ID, isFocussed
 
Constructor Summary
protected FocusEvent3D()
          Default constructor (for cloning)
 
Method Summary
 Event clone(Event event)
          Copy the members of this class into the given event.
 java.awt.event.FocusEvent getAwtEvent()
          Returns the associated AWT input event
 org.jdesktop.mtgame.Entity getEntity()
          Always returns null.
 int getID()
          Returns the ID of the associated AWT input event.
 boolean isFocussed()
          Always returns false.
 boolean isGained()
          Returns true if this event is a key focus gain.
 void setEntity(org.jdesktop.mtgame.Entity entity)
          INTERNAL ONLY.
 void setFocussed(boolean focussed)
          INTERNAL ONLY.
 java.lang.String toString()
          
 
Methods inherited from class org.jdesktop.wonderland.client.input.Event
allocateEventClassID, free, getClassID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

awtEvent

protected java.awt.event.FocusEvent awtEvent
The originating AWT input event.

Constructor Detail

FocusEvent3D

protected FocusEvent3D()
Default constructor (for cloning)

Method Detail

getID

public int getID()
Returns the ID of the associated AWT input event.


getAwtEvent

public java.awt.event.FocusEvent getAwtEvent()
Returns the associated AWT input event


isGained

public boolean isGained()
Returns true if this event is a key focus gain.


getEntity

public org.jdesktop.mtgame.Entity getEntity()
Always returns null. This event doesn't have an associated entity.

Overrides:
getEntity in class Event

isFocussed

public boolean isFocussed()
Always returns false. This event doesn't have an associated entity.

Overrides:
isFocussed in class Event

setEntity

public void setEntity(org.jdesktop.mtgame.Entity entity)
Description copied from class: Event
INTERNAL ONLY.
Specify the entity with which this event is associated.

Overrides:
setEntity in class Event

setFocussed

public void setFocussed(boolean focussed)
Description copied from class: Event
INTERNAL ONLY.
Set whether event's entity had focus at the time the event was distributed.

NOTE: this must be called by the EventDistributor at event distribution time.

Overrides:
setFocussed in class Event

clone

public Event clone(Event event)
Copy the members of this class into the given event.

Overrides:
clone in class Event

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object


Open Wonderland - http://openwonderland.org