State
A state (states define the display of the field in an exported PDF).
Go to Property Listing | Method Listing
Methods:
addEventListener, addItemsToState, getElements, move, releaseAsObject, remove, removeEventListener, toSource, toSpecifier
Objects:
Boolean, EPSTexts, EPSs, EndnoteTextFrames, EventListeners, Events, GraphicLines, Graphics, Groups, Images, Number, Object, Ovals, PDFs, PICTs, PageItems, Polygons, Rectangles, SVGs, SplineItems, StateTypes, String, TextFrames, WMFs
Property Listing
Property |
Type |
Access |
Description |
---|---|---|---|
read/write |
If true, the state is active in the exported PDF. |
||
read/write |
If true, the state is enabled in PDF documents. |
||
readonly |
A collection of endnote text frames. |
||
readonly |
A collection of EPS files. |
||
readonly |
EPSTexts |
||
readonly |
A collection of event listeners. |
||
readonly |
A collection of events. |
||
readonly |
A collection of graphic lines. |
||
readonly |
A collection of imported graphics in any graphic file format (vector, metafile, or bitmap). |
||
readonly |
A collection of groups. |
||
readonly |
The unique ID of the State. |
||
readonly |
A collection of bitmap images in any bitmap file format (including TIFF, JPEG, or GIF). |
||
readonly |
The index of the State within its containing object. |
||
readonly |
Returns true if the object specifier resolves to valid objects. |
||
read/write |
The name of the State. |
||
readonly |
A collection of ellipses. |
||
readonly |
The page items collection, which can be used to process all page items in a container (such as a document, page, or group), regardless of type. |
||
readonly |
The parent of the State (a Button, MultiStateObject, CheckBox or RadioButton). |
||
readonly |
A collection of PDF files. |
||
readonly |
A collection of PICT graphics. |
||
readonly |
A collection of polygons. |
||
read/write |
A property that allows setting of several properties at the same time. |
||
readonly |
A collection of rectangles. |
||
readonly |
The spline items collection. |
||
LongInteger |
read/write |
For a button, the type of user action that dictates the object's appearance. For a MultiStateObject, which has no user actions associated with states, this property is a numeric value uniquely identifying the state. Can return: StateTypes enumerator or Long Integer. |
|
readonly |
A collection of SVG files. |
||
readonly |
A collection of text frames. |
||
readonly |
A collection of WMF graphics. |
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) |
undefined addItemsToState (pageitems:Array of PageItem)
Adds page items to this state.
State getElements ()
Resolves the object specifier, creating an array of object references.
undefined move (newPosition:Number)
Moves the state to a new position in its parent collection.
Parameter |
Type |
Description |
---|---|---|
newPosition |
the index to move the state to in its parent collection |
undefined releaseAsObject ()
Releases this state's appearance as a page item, removing the state from its parent object.
undefined remove ()
Deletes the State.
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 State.
String toSpecifier ()
Retrieves the object specifier.
Object of
EPS.parent
EPSText.parent
EndnoteTextFrame.parent
Event.parent
EventListener.parent
Graphic.parent
GraphicLine.parent
Group.parent
Image.parent
MutationEvent.parent
Oval.parent
PDF.parent
PICT.parent
PageItem.parent
Polygon.parent
Rectangle.parent
SVG.parent
SplineItem.parent
TextFrame.parent
WMF.parent