| com.sun.rave.designtime.DesignEvent
All known Subclasses: org.netbeans.modules.visualweb.insync.live.SourceDesignEvent,
DesignEvent | public interface DesignEvent (Code) | | A DesignEvent represents a single event listener method (and possibly handler) on a single
instance of a DesignBean at design-time.
IMPLEMENTED BY CREATOR - This interface is implemented by Creator for use by the
component (bean) author.
author: Joe Nuxoll version: 1.0 |
getDefaultHandlerName | public String getDefaultHandlerName()(Code) | | Returns the default event handler method name. For example on a Button component's 'click'
event, the default handler name might be "button1_click".
the default event handler method name, same as setHandlerName would use if passed null |
getDesignBean | public DesignBean getDesignBean()(Code) | | Returns the DesignBean that owns this DesignEvent
the DesignBean that owns this DesignEvent |
getEventDescriptor | public EventDescriptor getEventDescriptor()(Code) | | Returns the EventDescriptor that defines the meta-data for this DesignEvent
The EventDescriptor that defines teh meta-data for this DesignEvent |
getHandlerMethodSource | public String getHandlerMethodSource()(Code) | | Returns the Java source code from the body of the handler method
the Java source code from the body of the handler method |
getHandlerName | public String getHandlerName()(Code) | | Returns the current event method handler name, or null if the event is currently not 'hooked'
the current event method handler name, or null if the event is currently not 'hooked' |
isHandled | public boolean isHandled()(Code) | | Returns true if this DesignEvent is currently 'hooked', or false
if it is not.
true if this DesignEvent is currently 'hooked', or false if it is not |
removeHandler | public boolean removeHandler()(Code) | | Removes and unwires an event handler method from this DesignEvent, if one exists. Returns
true if successful, false if not.
true if successful, false if not |
setHandlerMethodSource | public void setHandlerMethodSource(String methodBody) throws IllegalArgumentException(Code) | | Sets the Java source for the method body of the handler method. This is expected to be valid
Java source to be injected into the body of this event handler method. If it is not, an
IllegalArgumentException is thrown.
Parameters: methodBody - The Java source for the method body of this event handler method throws: IllegalArgumentException - thrown if the Java source is invalid |
setHandlerName | public boolean setHandlerName(String handlerMethodName)(Code) | | Sets the method name for this DesignEvent. If the event is not currently 'hooked', this will
'hook' it and add the required wiring to direct the event handler code to this method name.
If 'null' is passed as the handlerName, then the default event handler method name will be
used.
Parameters: handlerMethodName - The desired event handler method name - may be null to use defaultevent handler method name true if the event was successfully 'hooked', and the specified name was unique |
|
|