Klasse SwingNavigationView

Alle implementierten Schnittstellen:
NavigationView, ViewerComponent, ImageObserver, MenuContainer, Serializable, Accessible, SwingConstants

public class SwingNavigationView extends JTabbedPane implements NavigationView
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.
Seit:
7.0
Siehe auch:
  • Methodendetails

    • reload

      public void reload()
      Reloads the data underlying this navigation view and renews the display with the new data. Reload will be called whenever the ReportView is reloaded in order to prevent two different states between the ReportView and the NavigationView. It will be passed on to all navigation tabs in this navigation view.
      Angegeben von:
      reload in Schnittstelle NavigationView
      Seit:
      7.0
    • showError

      public void showError(Throwable th)
      Called when any error occurs within the navigation view
      Angegeben von:
      showError in Schnittstelle NavigationView
      Parameter:
      th - Exception which has occurred.
      Seit:
      7.0
    • getReportData

      public RenderData getReportData()
      Returns the RenderData object of this NavigationView, that is, the source of the report data
      Angegeben von:
      getReportData in Schnittstelle NavigationView
      Gibt zurück:
      The RenderData object of this NavigationView, that is, the source of the report data
      Seit:
      7.0
    • addNavigationTab

      public void addNavigationTab(String title, NavigationTab tab)
      Add a new NavigationTab to this NavigationView with a certain title. This allows you to create your own NavigationTab and add it to the NavigationView.
      Angegeben von:
      addNavigationTab in Schnittstelle NavigationView
      Parameter:
      title - Title the navigation tab is to have
      tab - NavigationTab to add to the navigation view.
      Seit:
      7.0
    • getNavigationTab

      public 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. The maximum allowed index is getNavigationTabsCount()-1.
      Angegeben von:
      getNavigationTab in Schnittstelle NavigationView
      Parameter:
      index - Index of NavigationTab to return, 0-based
      Gibt zurück:
      NavigationTab at this index
      Seit:
      7.0
    • removeNavigationTab

      public void removeNavigationTab(int index)
      Removes the navigation tab at the specified index and causes the navigation view to be refreshed without this navigation tab. The maximum allowed index is getNavigationTabsCount()-1.
      Angegeben von:
      removeNavigationTab in Schnittstelle NavigationView
      Parameter:
      index - Index of navigation tab to remove
      Seit:
      7.0
    • getNavigationTabsCount

      public 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. That is, to iterate through all navigation tabs, example code would be:

      int count = getNavigationTabsCount();
      for (int i=0; i < count; i++) {
        NavigationTab tab = getNavigationTab(i);
        ...
      }

      Angegeben von:
      getNavigationTabsCount in Schnittstelle NavigationView
      Gibt zurück:
      The amount of navigation tabs in the navigation view.
      Seit:
      7.0
    • isVisible

      public boolean isVisible()
      Returns whether this navigation view is set to be visible or not
      Angegeben von:
      isVisible in Schnittstelle NavigationView
      Setzt außer Kraft:
      isVisible in Klasse Component
      Gibt zurück:
      Whether this navigation view is set to be visible or not
      Seit:
      7.0
    • setVisible

      public void setVisible(boolean visible)
      Shows or hides this navigation view.
      Angegeben von:
      setVisible in Schnittstelle NavigationView
      Setzt außer Kraft:
      setVisible in Klasse JComponent
      Parameter:
      visible - Show this navigation view or not
      Seit:
      7.0
    • getComponent

      public 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.
      For example, if you have a "ReportViewer" and would like to add it to your own JFrame, simply call: myFrame.add(viewer.getComponent())
      Angegeben von:
      getComponent in Schnittstelle ViewerComponent
      Gibt zurück:
      Actual AWT component of this object.
      Seit:
      7.0
    • getNavigationTabIndex

      public int getNavigationTabIndex(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. See the constants for examples to use to retrieve the search or group views
      Angegeben von:
      getNavigationTabIndex in Schnittstelle NavigationView
      Parameter:
      tab_group_tree - Name of NavigationTab for which the index is to be returned.
      Gibt zurück:
      NavigationTab's index
      Seit:
      7.0
      Siehe auch:
      • GroupView.TAB_GROUP_TREE
      • SearchView.TAB_SEARCH
    • showNavigationTab

      public void showNavigationTab(int tabIndex)
      Causes the navigation tab at the given index to be selected and shown for this navigation view. The index for any navigation tab can be retrieved using the method getNavigationTabIndex(String).
      Angegeben von:
      showNavigationTab in Schnittstelle NavigationView
      Parameter:
      tabIndex - Index of navigation tab to select and display.
      Seit:
      7.0