BookContent
A document added to a book.
Go to Property Listing | Method Listing
Methods:
addEventListener, extractLabel, getElements, insertLabel, move, preflight, remove, removeEventListener, replace, synchronize, toSource, toSpecifier
Objects:
BookContentStatus, Boolean, Date, EventListeners, Events, File, Number, Object, String
Property Listing
Property |
Type |
Access |
Description |
---|---|---|---|
readonly |
The date and time the BookContent was created. |
||
readonly |
The page range of the book content object within the book. |
||
readonly |
A collection of event listeners. |
||
readonly |
A collection of events. |
||
readonly |
The full path to the file. |
||
readonly |
The full path to the BookContent, including the name of the BookContent. |
||
readonly |
The unique ID of the BookContent. |
||
readonly |
The index of the BookContent within its containing object. |
||
readonly |
Returns true if the object specifier resolves to valid objects. |
||
read/write |
A property that can be set to any string. |
||
readonly |
The name of the BookContent. |
||
readonly |
The parent of the BookContent (a Book). |
||
read/write |
A property that allows setting of several properties at the same time. |
||
readonly |
The size of the BookContent file. |
||
readonly |
The status of the book content object file. |
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) |
String extractLabel (key:String)
Gets the label value associated with the specified key.
Parameter |
Type |
Description |
---|---|---|
key |
The key. |
BookContent getElements ()
Resolves the object specifier, creating an array of object references.
undefined insertLabel (key:String, value:String)
Sets the label to the value associated with the specified key.
BookContent move ([to:LocationOptions=LocationOptions], reference:BookContent)
Moves the book content object.
Parameter |
Type |
Description |
---|---|---|
to |
The location relative to the reference object or within the book. (Optional) (default: LocationOptions.AT_END) |
|
reference |
The reference object. Note: Required when the to parameter specifies before or after. (Optional) |
undefined preflight (to:File, [autoOpen:Boolean=Boolean])
Preflight a book content object and optionally save the resulting report.
Parameter |
Type |
Description |
---|---|---|
to |
The preflight report to save to. (Optional) |
|
autoOpen |
If true, automatically open the report after creation. (Optional) (default: false) |
undefined remove ()
Deletes the BookContent.
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) |
BookContent replace (using:File)
Replaces a book content object with a new file. Note: If the new file replaces the current style source document, the new file becomes the style source document.
Parameter |
Type |
Description |
---|---|---|
using |
The full path name of the new book content object. |
undefined synchronize ()
Matches the formatting of the book content object to the style source document.
String toSource ()
Generates a string which, if executed, will return the BookContent.
String toSpecifier ()
Retrieves the object specifier.
Object of
Book.styleSourceDocument
Event.parent
EventListener.parent
MutationEvent.parent