Adobe InDesign CS4 (6.0) Object Model JS: IntegerEditbox

InDesign CS4

Class

IntegerEditbox

 A numeric entry field that rounds to the nearest whole number. Note: .5 is rounded up. Base Class: Widget

QuickLinks

getElements, toSource, toSpecifier

Hierarchy

BorderPanel | DialogColumn | DialogRow | EnablingGroup
Widget
IntegerEditbox

Properties

PropertyTypeAccessDescription
editContentsstring r/wThe default value in an editbox control. Note: Do not specify both edit contents and edit value. If both are specified, the one that occurs later in the script is used.
editValuenumber r/wThe real number default value of the editbox or combobox. Note: For measurement controls, the value is interpreted in points. The points value is converted to edit units when the dialog opens. Note: Do not specify both edit value and edit contents. If both are specified, the one that occurs later in the script is used.
idnumber readonlyThe unique ID of the IntegerEditbox.
indexnumber readonlyThe index of the IntegerEditbox within its containing object.
isValidbool readonlyReturns true if the object specifier resolves to valid objects.
largeNudgenumber r/wThe amount to increment/decrement the value when a user selects the control and holds down the Shift key while pressing an arrow key on the keyboard.
maximumValuenumber r/wThe maximum value that a user is allowed to type in a numeric editbox or combobox. Note: The value for a measurement editbox or combobox is interpreted in points, regardless of the edit units specified for the control. The points value is converted automatically to the edit unit when the dialog is opened.
minWidthnumber r/wThe width of the control. For an editbox or combobox, specifies the minimum width of the box.
minimumValuenumber r/wThe minumim value that a user is allowed to type in a numeric editbox or combobox. Note: The value for a measurement editbox or combobox is interpreted in points, regardless of the edit units specified for the control. The points value is converted automatically to the edit unit when the dialog is opened.
parentBorderPanelDialogColumn
DialogRow
EnablingGroup
readonlyThe parent of the IntegerEditbox (a DialogColumn, DialogRow, EnablingGroup or BorderPanel).
propertiesObject r/wA property that allows setting of several properties at the same time.
smallNudgenumber r/wThe amount to increment/decrement the value when the user selects the control and presses an arrow key on the keyboard.

Methods

Instances

Array of IntegerEditbox getElements ()
Resolves the object specifier, creating an array of object references.

string toSource ()
Generates a string which, if executed, will return the IntegerEditbox.

string toSpecifier ()
Retrieves the object specifier.

Used in:

array of IntegerEditbox IntegerEditboxes.itemByRange (from: any, to: any)

IntegerEditbox IntegerEditboxes.nextItem (obj: IntegerEditbox)

IntegerEditbox IntegerEditboxes.previousItem (obj: IntegerEditbox)

Return

Array of IntegerEditbox IntegerEditbox.getElements ()

IntegerEditbox IntegerEditboxes.[] (index: number)

IntegerEditbox IntegerEditboxes.add ([withProperties: Object])

IntegerEditbox IntegerEditboxes.anyItem ()

Array of IntegerEditbox IntegerEditboxes.everyItem ()

IntegerEditbox IntegerEditboxes.firstItem ()

IntegerEditbox IntegerEditboxes.item (index: any)

IntegerEditbox IntegerEditboxes.itemByID (id: number)

IntegerEditbox IntegerEditboxes.itemByName (name: string)

Array of IntegerEditbox IntegerEditboxes.itemByRange (from: any, to: any)

IntegerEditbox IntegerEditboxes.lastItem ()

IntegerEditbox IntegerEditboxes.middleItem ()

IntegerEditbox IntegerEditboxes.nextItem (obj: IntegerEditbox)

IntegerEditbox IntegerEditboxes.previousItem (obj: IntegerEditbox)

Jongware, 20-Jun-2010 v3.0.3dContents :: Index