Class SnpCreateThumbInspectorPanel
Object
|
+--SnpCreateThumbInspectorPanel
- class
SnpCreateThumbInspectorPanel
Shows how to create and display an object-inspector panel using the InpsectorPanel object,
with a thumbnail-type subpanel, a ThumbnailPanelette object.
Usage
- Run the snippet in the ExtendScript Toolkit (see Readme.txt), setting Bridge CS5 as the target application.
- Select a thumbnail in the Bridge Content pane
- Open the Inspector Panel if it is not already open.
- You should see information displayed about the thumbnail selected
Description
Shows how to create an object-inspector panel using the InpsectorPanel object,
with a thumbnail-type subpanel defined by a ThumbnailPanelette object.
The subpanel demonstrates ways to use panelette markup syntax to retrieve
dynamic text values from the thumbnail's core node data, and also generates
a text value by calling a thumbnail method at display time.
After it is registered, the panel appears in all menus that list available palettes.
It is displayed in its default position at the top left of the browser, when
the Inspector is checked in the Window menu. Drag it to another location or change
the relative sizes of palette columns to see how the text is displayed.
The key-value pairs used to populate the ThumbnailPanelette use both
string literals and panelette markup to specify dynamic values.
Defined in SnpCreateThumbInspectorPanel.jsx
Method Summary |
boolean
|
canRun()
Determines whether snippet can be run given current context.
|
Boolean
|
run()
Functional part of this snippet.
|
<static> String
|
getMetaInfo(thumb)
Helper function retrieves certain metadata associated with a particular thumbnail
|
panelRef
Object panelRef
requiredContext
String requiredContext
The context in which this snippet can run.
SnpCreateThumbInspectorPanel
SnpCreateThumbInspectorPanel()
canRun
boolean canRun()
Determines whether snippet can be run given current context. The snippet
fails if these preconditions are not met:
Returns:
True if this snippet can run, false otherwise
run
Boolean run()
Functional part of this snippet.
Creates InpsectorPanel and ThumbnailPanelette with various dynamic text values.
Registers the panelette with the panel, and registers the panel with the application.
Returns:
True if the snippet ran as expected, false otherwise.
getMetaInfo
<static> String getMetaInfo(thumb)
Helper function retrieves certain metadata associated with a particular thumbnail
Returns:
The metadata values, if any
http://www.adobe.com/devnet/bridge
Documentation generated by
JSDoc on Tue Apr 27 10:21:34 2010