|
i-net Clear Reports | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JTabbedPane
com.inet.viewer.SwingNavigationView
public class SwingNavigationView
The navigation view is responsible for the group tree, the search view, and any other navigation tabs needed by the application. These navigation tabs are displayed as individual tabs, that is, the user can switch between them. The typical use of a NavigationView would be a holder for a group tree to the left of the report scroll view, however it can be used in any other manner as well.
| Method Summary | |
|---|---|
void |
addNavigationTab(java.lang.String title,
NavigationTab tab)
Add a new NavigationTab to this NavigationView with a certain title. |
java.awt.Component |
getComponent()
All public graphical components of the viewer must implement this method, which returns the actual AWT component so that it can be added to containers, etc. |
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 tab_group_tree)
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. |
| Method Detail |
|---|
public void reload()
reload in interface NavigationViewpublic void showError(java.lang.Throwable th)
showError in interface NavigationViewth - Exception which has occured.public RenderData getReportData()
getReportData in interface NavigationView
public void addNavigationTab(java.lang.String title,
NavigationTab tab)
addNavigationTab in interface NavigationViewtitle - Title the navigation tab is to havetab - NavigationTab to add to the navigation view.public NavigationTab getNavigationTab(int index)
getNavigationTab in interface NavigationViewindex - Index of NavigationTab to return, 0-based
public void removeNavigationTab(int index)
removeNavigationTab in interface NavigationViewindex - Index of navigation tab to removepublic int getNavigationTabsCount()
int count = getNavigationTabsCount();
for (int i=0; i<count; i++) {
NavigationTab tab = getNavigationTab(i);
...
}
getNavigationTabsCount in interface NavigationViewpublic boolean isVisible()
isVisible in interface NavigationViewisVisible in class java.awt.Componentpublic void setVisible(boolean visible)
setVisible in interface NavigationViewsetVisible in class javax.swing.JComponentvisible - Show this navigation view or notpublic java.awt.Component getComponent()
myFrame.add(viewer.getComponent())
getComponent in interface ViewerComponentpublic int getNavigationTabIndex(java.lang.String tab_group_tree)
getNavigationTabIndex in interface NavigationViewtab_group_tree - Name of NavigationTab for which the index is to be returned.
GroupView.TAB_GROUP_TREE,
SearchView.TAB_SEARCHpublic void showNavigationTab(int tabIndex)
showNavigationTab in interface NavigationViewtabIndex - Index of navigation tab to select and display.
|
i-net Clear Reports | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||