Package snap.viewx
Class DevPane
java.lang.Object
snap.props.PropObject
snap.view.ViewOwner
snap.viewx.DevPane
- All Implemented Interfaces:
PropChange.DoChange
A view to allow inspection of View hierarchy.
-
Field Summary
Modifier and TypeFieldDescriptionprotected SplitView
protected static Color
protected static Stroke
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()
CreateUI.Returns the real content.static View
Returns the current default dev pane view.static DevPane
getDevPane
(View aView) Returns the DevPane for a given view (really, its RootView).<T extends ViewOwner>
TgetPaneForClass
(Class<T> aClass) Returns the pane for given class.protected void
When showing, kick off showTabView().protected void
initUI()
Init UI.void
Install in rootViewstatic boolean
isDevPaneShowing
(View aView) Returns whether DevPane is showing for view.void
Remove from window.protected void
RespondUI.static void
setDevPaneShowing
(View aView, boolean aValue) Sets a DevPane visible for view.static void
showException
(Throwable anException) Sets a DevPane visible for view.void
showTabForClass
(Class<?> aClass) Shows the tab for given class.static void
toggleDevPaneShowing
(View aView) Toggles DevPane showing.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, initWindow, invokeResetUI, invokeRespondUI, isEventThread, isSendEventDisabled, isShowing, isUISet, isViewDisabled, isViewEnabled, isViewVisible, isWindowSet, isWindowVisible, requestFocus, resetLater, resetUI, 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
-
Field Details
-
_splitView
-
HIGHLIGHT_BORDER_STROKE
-
HIGHLIGHT_BORDER_COLOR
-
-
Constructor Details
-
DevPane
Constructor.
-
-
Method Details
-
getContent
Returns the real content. -
showTabForClass
Shows the tab for given class. -
getPaneForClass
Returns the pane for given class. -
installInWindow
public void installInWindow()Install in rootView -
removeFromWindow
public void removeFromWindow()Remove from window. -
createUI
CreateUI. -
initUI
protected void initUI()Init UI. -
respondUI
RespondUI. -
initShowing
protected void initShowing()When showing, kick off showTabView().- Overrides:
initShowing
in classViewOwner
-
getDevPane
Returns the DevPane for a given view (really, its RootView). -
isDevPaneShowing
Returns whether DevPane is showing for view. -
setDevPaneShowing
Sets a DevPane visible for view. -
toggleDevPaneShowing
Toggles DevPane showing. -
showException
Sets a DevPane visible for view. -
getDefaultDevPaneView
Returns the current default dev pane view.
-