Package snap.viewx

Class DevPane

All Implemented Interfaces:
PropChange.DoChange

public class DevPane extends ViewOwner
A view to allow inspection of View hierarchy.
  • Field Details

    • _splitView

      protected SplitView _splitView
    • HIGHLIGHT_BORDER_STROKE

      protected static Stroke HIGHLIGHT_BORDER_STROKE
    • HIGHLIGHT_BORDER_COLOR

      protected static Color HIGHLIGHT_BORDER_COLOR
  • Constructor Details

    • DevPane

      public DevPane(View aView)
      Constructor.
  • Method Details

    • getContent

      public View getContent()
      Returns the real content.
    • showTabForClass

      public void showTabForClass(Class<?> aClass)
      Shows the tab for given class.
    • getPaneForClass

      public <T extends ViewOwner> T getPaneForClass(Class<T> aClass)
      Returns the pane for given class.
    • installInWindow

      public void installInWindow()
      Install in rootView
    • removeFromWindow

      public void removeFromWindow()
      Remove from window.
    • createUI

      protected View createUI()
      CreateUI.
      Overrides:
      createUI in class ViewOwner
    • initUI

      protected void initUI()
      Init UI.
      Overrides:
      initUI in class ViewOwner
    • respondUI

      protected void respondUI(ViewEvent anEvent)
      RespondUI.
      Overrides:
      respondUI in class ViewOwner
    • initShowing

      protected void initShowing()
      When showing, kick off showTabView().
      Overrides:
      initShowing in class ViewOwner
    • getDevPane

      public static DevPane getDevPane(View aView)
      Returns the DevPane for a given view (really, its RootView).
    • isDevPaneShowing

      public static boolean isDevPaneShowing(View aView)
      Returns whether DevPane is showing for view.
    • setDevPaneShowing

      public static void setDevPaneShowing(View aView, boolean aValue)
      Sets a DevPane visible for view.
    • toggleDevPaneShowing

      public static void toggleDevPaneShowing(View aView)
      Toggles DevPane showing.
    • showException

      public static void showException(Throwable anException)
      Sets a DevPane visible for view.
    • getDefaultDevPaneView

      public static View getDefaultDevPaneView()
      Returns the current default dev pane view.