|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectNavTab
@ThreadSafe public abstract class NavTab
A tab in a navigation bar, serving as a link to a page.
| Constructor Summary | |
|---|---|
NavTab()
|
|
| Method Summary | |
|---|---|
abstract Bookmark |
bookmark()
Returns a bookmark for the page to which this tab links. |
boolean |
isEnabled(VRequestCycle cycle)
Answers whether or not the tab is to be enabled, when it is off the selection path. |
NavBar |
navBar()
Returns the navigation bar that contains this tab. |
Class |
pageClass()
Returns the class of pages to which this tab links; or null, if there is no single class. |
RequestCycleRunner |
runner(VRequestCycle cycle)
Returns a runner to handle any clicks on this tab (experimental). |
NavTab |
setNavBar(NavBar navBar)
Sets the navigation bar that contains this tab. |
abstract String |
shortTitle(VRequestCycle cycle)
Returns a short title for this tab, suitable as the body of a link. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NavTab()
| Method Detail |
|---|
public abstract Bookmark bookmark()
public boolean isEnabled(VRequestCycle cycle)
public final NavBar navBar()
NullPointerException - if the navbar has not been setsetNavBar(NavBar)public final NavTab setNavBar(NavBar navBar)
IllegalStateException - if a second call to this method is detected
(detection not guaranteed)navBar()public Class pageClass()
public RequestCycleRunner runner(VRequestCycle cycle)
BookmarkRunnerpublic abstract String shortTitle(VRequestCycle cycle)
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||