| java.lang.Object org.netbeans.modules.visualweb.insync.beans.BeansNode org.netbeans.modules.visualweb.insync.beans.Event
All known Subclasses: org.netbeans.modules.visualweb.insync.faces.MethodBindEvent,
Event | public class Event extends BeansNode (Code) | | Representation of a wiring for a single event handler within an EventSet's listener adapter in
the init block.
author: cquinn |
EMPTY_ARRAY | final public static Event[] EMPTY_ARRAY(Code) | | |
Event | protected Event(EventSet set, MethodDescriptor descriptor)(Code) | | Partially construct an event to be fully populated later.
Parameters: set - The EventSet that this event is a member of. Parameters: descriptor - The MethodDescriptor that defines the hendler method signature+ |
Event | Event(EventSet set, MethodDescriptor descriptor, String name)(Code) | | Construct a new Event, creating the underlying delegating method & body, and handler method
Parameters: set - The EventSet that this event is a member of. Parameters: descriptor - The MethodDescriptor that defines the handler method signature+. Parameters: handler - Our handler method that is populated by the user. |
getEventSet | public EventSet getEventSet()(Code) | | Get the owning event set for this event.
the owning event set. |
getHandlerMethod | public EventMethod getHandlerMethod()(Code) | | Get the handler method for this event.
The handler method itself. |
getHandlerName | public String getHandlerName()(Code) | | Get the name of the handler method for this event.
The handler method name. |
getName | public String getName()(Code) | | Get the name of this event
The name of this event. |
insertEntry | protected void insertEntry()(Code) | | Wire up the delegation for this event to the handler method, inserting the methods and
statements as needed.
Parameters: delegate - name of delegate, pass null to use a tmp name & set later |
newBoundInstance | static Event newBoundInstance(EventSet set, MethodDescriptor md, DelegatorMethod method)(Code) | | Create an event bound to a specific statement adapter method.
new adapter() {
void delegateMethod(ActionEvent ae) {
handlerCall(ae);
}
...
}
Parameters: set - The EventSet that this event is a member of. Parameters: md - The MethodDescriptor that defines the handler method signature+. Parameters: am - The adapter the new bound property if bindable, else null |
removeEntry | protected boolean removeEntry()(Code) | | Remove this event's delegation method from the adapter. This event instance is dead & should
not be used.
true iff the source entry for this event was actually removed. |
setDefaultBody | public void setDefaultBody(String defaultBody)(Code) | | Set the default body to be used for this event when it is created.
If not set, a generic comment will be used.
Parameters: defaultBody - The Java source for the method body |
setHandler | public void setHandler()(Code) | | Set the name of the handler method for this event
Parameters: name - The new handler method name. |
setHandler | public void setHandler(String name)(Code) | | Set the name of the handler method for this event
Parameters: name - The new handler method name. |
setParameterNames | public void setParameterNames(String[] parameterNames)(Code) | | Set the parameter names to be used when initially creating this
event. It has no effect if the event already exists.
Parameters: parameterNames - An array of names to be assigned to the parameters. The array must have at least as many names as thereare arguments in the method. |
setRequiredImports | public void setRequiredImports(String[] requiredImports)(Code) | | Set the list of required imports requested by this event.
Parameters: An - array of fully qualified class names that should beimported when an event handler for this event is created |
|
|