Java org.apache.wicket Component fields, constructors, methods, implement or subclass

Example usage for Java org.apache.wicket Component fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.wicket Component.

The text is from its open source code.

Subclass

org.apache.wicket.Component has subclasses.
Click this link to see all its subclasses.

Field

ActionENABLE
Action used with IAuthorizationStrategy to determine whether a component is allowed to be enabled.
charPATH_SEPARATOR
Separator for component paths
ActionRENDER
Action used with IAuthorizationStrategy to determine whether a component and its children are allowed to be rendered.

Constructor

Method

Componentadd(final Behavior... behaviors)
Adds a behavior modifier to the component.
voidafterRender()
Called on every component after the page is rendered.
voidconfigure()
Triggers #onConfigure() to be invoked on this component if it has not already during this request.
voidcontinueToOriginalDestination()
Redirects to any intercept page previously specified by a call to #redirectToInterceptPage(Page) .
voiddetachModels()
Detaches all models
booleandetermineVisibility()
Determines whether or not a component should be visible, taking into account all the factors: #isVisible() , #isVisibilityAllowed() , #isRenderAllowed()
voiderror(final Serializable message)
Registers an error feedback message for this component
ZfindParent(final Class c)
Finds the first container parent of this component of the given class.
Componentget(final String path)
Gets the component at the given path.
StringgetAjaxRegionMarkupId()
Returns the id of the markup region that will be updated via ajax.
ApplicationgetApplication()
Gets interface to application that this component is a part of.
BehaviorgetBehaviorById(int id)
ListgetBehaviors(Class type)
Gets the subset of the currently coupled Behavior s that are of the provided type as an unmodifiable list.
ListgetBehaviors()
Gets the currently coupled Behavior s as a unmodifiable list.
StringgetClassRelativePath()
IConvertergetConverter(Class type)
Get the converter that should be used by this component, delegates to #createConverter(Class) and then to the application's IConverterLocator .
IModelgetDefaultModel()
Gets the model.
ObjectgetDefaultModelObject()
Gets the backing model object.
StringgetDefaultModelObjectAsString()
Gets a model object as a string.
FeedbackMessagesgetFeedbackMessages()
Gets feedback messages for this component.
StringgetId()
Gets the id of this component.
IModelgetInnermostModel()
LocalegetLocale()
Gets the locale for this component.
LocalizergetLocalizer()
Convenience method to provide easy access to the localizer object within any component.
IMarkupFragmentgetMarkup()
Get the Markup associated with the Component.
ValueMapgetMarkupAttributes()
THIS METHOD IS NOT PART OF THE WICKET PUBLIC API.
StringgetMarkupId()
Retrieves id by which this component is represented within the markup.
StringgetMarkupId(boolean createIfDoesNotExist)
Retrieves id by which this component is represented within the markup.
MgetMetaData(final MetaDataKey key)
Gets metadata for this component using the given key.
booleangetOutputMarkupId()
Gets whether or not component will output id attribute into the markup.
PagegetPage()
Gets the page holding this component.
StringgetPageRelativePath()
Gets the path to this component relative to its containing page, i.e.
MarkupContainergetParent()
Gets any parent container, or null if there is none.
StringgetPath()
Gets this component's path.
booleangetRenderBodyOnly()
If false the component's tag will be printed as well as its body (which is default).
RequestgetRequest()
RequestCyclegetRequestCycle()
Gets the active request cycle for this component
ResponsegetResponse()
SessiongetSession()
Gets the current Session object.
StringgetString(final String key)
StringgetString(final String key, final IModel model, final String defaultValue)
StringgetStyle()
A convenience method to access the Sessions's style.
StringgetVariation()
Gets the variation string of this component that will be used to look up markup for this component.
booleanhasBeenRendered()
Gets whether this component was rendered at least once.
booleanhasErrorMessage()
booleanhasFeedbackMessage()
voidinfo(final Serializable message)
Registers an informational feedback message for this component
booleanisActionAuthorized(Action action)
Authorizes an action for a component.
booleanisEnableAllowed()
booleanisEnabled()
Gets whether this component is enabled.
booleanisEnabledInHierarchy()
Calculates enabled state of the component taking its hierarchy into account.
booleanisStateless()
Returns if the component is stateless or not.
booleanisVisibilityAllowed()
Gets whether or not visibility is allowed on this component.
booleanisVisible()
Gets whether this component and any children are visible.
booleanisVisibleInHierarchy()
Checks if the component itself and all its parents are visible.
voidmodelChanged()
Called to indicate that the model content for this component has been changed
voidmodelChanging()
Called to indicate that the model content for this component is about to change
Componentremove(final Behavior... behaviors)
Removes behavior from component
voidremove()
Removes this component from its parent.
voidrendered()
Called to indicate that a component has been rendered.
voidrenderHead(IHeaderResponse response)
Render to the web response whatever the component wants to contribute to the head section.
ComponentreplaceWith(Component replacement)
Replaces this component with another.
voidsend(IEventSink sink, Broadcast type, T payload)
ComponentsetDefaultModel(final IModel model)
Sets the given model.
ComponentsetDefaultModelObject(final Object object)
Sets the backing model object.
ComponentsetEnabled(final boolean enabled)
Sets whether this component is enabled.
ComponentsetEscapeModelStrings(final boolean escapeMarkup)
Sets whether model strings should be escaped.
voidsetMarkupId(Component comp)
Copy markupId
ComponentsetMarkupId(String markupId)
Sets this component's markup id to a user defined value.
ComponentsetMetaData(final MetaDataKey key, final M object)
Sets the metadata for this component using the given key.
ComponentsetOutputMarkupId(final boolean output)
Sets whether or not component will output id attribute into the markup.
ComponentsetOutputMarkupPlaceholderTag(final boolean outputTag)
Render a placeholder tag when the component is not visible.
ComponentsetRenderBodyOnly(final boolean renderTag)
If false the component's tag will be printed as well as its body (which is default).
voidsetResponsePage(final Class cls)
Sets the page that will respond to this request
voidsetResponsePage(final IRequestablePage page)
Sets the page that will respond to this request
voidsetResponsePage(final Class cls, PageParameters parameters)
Sets the page class and its parameters that will respond to this request
ComponentsetVisibilityAllowed(boolean allowed)
Sets whether or not this component is allowed to be visible.
ComponentsetVisible(final boolean visible)
Sets whether this component and any children are visible.
voidsuccess(final Serializable message)
Registers an success feedback message for this component
StringtoString()
Gets the string representation of this component.
CharSequenceurlFor(final Class pageClass, final PageParameters parameters)
Returns a bookmarkable URL that references a given page class using a given set of page parameters.
CharSequenceurlFor(final ResourceReference resourceReference, PageParameters parameters)
Returns a URL that references a shared resource through the provided resource reference.
CharSequenceurlFor(final IRequestHandler requestHandler)
Returns a URL that references the given request target.
RvisitParents(final Class parentClass, final IVisitor visitor)
Traverses all parent components of the given class in this parentClass, calling the visitor's visit method at each one.