Package snap.viewx
Class DefaultConsole
java.lang.Object
snap.props.PropObject
snap.view.ViewOwner
snap.viewx.DefaultConsole
- All Implemented Interfaces:
PropChange.DoChange
,Console
- Direct Known Subclasses:
JMDViewer.JMDRunConsole
This class is a real implementation of Console.
-
Nested Class Summary
Nested classes/interfaces inherited from interface snap.viewx.Console
Console.Helper
-
Field Summary
Fields inherited from class snap.view.ViewOwner
Action, DragDrop, DragEnter, DragEvents, DragExit, DragGesture, DragOver, KeyEvents, KeyPress, KeyRelease, KeyType, MouseDrag, MouseEnter, MouseEvents, MouseExit, MouseMove, MousePress, MouseRelease, Showing_Prop, WinClose
Fields inherited from class snap.props.PropObject
_pcs, EMPTY_OBJECT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected View
createUI()
Create UI.static ClassLoader
Returns the console to be used by console.protected static Runnable
Returns the console created handler.Returns the console view.int
Returns the number of items on the console.protected static Console
Returns the shared console.protected View
getViewForObject
(Object aValue) Creates a view for given object.protected boolean
isSimpleValue
(Object anObj) Returns whether given value is simple (String, Number, Boolean, Character, Date).void
Resets the console.static void
setConsoleClassLoader
(ClassLoader aClassLoader) Sets the console to be used by console.protected static void
Sets the console created handler.protected static void
Sets the shared console.void
Shows the given object to user.protected void
Called by shell when there is output.Methods inherited from class snap.view.ViewOwner
addKeyActionFilter, addKeyActionHandler, addViewEventHandler, beep, cancelReset, createUIForClass, dispatchEventToOwner, fireActionEventForObject, getEnv, getFirstFocus, getImage, getNative, getToggleGroup, getUI, getUI, getUISource, getView, getView, getViewBoolValue, getViewFloatValue, getViewIntValue, getViewItems, getViewSelIndex, getViewSelItem, getViewStringValue, getViewText, getViewValue, getWindow, initShowing, initUI, initWindow, invokeResetUI, invokeRespondUI, isEventThread, isSendEventDisabled, isShowing, isUISet, isViewDisabled, isViewEnabled, isViewVisible, isWindowSet, isWindowVisible, requestFocus, resetLater, resetUI, respondUI, runDelayed, runLater, setFirstFocus, setSendEventDisabled, setShowing, setViewDisabled, setViewEnabled, setViewItems, setViewItems, setViewSelIndex, setViewSelItem, setViewText, setViewValue, setViewVisible, setWindowVisible
Methods inherited from class snap.props.PropObject
addDeepChangeListener, addPropChangeListener, addPropChangeListener, clone, firePropChange, firePropChange, firePropChange, getPropDefault, getPropForName, getPropParent, getPropSet, getPropsForArchival, getPropsForArchivalExtra, getPropsString, getPropValue, initProps, isPropDefault, processArchivedNode, processPropChange, processUnarchivedNode, removeDeepChangeListener, removePropChangeListener, removePropChangeListener, setPropsString, setPropValue, setPropValues, toString, toStringProps
-
Constructor Details
-
DefaultConsole
public DefaultConsole()Constructor.
-
-
Method Details
-
show
Shows the given object to user. -
showImpl
Called by shell when there is output. -
resetConsole
public void resetConsole()Resets the console.- Specified by:
resetConsole
in interfaceConsole
-
getItemCount
public int getItemCount()Returns the number of items on the console.- Specified by:
getItemCount
in interfaceConsole
-
getConsoleView
Returns the console view.- Specified by:
getConsoleView
in interfaceConsole
-
getViewForObject
Creates a view for given object. -
isSimpleValue
Returns whether given value is simple (String, Number, Boolean, Character, Date). -
createUI
Create UI. -
getConsoleCreatedHandler
Returns the console created handler. -
setConsoleCreatedHandler
Sets the console created handler. -
getConsoleClassLoader
Returns the console to be used by console. -
setConsoleClassLoader
Sets the console to be used by console.
-