public interface PAccountViewContext
Modifier and Type | Method and Description |
---|---|
void |
addToView(PAccountViewPage sp)
This method should be used to add a page to this account view as a tab.
|
PPageTracker |
getPageTracker()
Retrieves the class that manages the navigation stack (back button)
|
PRefreshManager |
getRefreshManager()
Retrieves the class through which pages register for Refresh
notification.
|
PPageTemplate |
getVisibleTemplate()
Retrieves the encompassing template for the currently visible top-level
page.
|
boolean |
isPartOfView(PAccountViewPage sp)
Determines if the given page is a visible tab or not
|
void |
removeFromView(PAccountViewPage sp)
This method will locate the tab containing this top-level page and
remove that tab.
|
PAccountViewPage |
switchToPage(String tag,
Class pageClass)
This method searches through the set of drill downs previously
added to the current top-level page looking for the given class type.
|
PAccountViewPage |
switchToPage(String tag,
Class pageClass,
String parentName)
This method allows you to simulate drilling down from a different
parent.
|
void |
switchToPage(String tag,
PAccountViewPage page)
This method searches through the set of drill downs previously
added to the current top-level page looking for the given page.
|
boolean |
switchToPage(String tag,
PAccountViewPage page,
String parentName)
This method allows you to simulate drilling down from a different
parent.
|
void |
switchToPreviousPage(int index,
Enumeration tags,
PAccountViewPage page)
This method should be used if you are trying to navigate to the
last visited page (assumed to be local to the given page).
|
void switchToPage(String tag, PAccountViewPage page)
getLabel()
is
called on 'page' to determine the appropriate breadcrumb tag. Otherwise
'tag' is used in the breadcrumb trail to name the current drill downtag
- The label to display in the breadcrumb trailpage
- The new screen to displayPAccountViewPage switchToPage(String tag, Class pageClass)
getLabel()
is
used to determine the appropriate breadcrumb tag. Otherwise
'tag' is used in the breadcrumb trail to name the current drill downtag
- The label to display in the breadcrumb trailpage
- The page Class to displayboolean switchToPage(String tag, PAccountViewPage page, String parentName)
getLabel()
is
called on 'page' to determine the appropriate breadcrumb tag. Otherwise
'tag' is used in the breadcrumb trail to indicate the current page.tag
- The label to display in the breadcrumb trail for this pagepage
- The page to display as a drill downparentName
- Names the parent component you are drilling downPAccountViewPage switchToPage(String tag, Class pageClass, String parentName)
getLabel()
is
used to determine the appropriate breadcrumb tag. Otherwise
'tag' is used in the breadcrumb trail to indicate the current page.tag
- The label to display in the breadcrumb trail for this pagepageClass
- The page Class display as a drill downparentName
- Names the parent component you are drilling downvoid switchToPreviousPage(int index, Enumeration tags, PAccountViewPage page)
switchToPage()
. This is mostly used by
the "back button" infrastructure.index
- tags
- page
- PPageTemplate getVisibleTemplate()
PPageTracker getPageTracker()
PRefreshManager getRefreshManager()
void addToView(PAccountViewPage sp)
isValidContext()
method should use this method to add itself
back.sp
- The page to add as a tabvoid removeFromView(PAccountViewPage sp)
sp
- The page to removeboolean isPartOfView(PAccountViewPage sp)
sp
- The page in questionCopyright © 2003, 2023, Oracle and/or its affiliates.