Class TextView

All Implemented Interfaces:
ComponentListener, KeyListener, MouseListener, MouseMotionListener, MouseWheelListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible

public final class TextView extends View
This class offers a fast text view, using the TextPanel class.
Author:
BaseX Team 2005-21, BSD License, Christian Gruen
See Also:
  • Constructor Details

    • TextView

      public TextView(ViewNotifier notifier)
      Default constructor.
      Parameters:
      notifier - view notifier
  • Method Details

    • refreshInit

      public void refreshInit()
      Description copied from class: View
      Called when the data reference has changed.
      Specified by:
      refreshInit in class View
    • refreshFocus

      public void refreshFocus()
      Description copied from class: View
      Called when a new focus has been chosen.
      Specified by:
      refreshFocus in class View
    • refreshMark

      public void refreshMark()
      Description copied from class: View
      Called when a context set has been marked.
      Specified by:
      refreshMark in class View
    • refreshContext

      public void refreshContext(boolean more, boolean quick)
      Description copied from class: View
      Called when a new context set has been chosen.
      Specified by:
      refreshContext in class View
      Parameters:
      more - show more details
      quick - perform a quick context switch
    • refreshLayout

      public void refreshLayout()
      Description copied from class: View
      Called when GUI design has changed.
      Specified by:
      refreshLayout in class View
    • refreshUpdate

      public void refreshUpdate()
      Description copied from class: View
      Called when updates have been done in the data structure.
      Specified by:
      refreshUpdate in class View
    • visible

      public boolean visible()
      Description copied from class: View
      Tests if this view is currently marked as visible.
      Specified by:
      visible in class View
      Returns:
      result of check
    • visible

      public void visible(boolean v)
      Description copied from class: View
      Sets a flag denoting the visibility of the view.
      Specified by:
      visible in class View
      Parameters:
      v - visibility flag
    • db

      protected boolean db()
      Description copied from class: View
      Tests if this view relies on a database instance.
      Specified by:
      db in class View
      Returns:
      result of check
    • cache

      public void cache(ArrayOutput out, Command command, Value result) throws QueryException
      Caches the output, or indicates that the query must be executed again in order to retrieve the full result.
      Parameters:
      out - cached output
      command - command
      result - result (can be null)
      Throws:
      QueryException - query exception
    • setText

      public void setText(ArrayOutput out, long results)
      Sets the output text.
      Parameters:
      out - cached output
      results - number of results