Class View

All Implemented Interfaces:
ComponentListener, KeyListener, MouseListener, MouseMotionListener, MouseWheelListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible
Direct Known Subclasses:
EditorView, ExploreView, FolderView, InfoView, MapView, PlotView, TableView, TextView, TreeView

public abstract class View extends BaseXPanel
View observer pattern. All inheriting classes are attached to the views array
Author:
BaseX Team 2005-21, BSD License, Christian Gruen
See Also:
  • Constructor Details

    • View

      protected View(String name, ViewNotifier notifier)
      Registers the specified view.
      Parameters:
      name - name of view
      notifier - view notifier
  • Method Details

    • refreshInit

      public abstract void refreshInit()
      Called when the data reference has changed.
    • refreshFocus

      public abstract void refreshFocus()
      Called when a new focus has been chosen.
    • refreshMark

      public abstract void refreshMark()
      Called when a context set has been marked.
    • refreshContext

      public abstract void refreshContext(boolean more, boolean quick)
      Called when a new context set has been chosen.
      Parameters:
      more - show more details
      quick - perform a quick context switch
    • refreshLayout

      public abstract void refreshLayout()
      Called when GUI design has changed.
    • refreshUpdate

      public abstract void refreshUpdate()
      Called when updates have been done in the data structure.
    • visible

      public abstract boolean visible()
      Tests if this view is currently marked as visible.
      Returns:
      result of check
    • visible

      public abstract void visible(boolean v)
      Sets a flag denoting the visibility of the view.
      Parameters:
      v - visibility flag
    • db

      protected abstract boolean db()
      Tests if this view relies on a database instance.
      Returns:
      result of check
    • mouseEntered

      public void mouseEntered(MouseEvent e)
      Specified by:
      mouseEntered in interface MouseListener
      Overrides:
      mouseEntered in class BaseXPanel
    • mouseExited

      public void mouseExited(MouseEvent e)
      Specified by:
      mouseExited in interface MouseListener
      Overrides:
      mouseExited in class BaseXPanel
    • mousePressed

      public void mousePressed(MouseEvent e)
      Specified by:
      mousePressed in interface MouseListener
      Overrides:
      mousePressed in class BaseXPanel
    • keyPressed

      public void keyPressed(KeyEvent e)
      Specified by:
      keyPressed in interface KeyListener
      Overrides:
      keyPressed in class BaseXPanel
    • toString

      public final String toString()
      Overrides:
      toString in class Component