|
AdobeBridgeCS5SDK | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--BasicExtensionHandler
Demonstrates a basic implementation of a node-handling extension, in which the model is read-only.
Shows how to implement an ExtensionHandler and ExtensionModel, using two supporting classes, SDKSystem and SDKNode.
The main function, run(), creates several nodes of the new type, and one manager object. It stores the node-identifying prefix and root node in the manager object.
The function creates the ExtensionHandler object, whose definition includes the 'makeModel()' method, which Bridge uses to create the ExtensionModel object at node-display time. The function registers the ExtensionHandler, associating it with the node-identifying prefix.
These nodes have no real capabilities, so the hierarchy is read-only.
See the Bridge JavaScript Guide for more details of node-handling mechanisms
you can implement.
See:
Field Summary | |
String |
requiredContext
The context in which this sample can run. |
Constructor Summary | |
BasicExtensionHandler()
|
Method Summary | |
Boolean
|
canRun()
Determines whether sample can be run given current context. |
Object
|
initModel(behModel, sys)
Initialize the model and define the methods that this model supports |
Boolean
|
run()
Functional part of this sample, creates several nodes of the new type, and one manager object, which stores the node-identifying prefix and root node. |
Field Detail |
String requiredContext
Constructor Detail |
BasicExtensionHandler()
Method Detail |
Boolean canRun()
Object initModel(behModel, sys)
behModel
- The model for the handled nodes
sys
- The manager object for the handled nodes
Boolean run()
Creates the ExtensionHandler object, whose definition includes the 'makeModel()' method, which Bridge uses to create the ExtensionModel object at node-display time.
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 |