Package snap.viewx

Class DefaultConsole

All Implemented Interfaces:
PropChange.DoChange, Console
Direct Known Subclasses:
JMDViewer.JMDRunConsole

public class DefaultConsole extends ViewOwner implements Console
This class is a real implementation of Console.
  • Constructor Details

    • DefaultConsole

      public DefaultConsole()
      Constructor.
  • Method Details

    • show

      public void show(Object anObj)
      Shows the given object to user.
      Specified by:
      show in interface Console
    • showImpl

      protected void showImpl(Object anObj)
      Called by shell when there is output.
    • resetConsole

      public void resetConsole()
      Resets the console.
      Specified by:
      resetConsole in interface Console
    • getItemCount

      public int getItemCount()
      Returns the number of items on the console.
      Specified by:
      getItemCount in interface Console
    • getConsoleView

      public View getConsoleView()
      Returns the console view.
      Specified by:
      getConsoleView in interface Console
    • getViewForObject

      protected View getViewForObject(Object aValue)
      Creates a view for given object.
    • isSimpleValue

      protected boolean isSimpleValue(Object anObj)
      Returns whether given value is simple (String, Number, Boolean, Character, Date).
    • createUI

      protected View createUI()
      Create UI.
      Overrides:
      createUI in class ViewOwner
    • getShared

      protected static Console getShared()
      Returns the shared console.
    • setShared

      protected static void setShared(Console aConsole)
      Sets the shared console.
    • getConsoleCreatedHandler

      protected static Runnable getConsoleCreatedHandler()
      Returns the console created handler.
    • setConsoleCreatedHandler

      protected static void setConsoleCreatedHandler(Runnable aRun)
      Sets the console created handler.
    • getConsoleClassLoader

      public static ClassLoader getConsoleClassLoader()
      Returns the console to be used by console.
    • setConsoleClassLoader

      public static void setConsoleClassLoader(ClassLoader aClassLoader)
      Sets the console to be used by console.