|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ComponentSource
Used by classes that need to retrieve a component by its complete id, or a page by its logical page name or root component class. The complete id is the logical name of the containing page, a colon, and the nested component id. It may also just be the page name (for the root component of a page).
Method Summary | |
---|---|
Component |
getActivePage()
Returns the active page, as defined by RequestGlobals.getActivePageName() . |
Component |
getComponent(String completeId)
Gets a component by its complete id. |
Component |
getPage(Class pageClass)
A convienience for obtaining a page instance via a class instance. |
Component |
getPage(String pageName)
Returns the page identified by its logical page name. |
Method Detail |
---|
Component getComponent(String completeId)
completeId
- complete component id (case insensitive)
IllegalArgumentException
- if the component can not be foundComponentResourcesCommon.getCompleteId()
Component getPage(String pageName)
pageName
- the logical page name
IllegalArgumentException
- if the page can not be foundComponent getPage(Class pageClass)
pageClass
- used to locate the page instance
Component getActivePage()
RequestGlobals.getActivePageName()
. This is the primary
page for handling the current request, the page which will be activated for
the request.
The identity of the active page is not known until the correct Dispatcher
determines this.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |