Method Summary |
|
final public Component | add(IBehavior behavior) Adds an behavior modifier to the component. |
final protected void | addStateChange(Change change) Adds state change to page. |
final protected void | checkComponentTag(ComponentTag tag, String name) Checks whether the given type has the expected name. |
final protected void | checkComponentTagAttribute(ComponentTag tag, String key, String value) Checks that a given tag has a required attribute value. |
final public boolean | continueToOriginalDestination() Redirects to any intercept page previously specified by a call to
redirectToInterceptPage. |
final public void | debug(String message) |
final public void | detachBehaviors() THIS IS WICKET INTERNAL ONLY. |
protected void | detachModel() Detaches the model for this component if it is detachable. |
public void | detachModels() |
final public void | error(String message) |
final protected String | exceptionMessage(String message) Prefixes an exception message with useful information about this. |
final public void | fatal(String message) |
protected MarkupStream | findMarkupStream() Finds the markup stream for this component.
The markup stream for this component. |
final protected Page | findPage() If this Component is a Page, returns self. |
final public MarkupContainer | findParent(Class c) Finds the first container parent of this component of the given class. |
final public MarkupContainer | findParentWithAssociatedMarkup() |
Component | get(String path) Gets the component at the given path. |
final public Application | getApplication() Gets interface to application that this component is a part of. |
final public IApplicationSettings | getApplicationPages() Deprecated. |
final public Settings | getApplicationSettings() 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 List | getBehaviors() Gets the currently coupled
IBehavior s as a unmodifiable list. |
final protected List | getBehaviors(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 String | getClassRelativePath() |
public IConverter | getConverter() Gets the converter that should be used by this component. |
final public boolean | getEscapeModelStrings() Gets whether model strings should be escaped. |
final public FeedbackMessage | getFeedbackMessage() |
final protected boolean | getFlag(int flag) THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. |
final protected boolean | getFlag(short flag) THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. |
public String | getId() Gets the id of this component. |
public Locale | getLocale() Gets the locale for the session holding this component. |
final public Localizer | getLocalizer() Convenience method to provide easy access to the localizer object within
any component. |
final public ValueMap | getMarkupAttributes() THIS IS WICKET INTERNAL ONLY. |
public String | getMarkupId() 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 Serializable | getMetaData(MetaDataKey key) Gets metadata for this component using the given key. |
public IModel | getModel() Gets the model. |
protected IModelComparator | getModelComparator() Gets the value defaultModelComparator. |
final public Object | getModelObject() Gets the backing model object; this is shorthand for
getModel().getObject(). |
final public String | getModelObjectAsString() Gets a model object as a string. |
final public boolean | getOutputMarkupId() Gets whether or not component will output id attribute into the markup. |
final public Page | getPage() Gets the page holding this component. |
final public IPageFactory | getPageFactory() |
final public String | getPageRelativePath() Gets the path to this component relative to the page it is in. |
final public MarkupContainer | getParent() Gets any parent container, or null if there is none. |
final public String | getPath() Gets this component's path. |
final public boolean | getRenderBodyOnly() If false the component's tag will be printed as well as its body (which
is default). |
final public Request | getRequest() |
final public RequestCycle | getRequestCycle() |
final public Response | getResponse() |
final public Session | getSession() Gets the current Session object. |
public long | getSizeInBytes() |
final public String | getString(String key) |
final public String | getString(String key, IModel model) |
final public String | getString(String key, IModel model, String defaultValue) |
final public String | getStyle() Gets the style of this component (see
wicket.Session ). |
public String | getVariation() Gets the variation string of this component that will be used to look up
markup for this component. |
final public boolean | hasErrorMessage() |
final public boolean | hasFeedbackMessage() |
final public void | info(String message) |
protected IModel | initModel() Called when a null model is about to be retrieved in order to allow a
subclass to provide an initial model. |
protected void | internalAttach() THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. |
protected void | internalDetach() THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. |
protected void | internalOnAttach() THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. |
protected void | internalOnDetach() THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. |
protected void | internalOnModelChanged() THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. |
final public boolean | isActionAuthorized(Action action) Authorizes an action for a component. |
final public boolean | isAncestorOf(Component component) |
final boolean | isAuto() |
protected boolean | isBehaviorAccepted(IBehavior behavior) Components are allowed to reject behavior modifiers. |
final public boolean | isEnableAllowed() |
public boolean | isEnabled() Gets whether this component is enabled. |
final protected boolean | isHeadRendered() Returns whether the head has already been rendered. |
final protected boolean | isIgnoreAttributeModifier() |
final protected boolean | isRenderAllowed() |
public boolean | isVersioned() |
public boolean | isVisible() Gets whether this component and any children are visible. |
final public boolean | isVisibleInHierarchy() Checks if the component itself and all its parents are visible. |
final public void | modelChanged() |
final public void | modelChanging() |
final public Page | newPage(Class c) |
final public Page | newPage(Class c, PageParameters parameters) |
protected void | onAfterRender() Called just after a component is rendered. |
protected void | onAttach() Called to allow a component to attach resources for use. |
protected void | onBeforeRender() Called just before a component is rendered. |
protected void | onBeginRequest() Called when a request begins. |
protected void | onComponentTag(ComponentTag tag) Processes the component tag. |
protected void | onComponentTagBody(MarkupStream markupStream, ComponentTag openTag) Processes the body. |
protected void | onDetach() Called to allow a component to detach resources after use. |
protected void | onEndRequest() Called when a request ends. |
protected void | onModelChanged() |
protected void | onModelChanging() |
final protected void | onRender() Implementation that renders this component. |
abstract protected void | onRender(MarkupStream markupStream) Implementation that renders this component. |
final public void | redirectToInterceptPage(Page page) Redirects browser to an intermediate page such as a sign-in page. |
final public void | remove() Removes this component from its parent. |
final public void | render() Performs a render of this component as part of a Page level render
process.
For component level re-render (e.g. |
final public void | render(MarkupStream markupStream) Performs a render of this component as part of a Page level render
process.
For component level re-render (e.g. |
final void | renderClosingComponentTag(MarkupStream markupStream, ComponentTag openTag, boolean renderTagOnly) Renders the close tag at the current position in the markup stream. |
final public void | renderComponent() Page.renderPage() is used to render a whole page. |
final public void | renderComponent(MarkupStream markupStream) THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. |
final protected void | renderComponentTag(ComponentTag tag) Writes a simple tag out to the response stream. |
public void | renderHead(HtmlHeaderContainer container) Print to the web response what ever the component wants to contribute to
the head section. |
final public void | rendered() Called to indicate that a component has been rendered. |
final public void | renderedBehaviors() THIS IS WICKET INTERNAL ONLY. |
final protected void | replaceComponentTagBody(MarkupStream markupStream, ComponentTag tag, CharSequence body) Replaces the body with the given one. |
public void | replaceWith(Component replacement) Replaces this component with another. |
final protected void | resetHeadRendered() THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. |
final public boolean | sameRootModel(Component component) |
final public boolean | sameRootModel(IModel model) |
final protected void | setAuto(boolean auto) |
final public Component | setEnabled(boolean enabled) Sets whether this component is enabled. |
final public Component | setEscapeModelStrings(boolean escapeMarkup) Sets whether model strings should be escaped. |
final protected void | setFlag(int flag, boolean set) THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. |
final protected void | setFlag(short flag, boolean set) THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. |
final void | setId(String id) Sets the id of this component. |
final protected Component | setIgnoreAttributeModifier(boolean ignore) |
protected void | setMarkupStream(MarkupStream markupStream) The markup stream will be assigned to the component at the beginning of
the component render phase. |
final public void | setMetaData(MetaDataKey key, Serializable object) Sets the metadata for this component using the given key. |
public Component | setModel(IModel model) Sets the given model.
WARNING: DO NOT OVERRIDE THIS METHOD UNLESS YOU HAVE A VERY GOOD REASON
FOR IT. |
final public Component | setModelObject(Object object) Sets the backing model object; shorthand for
getModel().setObject(object). |
final public Component | setOutputMarkupId(boolean output) Sets whether or not component will output id attribute into the markup. |
final void | setParent(MarkupContainer parent) Sets the parent of a component. |
final public void | setRedirect(boolean redirect) |
final void | setRenderAllowed(boolean renderAllowed) Sets the render allowed flag. |
final public Component | setRenderBodyOnly(boolean renderTag) If false the component's tag will be printed as well as its body (which
is default). |
final public void | setResponsePage(Class cls) |
final public void | setResponsePage(Class cls, PageParameters parameters) |
final public void | setResponsePage(Page page) |
public Component | setVersioned(boolean versioned) Parameters: versioned - True to turn on versioning for this component, false to turnit off for this component and any children. |
final public Component | setVisible(boolean visible) Sets whether this component and any children are visible. |
public String | toString() Gets the string representation of this component. |
public String | toString(boolean detailed) |
final public CharSequence | urlFor(Class pageClass, PageParameters parameters) Returns a bookmarkable URL that references a given page class using a
given set of page parameters. |
final public CharSequence | urlFor(IRequestTarget requestTarget) Returns a URL that references the given request target. |
final public CharSequence | urlFor(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 CharSequence | urlFor(RequestListenerInterface listener) Gets a URL for the listener interface (e.g. |
final public CharSequence | urlFor(ResourceReference resourceReference) Returns a URL that references a shared resource through the provided
resource reference. |
final public Object | visitParents(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 void | warn(String message) Registers a warning feedback message for this component. |