Java Doc for IBehavior.java in  » J2EE » wicket » org » apache » wicket » behavior » 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 » J2EE » wicket » org.apache.wicket.behavior 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.wicket.behavior.IBehavior

All known Subclasses:   org.apache.wicket.behavior.AbstractBehavior,
IBehavior
public interface IBehavior extends IClusterable(Code)
Behaviors are kind of plug-ins for Components. They allow to be added to a component and get essential events forwarded by the component. they can be bound to a concrete component (using the bind method is called when the behavior is attached), but they don't need to. They can modify the components markup by changing the rendered ComponentTag. Behaviors can have their own models as well, and they are notified when these are to be detached by the component.

It is recommended that you extend from org.apache.wicket.behavior.AbstractBehavior instead of directly implementing this interface.


See Also:   org.apache.wicket.behavior.IBehaviorListener
See Also:   org.apache.wicket.markup.html.IHeaderContributor
See Also:   org.apache.wicket.behavior.AbstractAjaxBehavior
See Also:   org.apache.wicket.AttributeModifier
author:
   Ralf Ebert
author:
   Eelco Hillenius
author:
   Igor Vaynberg (ivaynberg)




Method Summary
 voidafterRender(Component component)
     Called when a component that has this behavior coupled was rendered.
 voidbeforeRender(Component component)
     Called when a component is about to render.
 voidbind(Component component)
     Bind this handler to the given component.
 voiddetach(Component component)
     Allows the behavior to detach any state it has attached during request processing.
 voidexception(Component component, RuntimeException exception)
     In case an unexpected exception happened anywhere between onComponentTag() and rendered(), onException() will be called for any behavior.
 booleangetStatelessHint(Component component)
     This method returns false if the behaviour generates a callback url (for example ajax behaviours)
Parameters:
  component - the component that has this behavior coupled.
 booleanisEnabled(Component component)
     Called when a components is rendering and wants to render this behavior.
 booleanisTemporary()
     Specifies whether or not this behavior is temporary.
 voidonComponentTag(Component component, ComponentTag tag)
     Called any time a component that has this behavior registered is rendering the component tag.



Method Detail
afterRender
void afterRender(Component component)(Code)
Called when a component that has this behavior coupled was rendered.
Parameters:
  component - the component that has this behavior coupled



beforeRender
void beforeRender(Component component)(Code)
Called when a component is about to render.
Parameters:
  component - the component that has this behavior coupled



bind
void bind(Component component)(Code)
Bind this handler to the given component. This method is called by the host component immediately after this behavior is added to it. This method is useful if you need to do initialization based on the component it is attached and you can't wait to do it at render time. Keep in mind that if you decide to keep a reference to the host component, it is not thread safe anymore, and should thus only be used in situations where you do not reuse the behavior for multiple components.
Parameters:
  component - the component to bind to



detach
void detach(Component component)(Code)
Allows the behavior to detach any state it has attached during request processing.
Parameters:
  component - the component that initiates the detachement of this behavior



exception
void exception(Component component, RuntimeException exception)(Code)
In case an unexpected exception happened anywhere between onComponentTag() and rendered(), onException() will be called for any behavior. Typically, if you clean up resources in IBehavior.afterRender(Component) , you should do the same in the implementation of this method.
Parameters:
  component - the component that has a reference to this behavior and duringwhich processing the exception occured
Parameters:
  exception - the unexpected exception



getStatelessHint
boolean getStatelessHint(Component component)(Code)
This method returns false if the behaviour generates a callback url (for example ajax behaviours)
Parameters:
  component - the component that has this behavior coupled. boolean true or false.



isEnabled
boolean isEnabled(Component component)(Code)
Called when a components is rendering and wants to render this behavior. If false is returned this behavior will be ignored.
Parameters:
  component - the component that has this behavior coupled true if this behaviour must be executed/rendered



isTemporary
boolean isTemporary()(Code)
Specifies whether or not this behavior is temporary. Temporary behaviors are removed at the end of request. Such behaviors are useful for modifying component rendering only when it renders next. Usecases include javascript effects, initial clientside dom setup, etc. true if this behavior is temporary



onComponentTag
void onComponentTag(Component component, ComponentTag tag)(Code)
Called any time a component that has this behavior registered is rendering the component tag.
Parameters:
  component - the component that renders this tag currently
Parameters:
  tag - the tag that is rendered



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