|
AdobeBridgeCS5SDK | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--CustomInfosetExtensionHandler
Demonstrates a basic implementation of a node-handling extension with a custom Infoset.
Shows how to implement an ExtensionHandler and ExtensionModel with a custom Infoset object, using two supporting classes, SDKSystem and SDKNode.
This sample creates the ExtensionHandler object, whose definition includes the 'makeModel()' method, which Adobe Bridge uses to create the ExtensionModel object at node-display time. The function registers the ExtensionHandler, associating it with the node-identifying prefix.
The sample creates a custom Infoset object and its members, which contain different data types. The new Infoset is registered with its associated handler. The data for each handled node is stored by this Infoset object.
The sample creates a TabbedPalette named 'SDK: Custom Infoset Data' in which to display the custom data when a handled node is selected. The palette allows you to modify the values in two of the member fields of the custom Infoset.
The main function creates several nodes of the new type, and one manager object
that stores the node-identifying prefix and root node.
See the Adobe Bridge CS5 JavaScript Guide for more details of custom Infosets.
See:
Field Summary | |
String |
buttonIcon
The image for the button icon |
String |
requiredContext
The context in which this sample can run. |
Constructor Summary | |
CustomInfosetExtensionHandler()
|
Method Summary | |
Boolean
|
canRun()
Determines whether sample can be run given current context. |
Object
|
initModel(ciModel, sys)
Initialize the model and define the methods that this model supports |
Boolean
|
run()
Functional part of this sample, creates the ExtensionHandler object, whose definition includes the 'makeModel()' method, which Bridge uses to create the ExtensionModel object at node-display time. |
Field Detail |
String buttonIcon
String requiredContext
Constructor Detail |
CustomInfosetExtensionHandler()
Method Detail |
Boolean canRun()
Object initModel(ciModel, sys)
ciModel
- The model for the handled nodes
sys
- The manager object for the handled nodes
Boolean run()
Creates the custom Infoset and associated data.
Creates several nodes of the new type, and one manager object, which stores the node-identifying prefix and root node.
Registers the ExtensionHandler, associating it with the node-identifying prefix.
|
AdobeBridgeCS5SDK | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |