Class PageAndComponentProvider
- java.lang.Object
-
- org.apache.wicket.core.request.handler.PageProvider
-
- org.apache.wicket.core.request.handler.PageAndComponentProvider
-
- All Implemented Interfaces:
Serializable
,IPageAndComponentProvider
,IPageProvider
,IClusterable
public class PageAndComponentProvider extends PageProvider implements IPageAndComponentProvider
Extension ofPageProvider
that is also capable of providing a Component belonging to the page.- Author:
- Matej Knopp
- See Also:
PageProvider
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PageAndComponentProvider(int pageId, Class<? extends IRequestablePage> pageClass, Integer renderCount, String componentPath)
PageAndComponentProvider(int pageId, Integer renderCount, String componentPath)
PageAndComponentProvider(Class<? extends IRequestablePage> pageClass, String componentPath)
PageAndComponentProvider(Class<? extends IRequestablePage> pageClass, PageParameters pageParameters, String componentPath)
PageAndComponentProvider(Integer pageId, Class<? extends IRequestablePage> pageClass, PageParameters pageParameters, Integer renderCount, String componentPath)
PageAndComponentProvider(IRequestablePage page, String componentPath)
PageAndComponentProvider(IRequestablePage page, IRequestableComponent component)
PageAndComponentProvider(IRequestablePage page, IRequestableComponent component, PageParameters parameters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IRequestableComponent
getComponent()
Returns component on specified page with given path.String
getComponentPath()
Returns the page relative component path.-
Methods inherited from class org.apache.wicket.core.request.handler.PageProvider
detach, doesProvideNewPage, getPageClass, getPageId, getPageInstance, getPageParameters, getPageSource, getRenderCount, hasPageInstance, setPageParameters, setPageSource, toString, wasExpired
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.wicket.core.request.handler.IPageProvider
detach, doesProvideNewPage, getPageClass, getPageId, getPageInstance, getPageParameters, getRenderCount, hasPageInstance, wasExpired
-
-
-
-
Constructor Detail
-
PageAndComponentProvider
public PageAndComponentProvider(IRequestablePage page, String componentPath)
- Parameters:
page
-componentPath
-- See Also:
PageProvider(IRequestablePage)
-
PageAndComponentProvider
public PageAndComponentProvider(IRequestablePage page, IRequestableComponent component)
- Parameters:
page
-component
-- See Also:
PageProvider(IRequestablePage)
-
PageAndComponentProvider
public PageAndComponentProvider(Class<? extends IRequestablePage> pageClass, PageParameters pageParameters, String componentPath)
- Parameters:
pageClass
-pageParameters
-componentPath
-- See Also:
PageProvider(Class, PageParameters)
-
PageAndComponentProvider
public PageAndComponentProvider(Class<? extends IRequestablePage> pageClass, String componentPath)
- Parameters:
pageClass
-componentPath
-- See Also:
PageProvider(Class)
-
PageAndComponentProvider
public PageAndComponentProvider(int pageId, Class<? extends IRequestablePage> pageClass, Integer renderCount, String componentPath)
- Parameters:
pageId
-pageClass
-renderCount
-componentPath
-- See Also:
PageProvider(Integer, Class, Integer)
-
PageAndComponentProvider
public PageAndComponentProvider(Integer pageId, Class<? extends IRequestablePage> pageClass, PageParameters pageParameters, Integer renderCount, String componentPath)
- Parameters:
pageId
-pageClass
-pageParameters
-renderCount
-componentPath
-- See Also:
PageProvider(Integer, Class, Integer)
-
PageAndComponentProvider
public PageAndComponentProvider(int pageId, Integer renderCount, String componentPath)
- Parameters:
pageId
-renderCount
-componentPath
-- See Also:
PageProvider(Integer, Integer)
-
PageAndComponentProvider
public PageAndComponentProvider(IRequestablePage page, IRequestableComponent component, PageParameters parameters)
-
-
Method Detail
-
getComponent
public IRequestableComponent getComponent()
Description copied from interface:IPageAndComponentProvider
Returns component on specified page with given path.- Specified by:
getComponent
in interfaceIPageAndComponentProvider
- Returns:
- component
-
getComponentPath
public String getComponentPath()
Description copied from interface:IPageAndComponentProvider
Returns the page relative component path.- Specified by:
getComponentPath
in interfaceIPageAndComponentProvider
- Returns:
- the page relative component path.
- See Also:
IPageAndComponentProvider.getComponentPath()
-
-