Example usage for Java org.apache.wicket Component fields, constructors, methods, implement or subclass
The text is from its open source code.
Action | ENABLE Action used with IAuthorizationStrategy to determine whether a component is allowed to be enabled. |
char | PATH_SEPARATOR Separator for component paths |
Action | RENDER Action used with IAuthorizationStrategy to determine whether a component and its children are allowed to be rendered. |
Component(final String id) Constructor. |
Component | add(final Behavior... behaviors) Adds a behavior modifier to the component. |
void | afterRender() Called on every component after the page is rendered. |
void | configure() Triggers #onConfigure() to be invoked on this component if it has not already during this request. |
void | continueToOriginalDestination() Redirects to any intercept page previously specified by a call to #redirectToInterceptPage(Page) . |
void | detachModels() Detaches all models |
boolean | determineVisibility() Determines whether or not a component should be visible, taking into account all the factors: #isVisible() , #isVisibilityAllowed() , #isRenderAllowed() |
void | error(final Serializable message) Registers an error feedback message for this component |
Z | findParent(final Class Finds the first container parent of this component of the given class. |
Component | get(final String path) Gets the component at the given path. |
String | getAjaxRegionMarkupId() Returns the id of the markup region that will be updated via ajax. |
Application | getApplication() Gets interface to application that this component is a part of. |
Behavior | getBehaviorById(int id) |
List | getBehaviors(Class Gets the subset of the currently coupled Behavior s that are of the provided type as an unmodifiable list. |
List extends Behavior> | getBehaviors() Gets the currently coupled Behavior s as a unmodifiable list. |
String | getClassRelativePath() |
IConverter | getConverter(Class Get the converter that should be used by this component, delegates to #createConverter(Class) and then to the application's IConverterLocator . |
IModel> | getDefaultModel() Gets the model. |
Object | getDefaultModelObject() Gets the backing model object. |
String | getDefaultModelObjectAsString() Gets a model object as a string. |
FeedbackMessages | getFeedbackMessages() Gets feedback messages for this component. |
String | getId() Gets the id of this component. |
IModel> | getInnermostModel() |
Locale | getLocale() Gets the locale for this component. |
Localizer | getLocalizer() Convenience method to provide easy access to the localizer object within any component. |
IMarkupFragment | getMarkup() Get the Markup associated with the Component. |
ValueMap | getMarkupAttributes() THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. |
String | getMarkupId() Retrieves id by which this component is represented within the markup. |
String | getMarkupId(boolean createIfDoesNotExist) Retrieves id by which this component is represented within the markup. |
M | getMetaData(final MetaDataKey Gets metadata for this component using the given key. |
boolean | getOutputMarkupId() Gets whether or not component will output id attribute into the markup. |
Page | getPage() Gets the page holding this component. |
String | getPageRelativePath() Gets the path to this component relative to its containing page, i.e. |
MarkupContainer | getParent() Gets any parent container, or null if there is none. |
String | getPath() Gets this component's path. |
boolean | getRenderBodyOnly() If false the component's tag will be printed as well as its body (which is default). |
Request | getRequest() |
RequestCycle | getRequestCycle() Gets the active request cycle for this component |
Response | getResponse() |
Session | getSession() Gets the current Session object. |
String | getString(final String key) |
String | getString(final String key, final IModel> model, final String defaultValue) |
String | getStyle() A convenience method to access the Sessions's style. |
String | getVariation() Gets the variation string of this component that will be used to look up markup for this component. |
boolean | hasBeenRendered() Gets whether this component was rendered at least once. |
boolean | hasErrorMessage() |
boolean | hasFeedbackMessage() |
void | info(final Serializable message) Registers an informational feedback message for this component |
boolean | isActionAuthorized(Action action) Authorizes an action for a component. |
boolean | isEnableAllowed() |
boolean | isEnabled() Gets whether this component is enabled. |
boolean | isEnabledInHierarchy() Calculates enabled state of the component taking its hierarchy into account. |
boolean | isStateless() Returns if the component is stateless or not. |
boolean | isVisibilityAllowed() Gets whether or not visibility is allowed on this component. |
boolean | isVisible() Gets whether this component and any children are visible. |
boolean | isVisibleInHierarchy() Checks if the component itself and all its parents are visible. |
void | modelChanged() Called to indicate that the model content for this component has been changed |
void | modelChanging() Called to indicate that the model content for this component is about to change |
Component | remove(final Behavior... behaviors) Removes behavior from component |
void | remove() Removes this component from its parent. |
void | rendered() Called to indicate that a component has been rendered. |
void | renderHead(IHeaderResponse response) Render to the web response whatever the component wants to contribute to the head section. |
Component | replaceWith(Component replacement) Replaces this component with another. |
void | send(IEventSink sink, Broadcast type, T payload) |
Component | setDefaultModel(final IModel> model) Sets the given model. |
Component | setDefaultModelObject(final Object object) Sets the backing model object. |
Component | setEnabled(final boolean enabled) Sets whether this component is enabled. |
Component | setEscapeModelStrings(final boolean escapeMarkup) Sets whether model strings should be escaped. |
void | setMarkupId(Component comp) Copy markupId |
Component | setMarkupId(String markupId) Sets this component's markup id to a user defined value. |
Component | setMetaData(final MetaDataKey Sets the metadata for this component using the given key. |
Component | setOutputMarkupId(final boolean output) Sets whether or not component will output id attribute into the markup. |
Component | setOutputMarkupPlaceholderTag(final boolean outputTag) Render a placeholder tag when the component is not visible. |
Component | setRenderBodyOnly(final boolean renderTag) If false the component's tag will be printed as well as its body (which is default). |
void | setResponsePage(final Class Sets the page that will respond to this request |
void | setResponsePage(final IRequestablePage page) Sets the page that will respond to this request |
void | setResponsePage(final Class Sets the page class and its parameters that will respond to this request |
Component | setVisibilityAllowed(boolean allowed) Sets whether or not this component is allowed to be visible. |
Component | setVisible(final boolean visible) Sets whether this component and any children are visible. |
void | success(final Serializable message) Registers an success feedback message for this component |
String | toString() Gets the string representation of this component. |
CharSequence | urlFor(final Class Returns a bookmarkable URL that references a given page class using a given set of page parameters. |
CharSequence | urlFor(final ResourceReference resourceReference, PageParameters parameters) Returns a URL that references a shared resource through the provided resource reference. |
CharSequence | urlFor(final IRequestHandler requestHandler) Returns a URL that references the given request target. |
R | visitParents(final Class Traverses all parent components of the given class in this parentClass, calling the visitor's visit method at each one. |