|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcrystalspace.jbind.impl.csNativeObject
crystalspace.jbind.impl.csutil.scf.csBase
crystalspace.jbind.impl.csutil.eventq.csEventQueue
Field Summary |
Fields inherited from class crystalspace.jbind.impl.csNativeObject |
ImplFactory, nPointer |
Constructor Summary | |
csEventQueue(iPointer nPointer)
|
Method Summary | |
void |
changeListenerTrigger(iEventHandler handler,
int trigger)
Change a listener's trigger. |
void |
clear()
Clear event queue. |
iEvent |
createEvent(byte type)
Create an event, from the pool if there are any free events available. |
iEventOutlet |
createEventOutlet(iEventPlug plug)
Register an event plug and return a new outlet. |
void |
dispatch(iEvent event)
Dispatch a single event from the queue. |
iEvent |
get()
Get next event from queue; returns a null reference if no events are present. |
iEventCord |
getEventCord(int Category,
int Subcategory)
Get the event cord for a given category and subcategory. |
iEventOutlet |
getEventOutlet()
Get a public event outlet for posting just an event. |
static java.lang.Class |
getInterfaceClass()
|
static java.lang.String |
getInterfaceName()
|
static int |
getInterfaceVersion()
|
java.lang.String |
getName()
Return the name of the interface |
int |
getVersion()
Return the version of the interface |
static void |
initSCF()
|
boolean |
isEmpty()
Query if queue is empty. |
protected boolean |
isNativePointerValidSafe()
|
void |
post(iEvent event)
Place an event into queue. |
void |
process()
Process the event queue. |
void |
registerListener(iEventHandler handler,
int trigger)
Register a listener for specific events. |
void |
removeAllListeners()
Unregister all listeners. |
void |
removeListener(iEventHandler handler)
Unregister a listener. |
Methods inherited from class crystalspace.jbind.impl.csutil.scf.csBase |
decRef, equals, finalize, getRefCount, incRef, nDelete, queryInterface, queryInterfaceSafe |
Methods inherited from class crystalspace.jbind.impl.csNativeObject |
changePointer, getPointer, getPointer, getPointerArray, hashCode, isMemoryOwner, isNativePointerValid, isNativePointerValidSafe, newNativeObject, setMemoryOwner, toString |
Methods inherited from class java.lang.Object |
clone, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface crystalspace.jbind.interfaces.iutil.scf.iBase |
decRef, getRefCount, incRef, queryInterface, queryInterfaceSafe |
Methods inherited from interface crystalspace.jbind.interfaces.iPointer |
changePointer, getPointer, isMemoryOwner, setMemoryOwner |
Constructor Detail |
public csEventQueue(iPointer nPointer)
nPointer
- Method Detail |
public int getVersion()
iBase
getVersion
in interface iBase
getVersion
in class csBase
public java.lang.String getName()
iBase
getName
in interface iBase
getName
in class csBase
public static void initSCF()
public iEventOutlet getEventOutlet()
iEventQueue
getEventOutlet
in interface iEventQueue
public static int getInterfaceVersion()
public static java.lang.String getInterfaceName()
public static java.lang.Class getInterfaceClass()
protected boolean isNativePointerValidSafe()
public void changeListenerTrigger(iEventHandler handler, int trigger)
iEventQueue
changeListenerTrigger
in interface iEventQueue
handler
- trigger
- iEventQueue.changeListenerTrigger(crystalspace.jbind.interfaces.iutil.event.iEventHandler, int)
public void clear()
iEventQueue
clear
in interface iEventQueue
iEventQueue.clear()
public iEvent createEvent(byte type)
iEventQueue
createEvent
in interface iEventQueue
type
-
iEventQueue.createEvent(byte)
public iEventOutlet createEventOutlet(iEventPlug plug)
iEventQueue
createEventOutlet
in interface iEventQueue
plug
-
iEventQueue.createEventOutlet(crystalspace.jbind.interfaces.iutil.event.iEventPlug)
public void dispatch(iEvent event)
iEventQueue
dispatch
in interface iEventQueue
event
- iEventQueue.dispatch(crystalspace.jbind.interfaces.iutil.event.iEvent)
public iEvent get()
iEventQueue
get
in interface iEventQueue
iEventQueue.get()
public iEventCord getEventCord(int Category, int Subcategory)
iEventQueue
getEventCord
in interface iEventQueue
Category
- Subcategory
-
iEventQueue.getEventCord(int, int)
public boolean isEmpty()
iEventQueue
isEmpty
in interface iEventQueue
iEventQueue.isEmpty()
public void post(iEvent event)
iEventQueue
post
in interface iEventQueue
event
- iEventQueue.post(crystalspace.jbind.interfaces.iutil.event.iEvent)
public void process()
iEventQueue
process
in interface iEventQueue
iEventQueue.process()
public void registerListener(iEventHandler handler, int trigger)
iEventQueue
registerListener
in interface iEventQueue
handler
- trigger
- iEventQueue.registerListener(crystalspace.jbind.interfaces.iutil.event.iEventHandler, int)
public void removeAllListeners()
iEventQueue
removeAllListeners
in interface iEventQueue
iEventQueue.removeAllListeners()
public void removeListener(iEventHandler handler)
iEventQueue
removeListener
in interface iEventQueue
handler
- iEventQueue.removeListener(crystalspace.jbind.interfaces.iutil.event.iEventHandler)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |