|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IEventProcessor
Required interface for custom fireEvent processing in Java. A custom processor of any classname wishing to handle fireEvent calls in Java must implement this interface and have a default, no argument constructor. Custom Java event handling is only attempted when no SmallBasic event handler exists. The custom processor should be defined as a WORLD attribute within the MyWorld.DXW file. Example:
WORLD
...
custEventProc org.dimx.ACustEventProcessor
...
OTHER_TAGS
END_OTHER_TAGS
END_WORLD
| Method Summary | |
|---|---|
Token |
execute(java.lang.String eventId,
DimxObject owner,
AdvObject agent,
DictSorted actualpar,
Token defaultResult,
boolean mustExist)
Executes special world EVENTs or custom world hook commands. |
Token |
fireEvent_t(java.lang.String eventId,
DimxObject owner,
java.lang.String agent,
java.lang.String target,
DictSorted params,
Token defaultResult,
boolean mustExist)
Triggers an EVENT. |
boolean |
fireEvent(java.lang.String eventId,
DimxObject owner,
java.lang.String agent,
java.lang.String target,
DictSorted input,
boolean defaultResult,
boolean mustExist)
Triggers an EVENT. |
void |
setWorld(World world)
Called immediately after instantiation to provide a World reference. |
| Method Detail |
|---|
void setWorld(World world)
throws DimxException
world -
DimxException
Token execute(java.lang.String eventId,
DimxObject owner,
AdvObject agent,
DictSorted actualpar,
Token defaultResult,
boolean mustExist)
throws DimxException
eventId - ID of the event to be executedowner - agent - actualpar - defaultResult - mustExist - if true, the event must exist and, if missing, a DimxException must be thrown.
If false, missing event is silently tolerated
DimxExceptionWorld.execute(String,DimxObject,AdvObject,DictSorted,Token,boolean)
boolean fireEvent(java.lang.String eventId,
DimxObject owner,
java.lang.String agent,
java.lang.String target,
DictSorted input,
boolean defaultResult,
boolean mustExist)
throws DimxException
eventId - owner - agent - target - input - defaultResult - mustExist - if true, the event must exist and, if missing, a DimxException must be thrown.
If false, missing event is silently tolerated by returning the default result.
DimxExceptionWorld.fireEvent(String,DimxObject,String,String,DictSorted,boolean,boolean)
Token fireEvent_t(java.lang.String eventId,
DimxObject owner,
java.lang.String agent,
java.lang.String target,
DictSorted params,
Token defaultResult,
boolean mustExist)
throws DimxException
eventId - owner - agent - target - params - defaultResult - mustExist - if true, the event must exist and, if missing, a DimxException must be thrown.
If false, missing event is silently tolerated by returning the default result.
DimxExceptionWorld.fireEvent_t(String,DimxObject,String,String,DictSorted,Token,boolean)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||