Class PageTView

All Implemented Interfaces:
ImageObserver, MenuContainer, PropertyChangeListener, Serializable, EventListener, Accessible, OSPRuntime.Disposable

public class PageTView extends TView
This displays html or plain text in one or more tabs.
Author:
Douglas Brown
See Also:
  • Field Details

    • PAGEVIEW_ICON

      protected static final Icon PAGEVIEW_ICON
    • tabs

      protected ArrayList<PageTView.TabView> tabs
    • tabbedPane

      protected JTabbedPane tabbedPane
    • pageButton

      protected JButton pageButton
    • nameDialog

      protected JDialog nameDialog
    • nameField

      protected JTextField nameField
    • noTab

      protected JPanel noTab
    • noTabLabel

      protected JLabel noTabLabel
    • tabTitleLabel

      protected JLabel tabTitleLabel
    • filler

      protected Box.Filler filler
    • titleBorder

      protected Border titleBorder
    • locked

      protected boolean locked
  • Constructor Details

    • PageTView

      protected PageTView(TrackerPanel panel)
      Constructs a TextTView for the specified tracker panel.
      Parameters:
      panel - the tracker panel
  • Method Details

    • refresh

      public void refresh()
      Refreshes this view.
      Specified by:
      refresh in class TView
    • init

      public void init()
      Initializes this view
      Specified by:
      init in class TView
    • cleanup

      public void cleanup()
      Cleans up this view
      Specified by:
      cleanup in class TView
    • dispose

      public void dispose()
      Disposes of the view
      Specified by:
      dispose in interface OSPRuntime.Disposable
      Overrides:
      dispose in class TView
    • getTrackerPanel

      public TrackerPanel getTrackerPanel()
      Gets the tracker panel containing the tracks
      Specified by:
      getTrackerPanel in class TView
      Returns:
      the tracker panel
    • getViewName

      public String getViewName()
      Gets the name of the view
      Specified by:
      getViewName in class TView
      Returns:
      the name of this view
    • getViewIcon

      public Icon getViewIcon()
      Gets the icon for this view
      Specified by:
      getViewIcon in class TView
      Returns:
      the icon
    • getViewType

      public int getViewType()
      Gets the type of view
      Specified by:
      getViewType in class TView
      Returns:
      one of the defined types
    • isCustomState

      public boolean isCustomState()
      Returns true if this view is in a custom state.
      Overrides:
      isCustomState in class TView
      Returns:
      true if in a custom state, false if in the default state
    • addTab

      public void addTab(PageTView.TabView tab)
      Adds a tab to the tabbed pane.
      Parameters:
      tab - the tab to add
    • removeTab

      public void removeTab(PageTView.TabView tab)
      Removes a tab from the tabbed pane.
      Parameters:
      tab - the tab to remove
    • renameTab

      public void renameTab(PageTView.TabView tab)
      Renames a tab.
      Parameters:
      tab - the tab to rename
    • getSelectedTab

      public PageTView.TabView getSelectedTab()
      Gets the selected tab.
      Returns:
      the tab
    • setSelectedTab

      public void setSelectedTab(PageTView.TabView tab)
      Sets the selected tab.
      Parameters:
      tab - the tab
    • propertyChange

      public void propertyChange(PropertyChangeEvent e)
      Responds to property change events.
      Parameters:
      e - the property change event
    • createGUI

      protected void createGUI()
      Creates the GUI.
    • refreshTabs

      protected void refreshTabs()
      Refreshes all tabs.
    • refreshTitle

      protected void refreshTitle()
      Refreshes the title bar.
    • getPopup

      protected JPopupMenu getPopup(PageTView.TabView tab)
      Gets the popup menu for a specified tab.
      Parameters:
      tab - the tab
      Returns:
      the popup menu
    • getNameDialog

      protected JDialog getNameDialog()
    • getLoader

      public static XML.ObjectLoader getLoader()
      Returns an XML.ObjectLoader to save/load data for the TextTView class.
      Returns:
      the XML.ObjectLoader