Package snap.viewx
Class DefaultConsole
java.lang.Object
snap.props.PropObject
snap.view.ViewOwner
snap.viewx.DefaultConsole
- All Implemented Interfaces:
PropChange.DoChange
,Console
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
-
Method Summary
Modifier and TypeMethodDescriptionprotected View
createUI()
Create UI.snap.viewx.ConsoleView
Returns the console view.int
Returns the number of items on the console.protected static Console
Returns the shared console.void
Resets the console.protected static void
Sets the console created handler.protected static void
Sets the shared console.void
Shows the given object to user.Methods inherited from class snap.view.ViewOwner
addKeyActionFilter, addKeyActionHandler, addViewEventHandler, beep, cancelReset, createUIForClass, dispatchEventToOwner, enableEvents, 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, processPropChange, removeDeepChangeListener, removePropChangeListener, removePropChangeListener, setPropsString, setPropValue, setPropValues, toString, toStringProps
-
Constructor Details
-
DefaultConsole
public DefaultConsole()Constructor.
-
-
Method Details
-
show
Shows the given object to user. -
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
public snap.viewx.ConsoleView getConsoleView()Returns the console view.- Specified by:
getConsoleView
in interfaceConsole
-
createUI
Create UI. -
setConsoleCreatedHandler
Sets the console created handler.
-