Typefi element page item
Go to Property Listing | Method Listing
addEventListener, createAnchor, createAssociation, getElements, getFieldValue, removeAssociation, removeEventListener, resetAllToDefaults, setField, toSource, toSpecifier
AnchorPoint, Boolean, EventListeners, Events, Number, Object, String, TypefiElementAnchor, TypefiElementDefinition, TypefiElementInstance, TypefiElementType, TypefiElementVariantDefinition,
Property |
Type |
Access |
Description |
---|---|---|---|
readonly |
Element anchor |
||
read/write |
The anchor point to use in the element for the display of the line to the element anchor |
||
read/write |
Element definition object |
||
readonly |
A collection of event listeners. |
||
readonly |
A collection of events. |
||
readonly |
An optional external id string |
||
read/write |
A reference to a Typefi element instance |
||
read/write |
Is master |
||
readonly |
Returns true if the object specifier resolves to valid objects. |
||
readonly |
The element name |
||
readonly |
The parent of the TypefiElementPageItem (a TypefiPageItemSettings). |
||
read/write |
A property that allows setting of several properties at the same time. |
||
readonly |
The element type |
||
read/write |
Element variant definition object |
||
readonly |
Variant id |
||
readonly |
Variant name |
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) |
TypefiElementAnchor createAnchor (storyOffset:InsertionPoint)
Create a Typefi element anchor at the given position
Parameter |
Type |
Description |
---|---|---|
storyOffset |
The location within the story, specified as an insertion point |
undefined createAssociation (elementAnchor:Varies TypefiElementAnchor PageItem, [anchorPoint:AnchorPoint=AnchorPoint])
Create an association between this Typefi element page item and a Typefi element anchor
Parameter |
Type |
Description |
---|---|---|
elementAnchor |
The Typefi element anchor object. Can accept: TypefiElementAnchor or PageItem. |
|
anchorPoint |
The optional anchor point to use in the element for the display of the line to the element anchor (Optional) (default: AnchorPoint.CENTER_ANCHOR) |
TypefiElementPageItem getElements ()
Resolves the object specifier, creating an array of object references.
String getFieldValue (name:String)
Get the value of a field of TypefiElementPageItem
Parameter |
Type |
Description |
---|---|---|
name |
The name of the field |
undefined removeAssociation (elementAnchor:Varies TypefiElementAnchor PageItem)
Remove the association between this Typefi element page item and a Typefi element anchor
Parameter |
Type |
Description |
---|---|---|
elementAnchor |
The Typefi element anchor object. Can accept: TypefiElementAnchor or PageItem. (Optional) |
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) |
undefined resetAllToDefaults ()
Reset the Typefi specific data of TypefiElementPageItem to the default values
undefined setField (name:String, [value:Varies String LongInteger=Varies String LongInteger])
Set the value of a field of TypefiElementPageItem
Parameter |
Type |
Description |
---|---|---|
name |
The name of the field |
|
value |
LongInteger |
The value of the field as string or as integer. The empty string will recompute the value of a counter field! If not specified, the field value will be reset. Can accept: String or Long Integer. (Optional) (default: ) |
String toSource ()
Generates a string which, if executed, will return the TypefiElementPageItem.
String toSpecifier ()
Retrieves the object specifier.