Java Doc for Event.java in  » IDE-Netbeans » visualweb.api.designer » org » netbeans » modules » visualweb » insync » beans » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » IDE Netbeans » visualweb.api.designer » org.netbeans.modules.visualweb.insync.beans 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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


Field Summary
final public static  Event[]EMPTY_ARRAY
    
protected  StringdefaultBody
    
protected  DelegatorMethoddelegator
    
final  MethodDescriptordescriptor
    
protected  EventMethodhandler
    
protected  String[]parameterNames
    
protected  String[]requiredImports
    
final protected  EventSetset
    

Constructor Summary
protected  Event(EventSet set, MethodDescriptor descriptor)
     Partially construct an event to be fully populated later.
 Event(EventSet set, MethodDescriptor descriptor, String name)
    

Method Summary
public  MethodDescriptorgetDescriptor()
    
public  EventSetgetEventSet()
     Get the owning event set for this event.
public  EventMethodgetHandlerMethod()
     Get the handler method for this event.
public  StringgetHandlerName()
     Get the name of the handler method for this event.
public  StringgetName()
    
protected  voidinsertEntry()
     Wire up the delegation for this event to the handler method, inserting the methods and statements as needed.
static  EventnewBoundInstance(EventSet set, MethodDescriptor md, DelegatorMethod method)
     Create an event bound to a specific statement adapter method.
protected  booleanremoveEntry()
     Remove this event's delegation method from the adapter.
public  voidsetDefaultBody(String defaultBody)
     Set the default body to be used for this event when it is created.
public  voidsetHandler()
    
public  voidsetHandler(String name)
    
public  voidsetParameterNames(String[] parameterNames)
     Set the parameter names to be used when initially creating this event.
public  voidsetRequiredImports(String[] requiredImports)
     Set the list of required imports requested by this event.
public  voidtoString(StringBuffer sb)
    

Field Detail
EMPTY_ARRAY
final public static Event[] EMPTY_ARRAY(Code)



defaultBody
protected String defaultBody(Code)



delegator
protected DelegatorMethod delegator(Code)



descriptor
final MethodDescriptor descriptor(Code)



handler
protected EventMethod handler(Code)



parameterNames
protected String[] parameterNames(Code)



requiredImports
protected String[] requiredImports(Code)



set
final protected EventSet set(Code)




Constructor Detail
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.




Method Detail
getDescriptor
public MethodDescriptor getDescriptor()(Code)
Get the (method) descriptor for this event



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



toString
public void toString(StringBuffer sb)(Code)



Fields inherited from org.netbeans.modules.visualweb.insync.beans.BeansNode
final protected BeansUnit unit(Code)(Java Doc)

Methods inherited from org.netbeans.modules.visualweb.insync.beans.BeansNode
protected String clzName()(Code)(Java Doc)
public BeansUnit getUnit()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
public void toString(StringBuffer sb)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.