public interface NavigationView extends ViewerComponent
Modifier and Type | Method and Description |
---|---|
void |
addNavigationTab(java.lang.String title,
NavigationTab tab)
Add a new NavigationTab to this NavigationView with a certain title.
|
NavigationTab |
getNavigationTab(int index)
Returns the navigation tab at the specified index - the index is 0-based and is determined by when the navigation tabs were
added to the navigation view.
|
int |
getNavigationTabIndex(java.lang.String tabName)
Returns the NavigationTab index of the first found NavigationTab with the given name, or -1 if none is found with this name.
|
int |
getNavigationTabsCount()
Get the amount of navigation tabs in this navigation view - this is also one higher than the allowed index of any navigation tab.
|
RenderData |
getReportData()
Returns the RenderData object of this NavigationView, that is, the source of the report data
|
boolean |
isVisible()
Returns whether this navigation view is set to be visible or not
|
void |
reload()
Reloads the data underlying this navigation view and renews the display with the new data.
|
void |
removeNavigationTab(int index)
Removes the navigation tab at the specified index and causes the navigation view to be refreshed without this navigation tab.
|
void |
setVisible(boolean visible)
Shows or hides this navigation view.
|
void |
showError(java.lang.Throwable th)
Called when any error occurs within the navigation view
|
void |
showNavigationTab(int tabIndex)
Causes the navigation tab at the given index to be selected and shown for
this navigation view.
|
getComponent
void showError(java.lang.Throwable th)
th
- Exception which has occurred.RenderData getReportData()
void addNavigationTab(java.lang.String title, NavigationTab tab)
title
- Title the navigation tab is to havetab
- NavigationTab to add to the navigation view.NavigationTab getNavigationTab(int index)
index
- Index of NavigationTab to return, 0-basedjava.lang.ArrayIndexOutOfBoundsException
- if no such navigation tab existsvoid removeNavigationTab(int index)
index
- Index of navigation tab to removejava.lang.ArrayIndexOutOfBoundsException
- if no such navigation tab existsint getNavigationTabsCount()
int count = getNavigationTabsCount();
for (int i=0; i < count; i++) {
NavigationTab tab = getNavigationTab(i);
...
}
boolean isVisible()
void setVisible(boolean visible)
visible
- Show this navigation view or notvoid reload()
int getNavigationTabIndex(java.lang.String tabName)
tabName
- Name of NavigationTab for which the index is to be returned.GroupView.TAB_GROUP_TREE
,
SearchView.TAB_SEARCH
void showNavigationTab(int tabIndex)
tabIndex
- Index of navigation tab to select and display.java.lang.IndexOutOfBoundsException
- If index given does not correspond to a navigation tabCopyright © 1999-2020 by i-net software GmbH