|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openpermis.editor.policy.MacAdapter.EventHandlerAdapter
public static class MacAdapter.EventHandlerAdapter
Adapter for EAWT event handlers.
Constructor Summary | |
---|---|
MacAdapter.EventHandlerAdapter(String signature,
Action action)
Creates an event handler adapter that calls an action on invocation. |
Method Summary | |
---|---|
protected Object |
getEventSource(Object appleEvent)
Derives the action event source from the specified apple event. |
String |
getSignature()
Returns the signature of the event this proxy handles. |
Object |
invoke(Object proxy,
Method method,
Object[] args)
Invokes the action that proxies this EAWT event handler and sets the event handled. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MacAdapter.EventHandlerAdapter(String signature, Action action)
action
- the action to call if a method is invoked.signature
- the signature of the method invoked.Method Detail |
---|
public String getSignature()
protected Object getEventSource(Object appleEvent)
appleEvent
- the apple event object received at the handler.
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
invoke
in interface InvocationHandler
proxy
- the proxy instance that the method was invoked on, ignored.method
- the method instance corresponding to the interface method invoked
on the proxy instance, checked against the signature.args
- an array of objects containing the values of the arguments passed in the
method invocation on the proxy instance, checked for a single event object.
null
always.
Throwable
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
PERMIS Role Based Access Control 0.4.0 (Build 15)
2009/05/20 08:15:11
Copyright (c) 2002-2007 Ergon Informatik AG