public final class ComponentFinder extends Object
| Constructor and Description |
|---|
ComponentFinder() |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.wicket.ajax.AjaxRequestTarget |
findAjaxRequestTarget()
Finds the AjaxRequestTarget from the current RequestCycle.
|
static org.apache.wicket.ajax.AjaxRequestTarget |
findOrCreateNewAjaxRequestTarget()
Finds the current
AjaxRequestTarget or creates a new ajax request target from the
given application and page if the current AjaxRequestTarget is null. |
static org.apache.wicket.ajax.AjaxRequestTarget |
findOrCreateNewAjaxRequestTarget(org.apache.wicket.protocol.http.WebApplication application,
org.apache.wicket.Page page)
Finds the current
AjaxRequestTarget or creates a new ajax request target from the
given application and page if the current AjaxRequestTarget is null. |
static org.apache.wicket.Component |
findParent(org.apache.wicket.Component childComponent,
Class<? extends org.apache.wicket.Component> parentClass)
Finds the first parent of the given childComponent from the given parentClass.
|
static org.apache.wicket.Component |
findParent(org.apache.wicket.Component childComponent,
Class<? extends org.apache.wicket.Component> parentClass,
boolean byClassname)
Finds the first parent of the given childComponent from the given parentClass and a flag if
the search shell be continued with the class name if the search with the given parentClass
returns null.
|
static org.apache.wicket.Component |
findParentByClassname(org.apache.wicket.Component childComponent,
Class<? extends org.apache.wicket.Component> parentClass)
Finds the first parent of the given childComponent from the given parentClass.
|
static org.apache.wicket.Component |
findParentForm(org.apache.wicket.Component childComponent)
Finds the parent form of the given childComponent.
|
static org.apache.wicket.Page |
getCurrentPage()
Gets the current page.
|
static org.apache.wicket.Page |
getPage(org.apache.wicket.request.IRequestHandler requestHandler)
Gets the page if the request handler is instance of IPageRequestHandler.
|
static org.apache.wicket.ajax.AjaxRequestTarget |
newAjaxRequestTarget(org.apache.wicket.protocol.http.WebApplication application,
org.apache.wicket.Page page)
Creates a new ajax request target from the given Page.
|
public static org.apache.wicket.ajax.AjaxRequestTarget findAjaxRequestTarget()
nullpublic static org.apache.wicket.ajax.AjaxRequestTarget findOrCreateNewAjaxRequestTarget()
AjaxRequestTarget or creates a new ajax request target from the
given application and page if the current AjaxRequestTarget is null.WebApplication.newAjaxRequestTarget(Page)public static org.apache.wicket.ajax.AjaxRequestTarget findOrCreateNewAjaxRequestTarget(org.apache.wicket.protocol.http.WebApplication application,
org.apache.wicket.Page page)
AjaxRequestTarget or creates a new ajax request target from the
given application and page if the current AjaxRequestTarget is null.application - the web applicationpage - page on which ajax response is madeWebApplication.newAjaxRequestTarget(Page)public static org.apache.wicket.Component findParent(org.apache.wicket.Component childComponent,
Class<? extends org.apache.wicket.Component> parentClass)
childComponent - the child componentparentClass - the parent classpublic static org.apache.wicket.Component findParent(org.apache.wicket.Component childComponent,
Class<? extends org.apache.wicket.Component> parentClass,
boolean byClassname)
childComponent - the child componentparentClass - the parent classbyClassname - the flag to search by classname if the search with given parentClass returns null.public static org.apache.wicket.Component findParentByClassname(org.apache.wicket.Component childComponent,
Class<? extends org.apache.wicket.Component> parentClass)
childComponent - the child componentparentClass - the parent classpublic static org.apache.wicket.Component findParentForm(org.apache.wicket.Component childComponent)
childComponent - the child componentpublic static org.apache.wicket.Page getCurrentPage()
public static org.apache.wicket.Page getPage(org.apache.wicket.request.IRequestHandler requestHandler)
requestHandler - The IRequestHandler to get the page.public static org.apache.wicket.ajax.AjaxRequestTarget newAjaxRequestTarget(org.apache.wicket.protocol.http.WebApplication application,
org.apache.wicket.Page page)
application - the web applicationpage - page on which ajax response is madeWebApplication.newAjaxRequestTarget(Page)Copyright © 2010–2015 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.