Class TableTView

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

public class TableTView extends TrackChooserTView
This JPanel is the only child of TViewChooser viewPanel. It presents a JTable selected from a dropdown list and maintains the JDialog for column choosing for that table. It does not maintain the JTable -- that is TableTrackView (a JScrollPane).
Author:
Douglas Brown
See Also:
  • Field Details

    • TABLEVIEW_ICON

      protected static final Icon TABLEVIEW_ICON
  • Constructor Details

    • TableTView

      public TableTView(TrackerPanel panel)
      Constructs a TableTView for the specified tracker panel.
      Parameters:
      panel - the tracker panel
  • Method Details

    • addNotify

      public void addNotify()
      We want to do this once, specifically as soon as we are attached through to the JFrame top ancestor.
      Overrides:
      addNotify in class JComponent
    • removeNotify

      public void removeNotify()
      ...and remove listener when we are detached.
      Overrides:
      removeNotify in class JComponent
    • getViewName

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

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

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

      public void refreshPopup(JPopupMenu popup)
      Description copied from class: TView
      Refreshes a popup menu by adding items to it
      Overrides:
      refreshPopup in class TView
      Parameters:
      popup - the popup to refresh
    • createTrackView

      protected TrackView createTrackView(TTrack track)
      Creates a view for the specified track
      Specified by:
      createTrackView in class TrackChooserTView
      Parameters:
      track - the track to be viewed
      Returns:
      the view of the track
    • refreshColumnsDialog

      protected void refreshColumnsDialog(TTrack track, boolean onlyIfVisible)
      Displays the dialog box for selecting data columns.
      Parameters:
      track - the track
    • propertyChange

      public void propertyChange(PropertyChangeEvent e)
      Responds to property change events. This listens for events TFrame.PROPERTY_TFRAME_TAB and "function" from FunctionTool.
      Specified by:
      propertyChange in interface PropertyChangeListener
      Overrides:
      propertyChange in class TrackChooserTView
      Parameters:
      e - the property change event
    • cleanup

      public void cleanup()
      Cleans up this view
      Overrides:
      cleanup in class TrackChooserTView
    • getLoader

      public static XML.ObjectLoader getLoader()
      Returns an XML.ObjectLoader to save and load object data.
      Returns:
      the XML.ObjectLoader
    • refreshMenus

      protected void refreshMenus()
      Description copied from class: TrackChooserTView
      Refreshes the menus.
      Specified by:
      refreshMenus in class TrackChooserTView
    • dispose

      public void dispose()
      Description copied from class: TrackChooserTView
      Disposes of the view
      Specified by:
      dispose in interface OSPRuntime.Disposable
      Overrides:
      dispose in class TrackChooserTView