class ObjectBrowser
extends Object
A little GUI to show some of the Inspector capabilities.
Starting this script opens the ObjectBrowser on "some String".
Use it in groovysh or groovyConsole to inspect your object of interest with:
ObjectBrowser.inspect(myObject)
.
| Type | Name and description |
|---|---|
Object |
arrayTableTable showing array contents. |
Object |
cardsCard container holding each inspected object view. |
Object |
collectionTableTable showing collection contents. |
Object |
fieldTableTable showing property and field data. |
Object |
frameTop-level browser window. |
Object |
inspectorInspector backing the currently displayed object. |
Object |
mapTableTable showing map entries. |
Object |
mbMenu bar attached to the browser window. |
Object |
methodTableTable showing methods and meta-methods. |
String |
pathBreadcrumb text describing the current inspection path. |
int |
pathCountNumber of path cards created so far. |
Object |
pathMenuMenu listing visited inspection paths. |
Object |
swingSwing builder used to create browser UI components. |
Object |
trackerTracks the currently selected inspection card. |
| Constructor and description |
|---|
ObjectBrowser() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
aboutAction(EventObject evt)Displays the about dialog for the object browser. |
|
void |
addSorter(Object table)Adds column sorting support to the supplied table. |
|
void |
copyAction(Object table, MouseEvent me, EventObject evt)Copies the tooltip text for the clicked table cell to the clipboard. |
|
static void |
inspect(Object objectUnderInspection, String path)Opens an object browser for the supplied object. |
|
void |
inspectAlso(Object objectUnderInspection, String path)Adds another inspected object as a new card in the current window. |
|
void |
launch(Object table, Object valueCol, boolean newWindow, Object pathClosure)Opens the selected table value in this window or a new window. |
|
void |
launchAction(Object table, Object valueCol, boolean newWindow, Object pathClosure, EventObject evt)Delegates popup-menu browsing to launch. |
|
static void |
main(Object args)Launches the browser against a sample string. |
|
Object |
mouseListener(int valueCol, Closure pathClosure)Creates a mouse listener that can browse or copy the selected table row. |
|
void |
run()Builds and shows the object browser window. |
|
void |
show()Shows the card for the current tracker position. |
|
void |
showAction(int idx, EventObject evt)Switches the visible inspection card to the supplied index. |
|
void |
usageAction(EventObject evt)Displays usage help for the object browser. |
Table showing array contents.
Card container holding each inspected object view.
Table showing collection contents.
Table showing property and field data.
Top-level browser window.
Inspector backing the currently displayed object.
Table showing map entries.
Menu bar attached to the browser window.
Table showing methods and meta-methods.
Breadcrumb text describing the current inspection path.
Number of path cards created so far.
Menu listing visited inspection paths.
Swing builder used to create browser UI components.
Tracks the currently selected inspection card.
Displays the about dialog for the object browser.
Adds column sorting support to the supplied table.
Copies the tooltip text for the clicked table cell to the clipboard.
Opens an object browser for the supplied object.
Adds another inspected object as a new card in the current window.
Opens the selected table value in this window or a new window.
Delegates popup-menu browsing to launch.
Launches the browser against a sample string.
Creates a mouse listener that can browse or copy the selected table row.
Builds and shows the object browser window.
Shows the card for the current tracker position.
Switches the visible inspection card to the supplied index.
Displays usage help for the object browser.
Copyright © 2003-2026 The Apache Software Foundation. All rights reserved.