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


java.lang.Object
   wicket.Component

All known Subclasses:   wicket.MarkupContainer,  wicket.markup.html.WebComponent,  wicket.resource.DummyComponent,
Component
abstract public class Component implements Serializable(Code)
Component serves as the highest level abstract base class for all components.
  • Identity - All Components must have a non-null id which is retrieved by calling getId(). The id must be unique within the MarkupContainer that holds the Component, but does not have to be globally unique or unique within a Page's component hierarchy.
  • Hierarchy - A component has a parent which can be retrieved with getParent(). If a component is an instance of MarkupContainer, it may have children. In this way it has a place in the hierarchy of components contained on a given page. The Component.isAncestorOf(Component) method returns true if this Component is an ancestor of the given Component.
  • Component Paths - The path from the Page at the root of the component hierarchy to a given Component is simply the concatenation with dot separators of each id along the way. For example, the path "a.b.c" would refer to the component named "c" inside the MarkupContainer named "b" inside the container named "a". The path to a component can be retrieved by calling getPath(). This path is an absolute path beginning with the id of the Page at the root. Pages bear a PageMap/Session-relative identifier as their id, so each absolute path will begin with a number, such as "0.a.b.c". To get a Component path relative to the page that contains it, you can call getPageRelativePath().
  • LifeCycle - Components participate in the following lifecycle phases:
    • Construction - A Component is constructed with the Java language new operator. Children may be added during construction if the Component is a MarkupContainer.
    • Request Handling - An incoming request is processed by a protocol request handler such as WicketServlet. An associated Application object creates Session, Request and Response objects for use by a given Component in updating its model and rendering a response. These objects are stored inside a container called RequestCycle which is accessible via Component.getRequestCycle . The convenience methods Component.getRequest , Component.getResponse and Component.getSession provide easy access to the contents of this container.
    • Listener Invocation - If the request references a listener on an existing Component, that listener is called, allowing arbitrary user code to handle events such as link clicks or form submits. Although arbitrary listeners are supported in Wicket, the need to implement a new class of listener is unlikely for a web application and even the need to implement a listener interface directly is highly discouraged. Instead, calls to listeners are routed through logic specific to the event, resulting in calls to user code through other overridable methods. For example, the wicket.markup.html.form.IFormSubmitListener.onFormSubmitted method implemented by the Form class is really a private implementation detail of the Form class that is not designed to be overridden (although unfortunately, it must be public since all interface methods in Java must be public). Instead, Form subclasses should override user-oriented methods such as onValidate(), onSubmit() and onError() (although only the latter two are likely to be overridden in practice).
    • onBeginRequest - The Component.onBeginRequest method is called.
    • Form Submit - If a Form has been submitted and the Component is a FormComponent, the component's model is validated by a call to FormComponent.validate().
    • Form Model Update - If a valid Form has been submitted and the Component is a FormComponent, the component's model is updated by a call to FormComponent.updateModel().
    • Rendering - A markup response is generated by the Component via Component.render , which calls subclass implementation code contained in Component.onRender . Once this phase begins, a Component becomes immutable. Attempts to alter the Component will result in a WicketRuntimeException.
    • onEndRequest () - The Component.onEndRequest method is called.
  • Component Models - The primary responsibility of a component is to use its model (an object that implements IModel), which can be set via Component.setModel(IModel model) and retrieved via Component.getModel , to render a response in an appropriate markup language, such as HTML. In addition, form components know how to update their models based on request information. Since the IModel interface is a wrapper around an actual model object, a convenience method Component.getModelObject is provided to retrieve the model Object from its IModel wrapper. A further convenience method, Component.getModelObjectAsString , is provided for the very common operation of converting the wrapped model Object to a String.
  • Visibility - Components which have setVisible(false) will return false from isVisible() and will not render a response (nor will their children).
  • Page - The Page containing any given Component can be retrieved by calling Component.getPage . If the Component is not attached to a Page, an IllegalStateException will be thrown. An equivalent method, Component.findPage is available for special circumstances where it might be desirable to get a null reference back instead.
  • Session - The Page for a Component points back to the Session that contains the Page. The Session for a component can be accessed with the convenience method getSession(), which simply calls getPage().getSession().
  • Locale - The Locale for a Component is available through the convenience method getLocale(), which is equivalent to getSession().getLocale().
  • String Resources - Components can have associated String resources via the Application's Localizer, which is available through the method Component.getLocalizer . The convenience methods Component.getString(String key) and Component.getString(String keyIModel model) wrap the identical methods on the Application Localizer for easy access in Components.
  • Style - The style ("skin") for a component is available through Component.getStyle , which is equivalent to getSession().getStyle(). Styles are intended to give a particular look to a Component or Resource that is independent of its Locale. For example, a style might be a set of resources, including images and markup files, which gives the design look of "ocean" to the user. If the Session's style is set to "ocean" and these resources are given names suffixed with "_ocean", Wicket's resource management logic will prefer these resources to other resources, such as default resources, which are not as good of a match.
  • Variation - Whereas Styles are Session (user) specific, variations are component specific. E.g. if the Style is "ocean" and the Variation is "NorthSea", than the resources are given the names suffixed with "_ocean_NorthSea".
  • AttributeModifiers - You can add one or more AttributeModifier s to any component if you need to programmatically manipulate attributes of the markup tag to which a Component is attached.
  • Application, ApplicationSettings and ApplicationPages - The getApplication() method provides convenient access to the Application for a Component via getSession().getApplication(). The getApplicationSettings() method is equivalent to getApplication().getSettings(). The getApplicationPages is equivalent to getApplication().getPages().
  • Feedback Messages - The Component.debug(String) , Component.info(String) , Component.warn(String) , Component.error(String) and Component.fatal(String) methods associate feedback messages with a Component. It is generally not necessary to use these methods directly since Wicket validators automatically register feedback messages on Components. Any feedback message for a given Component can be retrieved with Component.getFeedbackMessage .
  • Page Factory - It is possible to change the way that Pages are constructed by overriding the Component.getPageFactory method, returning your own implementation of wicket.IPageFactory .
  • Versioning - Pages are the unit of versioning in Wicket, but fine-grained control of which Components should participate in versioning is possible via the Component.setVersioned(boolean) method. The versioning participation of a given Component can be retrieved with Component.isVersioned .
  • AJAX support- Components can be re-rendered after the whole Page has been rendered at least once by calling doRender().
    author:
       Jonathan Locke
    author:
       Chris Turner
    author:
       Eelco Hillenius
    author:
       Johan Compagner
    author:
       Juergen Donnerstag
    author:
       Igor Vaynberg (ivaynberg)

Inner Class :public class ComponentModelChange extends Change
Inner Class :public static interface IVisitor
Inner Class :final protected static class EnabledChange extends Change
Inner Class :final protected static class VisibilityChange extends Change

Field Summary
final public static  ActionENABLE
     Action used with IAuthorizationStrategy to determine whether a component is allowed to be enabled.

If enabling is authorized, a component may decide by itself (typically using it's enabled property) whether it is enabled or not.

final protected static  intFLAG_RESERVED1
    
final protected static  intFLAG_RESERVED2
    
final protected static  intFLAG_RESERVED3
    
final protected static  intFLAG_RESERVED4
    
final protected static  intFLAG_RESERVED5
    
final protected static  intFLAG_RESERVED6
    
final protected static  intFLAG_RESERVED7
    
final protected static  intFLAG_RESERVED8
    
final public static  charPATH_SEPARATOR
    
final public static  ActionRENDER
     Action used with IAuthorizationStrategy to determine whether a component and its children are allowed to be rendered.

There are two uses for this method:

  • The 'normal' use is for controlling whether a component is rendered without having any effect on the rest of the processing.
 intmarkupIndex
     I really dislike it, but for now we need it.

Constructor Summary
public  Component(String id)
     Constructor.
public  Component(String id, IModel model)
     Constructor.

Method Summary
final public  Componentadd(IBehavior behavior)
     Adds an behavior modifier to the component.
final protected  voidaddStateChange(Change change)
     Adds state change to page.
final protected  voidcheckComponentTag(ComponentTag tag, String name)
     Checks whether the given type has the expected name.
final protected  voidcheckComponentTagAttribute(ComponentTag tag, String key, String value)
     Checks that a given tag has a required attribute value.
final public  booleancontinueToOriginalDestination()
     Redirects to any intercept page previously specified by a call to redirectToInterceptPage.
final public  voiddebug(String message)
    
final public  voiddetachBehaviors()
     THIS IS WICKET INTERNAL ONLY.
protected  voiddetachModel()
     Detaches the model for this component if it is detachable.
public  voiddetachModels()
    
final public  voiderror(String message)
    
final protected  StringexceptionMessage(String message)
     Prefixes an exception message with useful information about this.
final public  voidfatal(String message)
    
protected  MarkupStreamfindMarkupStream()
     Finds the markup stream for this component. The markup stream for this component.
final protected  PagefindPage()
     If this Component is a Page, returns self.
final public  MarkupContainerfindParent(Class c)
     Finds the first container parent of this component of the given class.
final public  MarkupContainerfindParentWithAssociatedMarkup()
    
 Componentget(String path)
     Gets the component at the given path.
final public  ApplicationgetApplication()
     Gets interface to application that this component is a part of.
final public  IApplicationSettingsgetApplicationPages()
     Deprecated.
final public  SettingsgetApplicationSettings()
     This method has been deprecated in favor of Application.get().getXXXSettings() Gets the application settings from the application that this component belongs to.
final public  ListgetBehaviors()
     Gets the currently coupled IBehavior s as a unmodifiable list.
final protected  ListgetBehaviors(Class type)
     Gets the subset of the currently coupled IBehavior s that are of the provided type as a unmodifiable list or null if there are no behaviors attached.
final public  StringgetClassRelativePath()
    
public  IConvertergetConverter()
     Gets the converter that should be used by this component.
final public  booleangetEscapeModelStrings()
     Gets whether model strings should be escaped.
final public  FeedbackMessagegetFeedbackMessage()
    
final protected  booleangetFlag(int flag)
     THIS METHOD IS NOT PART OF THE WICKET PUBLIC API.
final protected  booleangetFlag(short flag)
     THIS METHOD IS NOT PART OF THE WICKET PUBLIC API.
public  StringgetId()
     Gets the id of this component.
public  LocalegetLocale()
     Gets the locale for the session holding this component.
final public  LocalizergetLocalizer()
     Convenience method to provide easy access to the localizer object within any component.
final public  ValueMapgetMarkupAttributes()
     THIS IS WICKET INTERNAL ONLY.
public  StringgetMarkupId()
     Retrieves id by which this component is represented within the markup.

The point of this function is to generate a unique id to make it easy to locate this component in the generated markup for post-wicket processing such as javascript or an xslt transform.

Note: The component must have been added (directly or indirectly) to a container with an associated markup file (Page, Panel or Border).

final public  SerializablegetMetaData(MetaDataKey key)
     Gets metadata for this component using the given key.
public  IModelgetModel()
     Gets the model.
protected  IModelComparatorgetModelComparator()
     Gets the value defaultModelComparator.
final public  ObjectgetModelObject()
     Gets the backing model object; this is shorthand for getModel().getObject().
final public  StringgetModelObjectAsString()
     Gets a model object as a string.
final public  booleangetOutputMarkupId()
     Gets whether or not component will output id attribute into the markup.
final public  PagegetPage()
     Gets the page holding this component.
final public  IPageFactorygetPageFactory()
    
final public  StringgetPageRelativePath()
     Gets the path to this component relative to the page it is in.
final public  MarkupContainergetParent()
     Gets any parent container, or null if there is none.
final public  StringgetPath()
     Gets this component's path.
final public  booleangetRenderBodyOnly()
     If false the component's tag will be printed as well as its body (which is default).
final public  RequestgetRequest()
    
final public  RequestCyclegetRequestCycle()
    
final public  ResponsegetResponse()
    
final public  SessiongetSession()
     Gets the current Session object.
public  longgetSizeInBytes()
    
final public  StringgetString(String key)
    
final public  StringgetString(String key, IModel model)
    
final public  StringgetString(String key, IModel model, String defaultValue)
    
final public  StringgetStyle()
     Gets the style of this component (see wicket.Session ).
public  StringgetVariation()
     Gets the variation string of this component that will be used to look up markup for this component.
final public  booleanhasErrorMessage()
    
final public  booleanhasFeedbackMessage()
    
final public  voidinfo(String message)
    
protected  IModelinitModel()
     Called when a null model is about to be retrieved in order to allow a subclass to provide an initial model.
protected  voidinternalAttach()
     THIS METHOD IS NOT PART OF THE WICKET PUBLIC API.
protected  voidinternalDetach()
     THIS METHOD IS NOT PART OF THE WICKET PUBLIC API.
protected  voidinternalOnAttach()
     THIS METHOD IS NOT PART OF THE WICKET PUBLIC API.
protected  voidinternalOnDetach()
     THIS METHOD IS NOT PART OF THE WICKET PUBLIC API.
protected  voidinternalOnModelChanged()
     THIS METHOD IS NOT PART OF THE WICKET PUBLIC API.
final public  booleanisActionAuthorized(Action action)
     Authorizes an action for a component.
final public  booleanisAncestorOf(Component component)
    
final  booleanisAuto()
    
protected  booleanisBehaviorAccepted(IBehavior behavior)
     Components are allowed to reject behavior modifiers.
final public  booleanisEnableAllowed()
    
public  booleanisEnabled()
     Gets whether this component is enabled.
final protected  booleanisHeadRendered()
     Returns whether the head has already been rendered.
final protected  booleanisIgnoreAttributeModifier()
    
final protected  booleanisRenderAllowed()
    
public  booleanisVersioned()
    
public  booleanisVisible()
     Gets whether this component and any children are visible.
final public  booleanisVisibleInHierarchy()
     Checks if the component itself and all its parents are visible.
final public  voidmodelChanged()
    
final public  voidmodelChanging()
    
final public  PagenewPage(Class c)
    
final public  PagenewPage(Class c, PageParameters parameters)
    
protected  voidonAfterRender()
     Called just after a component is rendered.
protected  voidonAttach()
     Called to allow a component to attach resources for use.
protected  voidonBeforeRender()
     Called just before a component is rendered.
protected  voidonBeginRequest()
     Called when a request begins.
protected  voidonComponentTag(ComponentTag tag)
     Processes the component tag.
protected  voidonComponentTagBody(MarkupStream markupStream, ComponentTag openTag)
     Processes the body.
protected  voidonDetach()
     Called to allow a component to detach resources after use.
protected  voidonEndRequest()
     Called when a request ends.
protected  voidonModelChanged()
    
protected  voidonModelChanging()
    
final protected  voidonRender()
     Implementation that renders this component.
abstract protected  voidonRender(MarkupStream markupStream)
     Implementation that renders this component.
final public  voidredirectToInterceptPage(Page page)
     Redirects browser to an intermediate page such as a sign-in page.
final public  voidremove()
     Removes this component from its parent.
final public  voidrender()
     Performs a render of this component as part of a Page level render process.

For component level re-render (e.g.

final public  voidrender(MarkupStream markupStream)
     Performs a render of this component as part of a Page level render process.

For component level re-render (e.g.

final  voidrenderClosingComponentTag(MarkupStream markupStream, ComponentTag openTag, boolean renderTagOnly)
     Renders the close tag at the current position in the markup stream.
final public  voidrenderComponent()
     Page.renderPage() is used to render a whole page.
final public  voidrenderComponent(MarkupStream markupStream)
     THIS METHOD IS NOT PART OF THE WICKET PUBLIC API.
final protected  voidrenderComponentTag(ComponentTag tag)
     Writes a simple tag out to the response stream.
public  voidrenderHead(HtmlHeaderContainer container)
     Print to the web response what ever the component wants to contribute to the head section.
final public  voidrendered()
     Called to indicate that a component has been rendered.
final public  voidrenderedBehaviors()
     THIS IS WICKET INTERNAL ONLY.
final protected  voidreplaceComponentTagBody(MarkupStream markupStream, ComponentTag tag, CharSequence body)
     Replaces the body with the given one.
public  voidreplaceWith(Component replacement)
     Replaces this component with another.
final protected  voidresetHeadRendered()
     THIS METHOD IS NOT PART OF THE WICKET PUBLIC API.
final public  booleansameRootModel(Component component)
    
final public  booleansameRootModel(IModel model)
    
final protected  voidsetAuto(boolean auto)
    
final public  ComponentsetEnabled(boolean enabled)
     Sets whether this component is enabled.
final public  ComponentsetEscapeModelStrings(boolean escapeMarkup)
     Sets whether model strings should be escaped.
final protected  voidsetFlag(int flag, boolean set)
     THIS METHOD IS NOT PART OF THE WICKET PUBLIC API.
final protected  voidsetFlag(short flag, boolean set)
     THIS METHOD IS NOT PART OF THE WICKET PUBLIC API.
final  voidsetId(String id)
     Sets the id of this component.
final protected  ComponentsetIgnoreAttributeModifier(boolean ignore)
    
protected  voidsetMarkupStream(MarkupStream markupStream)
     The markup stream will be assigned to the component at the beginning of the component render phase.
final public  voidsetMetaData(MetaDataKey key, Serializable object)
     Sets the metadata for this component using the given key.
public  ComponentsetModel(IModel model)
     Sets the given model.

WARNING: DO NOT OVERRIDE THIS METHOD UNLESS YOU HAVE A VERY GOOD REASON FOR IT.

final public  ComponentsetModelObject(Object object)
     Sets the backing model object; shorthand for getModel().setObject(object).
final public  ComponentsetOutputMarkupId(boolean output)
     Sets whether or not component will output id attribute into the markup.
final  voidsetParent(MarkupContainer parent)
     Sets the parent of a component.
final public  voidsetRedirect(boolean redirect)
    
final  voidsetRenderAllowed(boolean renderAllowed)
     Sets the render allowed flag.
final public  ComponentsetRenderBodyOnly(boolean renderTag)
     If false the component's tag will be printed as well as its body (which is default).
final public  voidsetResponsePage(Class cls)
    
final public  voidsetResponsePage(Class cls, PageParameters parameters)
    
final public  voidsetResponsePage(Page page)
    
public  ComponentsetVersioned(boolean versioned)
    
Parameters:
  versioned - True to turn on versioning for this component, false to turnit off for this component and any children.
final public  ComponentsetVisible(boolean visible)
     Sets whether this component and any children are visible.
public  StringtoString()
     Gets the string representation of this component.
public  StringtoString(boolean detailed)
    
final public  CharSequenceurlFor(Class pageClass, PageParameters parameters)
     Returns a bookmarkable URL that references a given page class using a given set of page parameters.
final public  CharSequenceurlFor(IRequestTarget requestTarget)
     Returns a URL that references the given request target.
final public  CharSequenceurlFor(PageMap pageMap, Class pageClass, PageParameters parameters)
     Returns a bookmarkable URL that references a given page class using a given set of page parameters.
final public  CharSequenceurlFor(RequestListenerInterface listener)
     Gets a URL for the listener interface (e.g.
final public  CharSequenceurlFor(ResourceReference resourceReference)
     Returns a URL that references a shared resource through the provided resource reference.
final public  ObjectvisitParents(Class c, IVisitor visitor)
     Traverses all parent components of the given class in this container, calling the visitor's visit method at each one.
final public  voidwarn(String message)
     Registers a warning feedback message for this component.

Field Detail
ENABLE
final public static Action ENABLE(Code)
Action used with IAuthorizationStrategy to determine whether a component is allowed to be enabled.

If enabling is authorized, a component may decide by itself (typically using it's enabled property) whether it is enabled or not. If enabling is not authorized, the given component is marked disabled, regardless its enabled property.

When a component is not allowed to be enabled (in effect disabled through the implementation of this interface), Wicket will try to prevent model updates too. This is not completely fail safe, as constructs like:

 User u = (User)getModelObject();
 u.setName("got you there!");
 
can't be prevented. Indeed it can be argued that any model protection is best dealt with in your model objects to be completely secured. Wicket will catch all normal framework-directed use though.



FLAG_RESERVED1
final protected static int FLAG_RESERVED1(Code)
Reserved subclass-definable flag bit



FLAG_RESERVED2
final protected static int FLAG_RESERVED2(Code)
Reserved subclass-definable flag bit



FLAG_RESERVED3
final protected static int FLAG_RESERVED3(Code)
Reserved subclass-definable flag bit



FLAG_RESERVED4
final protected static int FLAG_RESERVED4(Code)
Reserved subclass-definable flag bit



FLAG_RESERVED5
final protected static int FLAG_RESERVED5(Code)
Reserved subclass-definable flag bit



FLAG_RESERVED6
final protected static int FLAG_RESERVED6(Code)
Reserved subclass-definable flag bit



FLAG_RESERVED7
final protected static int FLAG_RESERVED7(Code)
Reserved subclass-definable flag bit



FLAG_RESERVED8
final protected static int FLAG_RESERVED8(Code)
Reserved subclass-definable flag bit



PATH_SEPARATOR
final public static char PATH_SEPARATOR(Code)
Separator for component paths



RENDER
final public static Action RENDER(Code)
Action used with IAuthorizationStrategy to determine whether a component and its children are allowed to be rendered.

There are two uses for this method:

  • The 'normal' use is for controlling whether a component is rendered without having any effect on the rest of the processing. If a strategy lets this method return 'false', then the target component and its children will not be rendered, in the same fashion as if that component had visibility property 'false'.
  • The other use is when a component should block the rendering of the whole page. So instead of 'hiding' a component, what we generally want to achieve here is that we force the user to logon/give-credentials for a higher level of authorization. For this functionality, the strategy implementation should throw a AuthorizationException , which will then be handled further by the framework.




markupIndex
int markupIndex(Code)
I really dislike it, but for now we need it. Reason: due to transparent containers and IComponentResolver there is guaranteed 1:1 mapping between component and markup




Constructor Detail
Component
public Component(String id)(Code)
Constructor. All components have names. A component's id cannot be null. This is the minimal constructor of component. It does not register a model.
Parameters:
  id - The non-null id of this component
throws:
  WicketRuntimeException - Thrown if the component has been given a null id.



Component
public Component(String id, IModel model)(Code)
Constructor. All components have names. A component's id cannot be null. This constructor includes a model.
Parameters:
  id - The non-null id of this component
Parameters:
  model - The component's model
throws:
  WicketRuntimeException - Thrown if the component has been given a null id.




Method Detail
add
final public Component add(IBehavior behavior)(Code)
Adds an behavior modifier to the component.
Parameters:
  behavior - The behavior modifier to be added this (to allow method call chaining)



addStateChange
final protected void addStateChange(Change change)(Code)
Adds state change to page.
Parameters:
  change - The change



checkComponentTag
final protected void checkComponentTag(ComponentTag tag, String name)(Code)
Checks whether the given type has the expected name.
Parameters:
  tag - The tag to check
Parameters:
  name - The expected tag name
throws:
  MarkupException - Thrown if the tag is not of the right name



checkComponentTagAttribute
final protected void checkComponentTagAttribute(ComponentTag tag, String key, String value)(Code)
Checks that a given tag has a required attribute value.
Parameters:
  tag - The tag
Parameters:
  key - The attribute key
Parameters:
  value - The required value for the attribute key
throws:
  MarkupException - Thrown if the tag does not have the required attribute value



continueToOriginalDestination
final public boolean continueToOriginalDestination()(Code)
Redirects to any intercept page previously specified by a call to redirectToInterceptPage. True if an original destination was redirected to
See Also:   Component.redirectToInterceptPage(Page)



debug
final public void debug(String message)(Code)
Registers a debug feedback message for this component
Parameters:
  message - The feedback message



detachBehaviors
final public void detachBehaviors()(Code)
THIS IS WICKET INTERNAL ONLY. DO NOT USE IT. Traverses all behaviors and calls detachModel() on them. This is needed to cleanup behavior after render. This method is necessary for AjaxRequestTarget to be able to cleanup component's behaviors after header contribution has been done (which is separated from component render).



detachModel
protected void detachModel()(Code)
Detaches the model for this component if it is detachable.



detachModels
public void detachModels()(Code)
Detaches all models



error
final public void error(String message)(Code)
Registers an error feedback message for this component
Parameters:
  message - The feedback message



exceptionMessage
final protected String exceptionMessage(String message)(Code)
Prefixes an exception message with useful information about this. component.
Parameters:
  message - The message The modified message



fatal
final public void fatal(String message)(Code)
Registers an fatal error feedback message for this component
Parameters:
  message - The feedback message



findMarkupStream
protected MarkupStream findMarkupStream()(Code)
Finds the markup stream for this component. The markup stream for this component. Since a Component cannothave a markup stream, we ask this component's parent to searchfor it.



findPage
final protected Page findPage()(Code)
If this Component is a Page, returns self. Otherwise, searches for the nearest Page parent in the component hierarchy. If no Page parent can be found, null is returned. The Page or null if none can be found



findParent
final public MarkupContainer findParent(Class c)(Code)
Finds the first container parent of this component of the given class.
Parameters:
  c - MarkupContainer class to search for First container parent that is an instance of the given class, ornull if none can be found



findParentWithAssociatedMarkup
final public MarkupContainer findParentWithAssociatedMarkup()(Code)
The nearest markup container with associated markup



get
Component get(String path)(Code)
Gets the component at the given path.
Parameters:
  path - Path to component The component at the path



getApplication
final public Application getApplication()(Code)
Gets interface to application that this component is a part of. The application associated with the session that this componentis in.
See Also:   Application



getApplicationPages
final public IApplicationSettings getApplicationPages()(Code)
Deprecated. Use getApplication().getXXXSettings() instead Gets the application pages from the application that this component belongs to. The application pages
See Also:   IApplicationSettings



getApplicationSettings
final public Settings getApplicationSettings()(Code)
This method has been deprecated in favor of Application.get().getXXXSettings() Gets the application settings from the application that this component belongs to. The application settings from the application that this componentbelongs to
See Also:   Settings



getBehaviors
final public List getBehaviors()(Code)
Gets the currently coupled IBehavior s as a unmodifiable list. Returns an empty list rather than null if there are no behaviors coupled to this component. The currently coupled behaviors as a unmodifiable list



getBehaviors
final protected List getBehaviors(Class type)(Code)
Gets the subset of the currently coupled IBehavior s that are of the provided type as a unmodifiable list or null if there are no behaviors attached. Returns an empty list rather than null if there are no behaviors coupled to this component.
Parameters:
  type - The type The subset of the currently coupled behaviors that are of theprovided type as a unmodifiable list or null



getClassRelativePath
final public String getClassRelativePath()(Code)
A path of the form [page-class-name].[page-relative-path]
See Also:   Component.getPageRelativePath



getConverter
public IConverter getConverter()(Code)
Gets the converter that should be used by this component. The converter that should be used by this component



getEscapeModelStrings
final public boolean getEscapeModelStrings()(Code)
Gets whether model strings should be escaped. Returns whether model strings should be escaped



getFeedbackMessage
final public FeedbackMessage getFeedbackMessage()(Code)
Any feedback message for this component



getFlag
final protected boolean getFlag(int flag)(Code)
THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. DO NOT USE IT!
Parameters:
  flag - The flag to test True if the flag is set



getFlag
final protected boolean getFlag(short flag)(Code)
THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. DO NOT USE IT!
Parameters:
  flag - The flag to test True if the flag is set



getId
public String getId()(Code)
Gets the id of this component. The id of this component



getLocale
public Locale getLocale()(Code)
Gets the locale for the session holding this component. The locale for the session holding this component
See Also:   Component.getSession



getLocalizer
final public Localizer getLocalizer()(Code)
Convenience method to provide easy access to the localizer object within any component. The localizer object



getMarkupAttributes
final public ValueMap getMarkupAttributes()(Code)
THIS IS WICKET INTERNAL ONLY. DO NOT USE IT. Get a copy of the markup's attributes which are associated with the component.

Modifications to the map returned don't change the tags attributes. It is just a copy.

Note: The component must have been added (directly or indirectly) to a container with an associated markup file (Page, Panel or Border). markup attributes




getMarkupId
public String getMarkupId()(Code)
Retrieves id by which this component is represented within the markup.

The point of this function is to generate a unique id to make it easy to locate this component in the generated markup for post-wicket processing such as javascript or an xslt transform.

Note: The component must have been added (directly or indirectly) to a container with an associated markup file (Page, Panel or Border). This TODO post 1.2 this restriction will be implicitly met after implementing 2.0's constructor change markup id of this component, which is the result of the call toComponent.getPageRelativePath() where the ':' character (theinternal path seperator of Wicket) are replaced by the '_'character.




getMetaData
final public Serializable getMetaData(MetaDataKey key)(Code)
Gets metadata for this component using the given key.
Parameters:
  key - The key for the data The metadata or null of no metadata was found for the given key
See Also:   MetaDataKey



getModel
public IModel getModel()(Code)
Gets the model. It returns the object that wraps the backing model. The model



getModelComparator
protected IModelComparator getModelComparator()(Code)
Gets the value defaultModelComparator. Implementations of this interface can be used in the Component.getComparator() for testing the current value of the components model data with the new value that is given. the value defaultModelComparator



getModelObject
final public Object getModelObject()(Code)
Gets the backing model object; this is shorthand for getModel().getObject(). The backing model object



getModelObjectAsString
final public String getModelObjectAsString()(Code)
Gets a model object as a string. Model object for this component as a string



getOutputMarkupId
final public boolean getOutputMarkupId()(Code)
Gets whether or not component will output id attribute into the markup. id attribute will be set to the value returned from Component.getMarkupId . whether or not component will output id attribute into the markup



getPage
final public Page getPage()(Code)
Gets the page holding this component. The page holding this component
throws:
  IllegalStateException - Thrown if component is not yet attached to a Page.



getPageFactory
final public IPageFactory getPageFactory()(Code)
The page factory for the session that this component is in



getPageRelativePath
final public String getPageRelativePath()(Code)
Gets the path to this component relative to the page it is in. The path to this component relative to the page it is in



getParent
final public MarkupContainer getParent()(Code)
Gets any parent container, or null if there is none. Any parent container, or null if there is none



getPath
final public String getPath()(Code)
Gets this component's path. Colon separated path to this component in the component hierarchy



getRenderBodyOnly
final public boolean getRenderBodyOnly()(Code)
If false the component's tag will be printed as well as its body (which is default). If true only the body will be printed, but not the component's tag. If true, the component tag will not be printed



getRequest
final public Request getRequest()(Code)
The request for this component's active request cycle



getRequestCycle
final public RequestCycle getRequestCycle()(Code)
Gets the active request cycle for this component The request cycle



getResponse
final public Response getResponse()(Code)
The response for this component's active request cycle



getSession
final public Session getSession()(Code)
Gets the current Session object. The Session that this component is in



getSizeInBytes
public long getSizeInBytes()(Code)
Size of this Component in bytes



getString
final public String getString(String key)(Code)

Parameters:
  key - Key of string resource in property file The String
See Also:   Localizer



getString
final public String getString(String key, IModel model)(Code)

Parameters:
  key - The resource key
Parameters:
  model - The model The formatted string
See Also:   Localizer



getString
final public String getString(String key, IModel model, String defaultValue)(Code)

Parameters:
  key - The resource key
Parameters:
  model - The model
Parameters:
  defaultValue - A default value if the string cannot be found The formatted string
See Also:   Localizer



getStyle
final public String getStyle()(Code)
Gets the style of this component (see wicket.Session ). The style of this component.
See Also:   wicket.Session
See Also:   wicket.Session.getStyle



getVariation
public String getVariation()(Code)
Gets the variation string of this component that will be used to look up markup for this component. Subclasses can override this method to define by an instance what markup variation should be picked up. By default it will return null. The variation of this component.



hasErrorMessage
final public boolean hasErrorMessage()(Code)
True if this component has an error message



hasFeedbackMessage
final public boolean hasFeedbackMessage()(Code)
True if this component has some kind of feedback message



info
final public void info(String message)(Code)
Registers an informational feedback message for this component
Parameters:
  message - The feedback message



initModel
protected IModel initModel()(Code)
Called when a null model is about to be retrieved in order to allow a subclass to provide an initial model. This gives FormComponent, for example, an opportunity to instantiate a model on the fly using the containing Form's model. The model



internalAttach
protected void internalAttach()(Code)
THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. DO NOT CALL OR OVERRIDE. Called when a request begins.



internalDetach
protected void internalDetach()(Code)
THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. DO NOT CALL OR OVERRIDE. Called when a request ends.



internalOnAttach
protected void internalOnAttach()(Code)
THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. DO NOT CALL OR OVERRIDE. Called when a request begins.



internalOnDetach
protected void internalOnDetach()(Code)
THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. DO NOT CALL OR OVERRIDE. Called when a request ends.



internalOnModelChanged
protected void internalOnModelChanged()(Code)
THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. DO NOT CALL OR OVERRIDE. Called anytime a model is changed via setModel or setModelObject.



isActionAuthorized
final public boolean isActionAuthorized(Action action)(Code)
Authorizes an action for a component.
Parameters:
  action - The action to authorize True if the action is allowed
throws:
  AuthorizationException - Can be thrown by implementation if action is unauthorized



isAncestorOf
final public boolean isAncestorOf(Component component)(Code)
Returns true if this component is an ancestor of the given component
Parameters:
  component - The component to check True if the given component has this component as an ancestor



isAuto
final boolean isAuto()(Code)
True if this component or any of its parents is in auto-add mode



isBehaviorAccepted
protected boolean isBehaviorAccepted(IBehavior behavior)(Code)
Components are allowed to reject behavior modifiers.
Parameters:
  behavior - False, if the component should not apply this behavior



isEnableAllowed
final public boolean isEnableAllowed()(Code)
true if this component is authorized to be enabled, falseotherwise



isEnabled
public boolean isEnabled()(Code)
Gets whether this component is enabled. Specific components may decide to implement special behavior that uses this property, like web form components that add a disabled='disabled' attribute when enabled is false. Whether this component is enabled.



isHeadRendered
final protected boolean isHeadRendered()(Code)
Returns whether the head has already been rendered. boolean



isIgnoreAttributeModifier
final protected boolean isIgnoreAttributeModifier()(Code)
If true, all attribute modifiers will be ignored True, if attribute modifiers are to be ignored



isRenderAllowed
final protected boolean isRenderAllowed()(Code)



isVersioned
public boolean isVersioned()(Code)
True if this component is versioned



isVisible
public boolean isVisible()(Code)
Gets whether this component and any children are visible. True if component and any children are visible



isVisibleInHierarchy
final public boolean isVisibleInHierarchy()(Code)
Checks if the component itself and all its parents are visible. true if the component and all its parents are visible.



modelChanged
final public void modelChanged()(Code)
Called to indicate that the model content for this component has been changed



modelChanging
final public void modelChanging()(Code)
Called to indicate that the model content for this component is about to change



newPage
final public Page newPage(Class c)(Code)
Creates a new page using the component's page factory
Parameters:
  c - The class of page to create The new page



newPage
final public Page newPage(Class c, PageParameters parameters)(Code)
Creates a new page using the component's page factory
Parameters:
  c - The class of page to create
Parameters:
  parameters - Any parameters to pass to the constructor The new page



onAfterRender
protected void onAfterRender()(Code)
Called just after a component is rendered.



onAttach
protected void onAttach()(Code)
Called to allow a component to attach resources for use. The semantics of this will be tightened in Wicket 1.3 when we will add the guarantee that onAttach() be called before any framework use of a Component (in the implementation of request targets).



onBeforeRender
protected void onBeforeRender()(Code)
Called just before a component is rendered.



onBeginRequest
protected void onBeginRequest()(Code)
Called when a request begins.



onComponentTag
protected void onComponentTag(ComponentTag tag)(Code)
Processes the component tag.
Parameters:
  tag - Tag to modify



onComponentTagBody
protected void onComponentTagBody(MarkupStream markupStream, ComponentTag openTag)(Code)
Processes the body.
Parameters:
  markupStream - The markup stream
Parameters:
  openTag - The open tag for the body



onDetach
protected void onDetach()(Code)
Called to allow a component to detach resources after use. The semantics of this will be tightened in Wicket 1.3 when we will add the guarantee that onDetach() be called after all framework use of a Component (in the implementation of request targets).



onEndRequest
protected void onEndRequest()(Code)
Called when a request ends.



onModelChanged
protected void onModelChanged()(Code)
Called anytime a model is changed after the change has occurred



onModelChanging
protected void onModelChanging()(Code)
Called anytime a model is changed, but before the change actually occurs



onRender
final protected void onRender()(Code)
Implementation that renders this component.



onRender
abstract protected void onRender(MarkupStream markupStream)(Code)
Implementation that renders this component.
since:
   Wicket 1.2
Parameters:
  markupStream -



redirectToInterceptPage
final public void redirectToInterceptPage(Page page)(Code)
Redirects browser to an intermediate page such as a sign-in page. The current request's url is saved for future use by method continueToOriginalDestination(); Only use this method when you plan to continue to the current url at some later time; otherwise just use setResponsePage or - when you are in a constructor or checkAccessMethod, call redirectTo.
Parameters:
  page - The sign in page
See Also:   Component.continueToOriginalDestination



remove
final public void remove()(Code)
Removes this component from its parent. It's important to remember that a component that is removed cannot be referenced from the markup still.



render
final public void render()(Code)
Performs a render of this component as part of a Page level render process.

For component level re-render (e.g. AJAX) please call Component.renderComponent() . Though render() does seem to work, it will fail for panel children.




render
final public void render(MarkupStream markupStream)(Code)
Performs a render of this component as part of a Page level render process.

For component level re-render (e.g. AJAX) please call Component.renderComponent(MarkupStream) . Though render() does seem to work, it will fail for panel children.
Parameters:
  markupStream -




renderClosingComponentTag
final void renderClosingComponentTag(MarkupStream markupStream, ComponentTag openTag, boolean renderTagOnly)(Code)
Renders the close tag at the current position in the markup stream.
Parameters:
  markupStream - the markup stream
Parameters:
  openTag - the tag to render
Parameters:
  renderTagOnly - if true, the tag will not be written to the output



renderComponent
final public void renderComponent()(Code)
Page.renderPage() is used to render a whole page. With AJAX however it must be possible to render any one component contained in a page. That is what this method is for.

Note: it is not necessary that the page has previously been rendered. But the component must have been added (directly or indirectly) to a container with an associated markup file (Page, Panel or Border).




renderComponent
final public void renderComponent(MarkupStream markupStream)(Code)
THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. DO NOT USE IT.

Renders the component at the current position in the given markup stream. The method onComponentTag() is called to allow the component to mutate the start tag. The method onComponentTagBody() is then called to permit the component to render its body.
Parameters:
  markupStream - The markup stream




renderComponentTag
final protected void renderComponentTag(ComponentTag tag)(Code)
Writes a simple tag out to the response stream. Any components that might be referenced by the tag are ignored. Also undertakes any tag attribute modifications if they have been added to the component.
Parameters:
  tag - The tag to write



renderHead
public void renderHead(HtmlHeaderContainer container)(Code)
Print to the web response what ever the component wants to contribute to the head section. Make sure that all attached behaviors are asked as well.
Parameters:
  container - The HtmlHeaderContainer



rendered
final public void rendered()(Code)
Called to indicate that a component has been rendered. This method should only very rarely be called at all. One usage is in ImageMap, which renders its link children its own special way (without calling render() on them). If ImageMap did not call rendered() to indicate that its child components were actually rendered, the framework would think they had never been rendered, and in development mode this would result in a runtime exception.



renderedBehaviors
final public void renderedBehaviors()(Code)
THIS IS WICKET INTERNAL ONLY. DO NOT USE IT. Notifies the behaviors that the component has been rendered. This is decoupled from Component.rendered() because we don't want to call getPage().componentRendered(this) every time.



replaceComponentTagBody
final protected void replaceComponentTagBody(MarkupStream markupStream, ComponentTag tag, CharSequence body)(Code)
Replaces the body with the given one.
Parameters:
  markupStream - The markup stream to replace the tag body in
Parameters:
  tag - The tag
Parameters:
  body - The new markup



replaceWith
public void replaceWith(Component replacement)(Code)
Replaces this component with another. The replacing component must have the same component id as this component. This method serves as a shortcut to this.getParent().replace(replacement) and provides a better context for errors.
since:
   1.2.1
Parameters:
  replacement - component to replace this one



resetHeadRendered
final protected void resetHeadRendered()(Code)
THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. DO NOT CALL. Resets the state of head rendering.



sameRootModel
final public boolean sameRootModel(Component component)(Code)

Parameters:
  component - The component to compare with True if the given component's model is the same as thiscomponent's model.



sameRootModel
final public boolean sameRootModel(IModel model)(Code)

Parameters:
  model - The model to compare with True if the given component's model is the same as thiscomponent's model.



setAuto
final protected void setAuto(boolean auto)(Code)

Parameters:
  auto - True to put component into auto-add mode



setEnabled
final public Component setEnabled(boolean enabled)(Code)
Sets whether this component is enabled. Specific components may decide to implement special behavior that uses this property, like web form components that add a disabled='disabled' attribute when enabled is false. If it is not enabled, it will not be allowed to call any listener method on it (e.g. Link.onClick) and the model object will be protected (for the common use cases, not for programmer's misuse)
Parameters:
  enabled - whether this component is enabled This



setEscapeModelStrings
final public Component setEscapeModelStrings(boolean escapeMarkup)(Code)
Sets whether model strings should be escaped.
Parameters:
  escapeMarkup - True is model strings should be escaped This



setFlag
final protected void setFlag(int flag, boolean set)(Code)
THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. DO NOT USE IT!
Parameters:
  flag - The flag to set
Parameters:
  set - True to turn the flag on, false to turn it off



setFlag
final protected void setFlag(short flag, boolean set)(Code)
THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. DO NOT USE IT!
Parameters:
  flag - The flag to set
Parameters:
  set - True to turn the flag on, false to turn it off



setId
final void setId(String id)(Code)
Sets the id of this component. This method is private because the only time a component's id can be set is in its constructor.
Parameters:
  id - The non-null id of this component



setIgnoreAttributeModifier
final protected Component setIgnoreAttributeModifier(boolean ignore)(Code)
If true, all attribute modifiers will be ignored
Parameters:
  ignore - If true, all attribute modifiers will be ignored This



setMarkupStream
protected void setMarkupStream(MarkupStream markupStream)(Code)
The markup stream will be assigned to the component at the beginning of the component render phase. It is temporary working variable only.
See Also:   Component.findMarkupStream()
See Also:   MarkupContainer.getMarkupStream
Parameters:
  markupStream - The current markup stream which should be applied by thecomponent to render itself



setMetaData
final public void setMetaData(MetaDataKey key, Serializable object)(Code)
Sets the metadata for this component using the given key. If the metadata object is not of the correct type for the metadata key, an IllegalArgumentException will be thrown. For information on creating MetaDataKeys, see MetaDataKey .
Parameters:
  key - The singleton key for the metadata
Parameters:
  object - The metadata object
throws:
  IllegalArgumentException -
See Also:   MetaDataKey



setModel
public Component setModel(IModel model)(Code)
Sets the given model.

WARNING: DO NOT OVERRIDE THIS METHOD UNLESS YOU HAVE A VERY GOOD REASON FOR IT. OVERRIDING THIS MIGHT OPEN UP SECURITY LEAKS AND BREAK BACK-BUTTON SUPPORT.


Parameters:
  model - The model This



setModelObject
final public Component setModelObject(Object object)(Code)
Sets the backing model object; shorthand for getModel().setObject(object).
Parameters:
  object - The object to set This



setOutputMarkupId
final public Component setOutputMarkupId(boolean output)(Code)
Sets whether or not component will output id attribute into the markup. id attribute will be set to the value returned from Component.getMarkupId .
Parameters:
  output - this for chaining



setParent
final void setParent(MarkupContainer parent)(Code)
Sets the parent of a component.
Parameters:
  parent - The parent container



setRedirect
final public void setRedirect(boolean redirect)(Code)

Parameters:
  redirect - True if the response should be redirected to
See Also:   RequestCycle.setRedirect(boolean)



setRenderAllowed
final void setRenderAllowed(boolean renderAllowed)(Code)
Sets the render allowed flag.
Parameters:
  renderAllowed -



setRenderBodyOnly
final public Component setRenderBodyOnly(boolean renderTag)(Code)
If false the component's tag will be printed as well as its body (which is default). If true only the body will be printed, but not the component's tag.
Parameters:
  renderTag - If true, the component tag will not be printed This



setResponsePage
final public void setResponsePage(Class cls)(Code)
Sets the page that will respond to this request
Parameters:
  cls - The response page class
See Also:   RequestCycle.setResponsePage(Class)



setResponsePage
final public void setResponsePage(Class cls, PageParameters parameters)(Code)
Sets the page class and its parameters that will respond to this request
Parameters:
  cls - The response page class
Parameters:
  parameters - The parameters for thsi bookmarkable page.
See Also:   RequestCycle.setResponsePage(ClassPageParameters)



setResponsePage
final public void setResponsePage(Page page)(Code)
Sets the page that will respond to this request
Parameters:
  page - The response page
See Also:   RequestCycle.setResponsePage(Page)



setVersioned
public Component setVersioned(boolean versioned)(Code)

Parameters:
  versioned - True to turn on versioning for this component, false to turnit off for this component and any children. This



setVisible
final public Component setVisible(boolean visible)(Code)
Sets whether this component and any children are visible.
Parameters:
  visible - True if this component and any children should be visible This



toString
public String toString()(Code)
Gets the string representation of this component. The path to this component



toString
public String toString(boolean detailed)(Code)

Parameters:
  detailed - True if a detailed string is desired The string



urlFor
final public CharSequence urlFor(Class pageClass, PageParameters parameters)(Code)
Returns a bookmarkable URL that references a given page class using a given set of page parameters. Since the URL which is returned contains all information necessary to instantiate and render the page, it can be stored in a user's browser as a stable bookmark.
See Also:   RequestCycle.urlFor(PageMapClassPageParameters)
Parameters:
  pageClass - Class of page
Parameters:
  parameters - Parameters to page Bookmarkable URL to page



urlFor
final public CharSequence urlFor(IRequestTarget requestTarget)(Code)
Returns a URL that references the given request target.
See Also:   RequestCycle.urlFor(IRequestTarget)
Parameters:
  requestTarget - the request target to reference a URL that references the given request target



urlFor
final public CharSequence urlFor(PageMap pageMap, Class pageClass, PageParameters parameters)(Code)
Returns a bookmarkable URL that references a given page class using a given set of page parameters. Since the URL which is returned contains all information necessary to instantiate and render the page, it can be stored in a user's browser as a stable bookmark.
See Also:   RequestCycle.urlFor(PageMapClassPageParameters)
Parameters:
  pageMap - Page map to use
Parameters:
  pageClass - Class of page
Parameters:
  parameters - Parameters to page Bookmarkable URL to page



urlFor
final public CharSequence urlFor(RequestListenerInterface listener)(Code)
Gets a URL for the listener interface (e.g. ILinkListener).
Parameters:
  listener - The listener interface that the URL should call The URL



urlFor
final public CharSequence urlFor(ResourceReference resourceReference)(Code)
Returns a URL that references a shared resource through the provided resource reference.
See Also:   RequestCycle.urlFor(ResourceReference)
Parameters:
  resourceReference - The resource reference The url for the shared resource



visitParents
final public Object visitParents(Class c, IVisitor visitor)(Code)
Traverses all parent components of the given class in this container, calling the visitor's visit method at each one.
Parameters:
  c - Class
Parameters:
  visitor - The visitor to call at each parent of the given type First non-null value returned by visitor callback



warn
final public void warn(String message)(Code)
Registers a warning feedback message for this component.
Parameters:
  message - The feedback message



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.