Package snap.viewx

Class DefaultConsole

All Implemented Interfaces:
PropChange.DoChange, Console

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
    • 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 snap.viewx.ConsoleView getConsoleView()
      Returns the console view.
      Specified by:
      getConsoleView in interface Console
    • 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.
    • setConsoleCreatedHandler

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