ContentPlacerObject
Represents the content placer object.
Go to Property Listing | Method Listing
Methods:
addEventListener, getElements, load, removeEventListener, toSource, toSpecifier
Objects:
Hierarchy:
Superclass: Preference
Class: ContentPlacerObject
Property Listing
Property |
Type |
Access |
Description |
---|---|---|---|
readonly |
A collection of event listeners. |
||
readonly |
A collection of events. |
||
readonly |
Returns true if the object specifier resolves to valid objects. |
||
readonly |
Whether the Content Placer is currently loaded with content for placing. |
||
readonly |
The parent of the ContentPlacerObject (a Application). |
||
read/write |
A property that allows setting of several properties at the same time. |
Method Listing
EventListener addEventListener (eventType:String, handler:Varies File JavaScriptFunction, [captures:Boolean=Boolean])
Adds an event listener.
Parameter |
Type |
Description |
---|---|---|
eventType |
The event type. |
|
handler |
JavaScriptFunction |
The event handler. Can accept: File or JavaScript Function. |
captures |
This parameter is obsolete. (Optional) (default: false) |
ContentPlacerObject getElements ()
Resolves the object specifier, creating an array of object references.
undefined load (pageItems:Array of PageItem, [linkPageItems:Boolean=Boolean], [linkStories:Boolean=Boolean], [mapStyles:Boolean=Boolean], [showingOptions:Boolean=Boolean])
Load the Content Placer with one or more objects.
Parameter |
Type |
Description |
---|---|---|
pageItems |
One or more page items to place or load |
|
linkPageItems |
Whether to link pageItems in content placer (if true it will override link stories value) (Optional) (default: false) |
|
linkStories |
Whether to link stories in content placer (only applicable for single story, pageItem links will also be created in case of more than one item) (Optional) (default: false) |
|
mapStyles |
Whether to map styles in content placer (Optional) (default: false) |
|
showingOptions |
Whether to display the link options dialog (Optional) (default: false) |
Boolean removeEventListener (eventType:String, handler:Varies File JavaScriptFunction, [captures:Boolean=Boolean])
Removes the event listener.
Parameter |
Type |
Description |
---|---|---|
eventType |
The registered event type. |
|
handler |
JavaScriptFunction |
The registered event handler. Can accept: File or JavaScript Function. |
captures |
This parameter is obsolete. (Optional) (default: false) |
String toSource ()
Generates a string which, if executed, will return the ContentPlacerObject.
String toSpecifier ()
Retrieves the object specifier.
Object of
Application.contentPlacer
Event.parent
EventListener.parent
MutationEvent.parent