{
 "product": "ScriptUI",
 "slug": "scriptui",
 "version": "ScriptUI Classes",
 "generated": "2026-09-16",
 "counts": {
  "objects": 34,
  "properties": 483,
  "events": 0,
  "methods": 221
 },
 "objects": [
  {
   "name": "Bounds",
   "kind": "Object",
   "description": "Defines the boundaries of a window within the screen’s coordinate space, or of a UI element within the container’s coordinate space.",
   "properties": [
    {
     "name": "bottom",
     "type": "number",
     "description": "The vertical coordinate, a pixel offset from the origin of the element's coordinate space.",
     "access": "read/write"
    },
    {
     "name": "height",
     "type": "number",
     "description": "The height in pixels.",
     "access": "read/write"
    },
    {
     "name": "left",
     "type": "number",
     "description": "The horizontal coordinate, a pixel offset from the origin of the element's coordinate space.",
     "access": "read/write"
    },
    {
     "name": "length",
     "type": "number",
     "description": "The array length.",
     "access": "readonly",
     "value": "4"
    },
    {
     "name": "right",
     "type": "number",
     "description": "The width in pixels.",
     "access": "read/write"
    },
    {
     "name": "top",
     "type": "number",
     "description": "The height in pixels.",
     "access": "read/write"
    },
    {
     "name": "width",
     "type": "number",
     "description": "The width in pixels.",
     "access": "read/write"
    },
    {
     "name": "x",
     "type": "number",
     "description": "The horizontal coordinate, a pixel offset from the origin of the element's coordinate space.",
     "access": "read/write"
    },
    {
     "name": "y",
     "type": "number",
     "description": "The vertical coordinate, a pixel offset from the origin of the element's coordinate space.",
     "access": "read/write"
    }
   ],
   "events": [],
   "methods": []
  },
  {
   "name": "Button",
   "kind": "Object",
   "description": "A pushbutton element containing a mouse-sensitive text string.",
   "properties": [
    {
     "name": "active",
     "type": "boolean",
     "description": "True if this element is active.",
     "access": "read/write"
    },
    {
     "name": "alignment",
     "type": "string",
     "description": "The alignment style for this element. If defined, this value overrides the alignChildren setting for the parent container.",
     "access": "read/write"
    },
    {
     "name": "bounds",
     "type": "Bounds",
     "description": "The boundaries of the element, in parent-relative coordinates.",
     "access": "read/write"
    },
    {
     "name": "characters",
     "type": "number",
     "description": "A number of characters for which to reserve space when calculating the preferred size of the element.",
     "access": "read/write",
     "range": {
      "min": "0",
      "max": ""
     }
    },
    {
     "name": "children",
     "type": "Object[]",
     "description": "An array of child elements.",
     "access": "readonly"
    },
    {
     "name": "enabled",
     "type": "boolean",
     "description": "True if this element is enabled.",
     "access": "read/write"
    },
    {
     "name": "graphics",
     "type": "ScriptUIGraphics",
     "description": "The graphics object that can be used to customize the element's appearance, in response to the onDraw() event.",
     "access": "readonly"
    },
    {
     "name": "helpTip",
     "type": "string",
     "description": "The help string that is displayed when the mouse hovers over the element.",
     "access": "read/write"
    },
    {
     "name": "indent",
     "type": "number",
     "description": "The number of pixels to indent the element during automatic layout.",
     "access": "read/write",
     "range": {
      "min": "0",
      "max": ""
     }
    },
    {
     "name": "justify",
     "type": "string",
     "description": "The text justification style.",
     "access": "read/write",
     "value": "left"
    },
    {
     "name": "location",
     "type": "Point",
     "description": "The upper left corner of this element relative to its parent.",
     "access": "read/write"
    },
    {
     "name": "maximumSize",
     "type": "Dimension",
     "description": "The maximum height and width to which the element can be resized.",
     "access": "read/write"
    },
    {
     "name": "minimumSize",
     "type": "Dimension",
     "description": "The minimum height and width to which the element can be resized.",
     "access": "read/write"
    },
    {
     "name": "parent",
     "type": "any",
     "description": "The parent element.",
     "access": "readonly"
    },
    {
     "name": "preferredSize",
     "type": "Dimension",
     "description": "The preferred size, used by layout managers to determine the best size for each element.",
     "access": "read/write"
    },
    {
     "name": "properties",
     "type": "Object",
     "description": "An object that contains one or more creation properties of the container (properties used only when the element is created).",
     "access": "read/write"
    },
    {
     "name": "shortcutKey",
     "type": "string",
     "description": "The key sequence that invokes the onShortcutKey() callback for this element (in Windows only).",
     "access": "read/write"
    },
    {
     "name": "size",
     "type": "Dimension",
     "description": "The current dimensions of this element.",
     "access": "read/write"
    },
    {
     "name": "text",
     "type": "string",
     "description": "The text to display, a localizable string.",
     "access": "read/write"
    },
    {
     "name": "type",
     "type": "string",
     "description": "The element type; \"button\".",
     "access": "readonly"
    },
    {
     "name": "visible",
     "type": "boolean",
     "description": "True if this element is shown, false if it is hidden.",
     "access": "read/write"
    },
    {
     "name": "window",
     "type": "Window",
     "description": "The window that this element belongs to.",
     "access": "readonly"
    },
    {
     "name": "windowBounds",
     "type": "Bounds",
     "description": "The bounds of this element relative to the top-level parent window.",
     "access": "readonly"
    }
   ],
   "events": [],
   "methods": [
    {
     "name": "addEventListener",
     "returns": "boolean",
     "description": "Registers an event handler for a particular type of event occuring in this element.",
     "parameters": [
      {
       "name": "eventName",
       "type": "string",
       "description": "The name of the event."
      },
      {
       "name": "handler",
       "type": "Function",
       "description": "The function that handles the event."
      },
      {
       "name": "capturePhase",
       "type": "boolean",
       "description": "When true, the handler is called only in the capturing phase of the event propagation."
      }
     ]
    },
    {
     "name": "dispatchEvent",
     "returns": "Event",
     "description": "Simulates the occurrence of an event in this target.",
     "parameters": []
    },
    {
     "name": "hide",
     "returns": "void",
     "description": "Hides this element.",
     "parameters": []
    },
    {
     "name": "notify",
     "returns": "void",
     "description": "Sends a notification message, simulating the specified user interaction event.",
     "parameters": [
      {
       "name": "eventName",
       "type": "string",
       "description": "The name of the control event handler to call.",
       "optional": true
      }
     ]
    },
    {
     "name": "onActivate",
     "returns": "void",
     "description": "An event-handler callback function, called when the element acquires the keyboard focus.",
     "parameters": []
    },
    {
     "name": "onClick",
     "returns": "void",
     "description": "An event-handler callback function, called when the element has been clicked",
     "parameters": []
    },
    {
     "name": "onDeactivate",
     "returns": "void",
     "description": "An event-handler callback function, called when the element loses the keyboard focus.",
     "parameters": []
    },
    {
     "name": "onDraw",
     "returns": "void",
     "description": "An event-handler callback function, called when the window is about to be drawn.",
     "parameters": []
    },
    {
     "name": "onShortcutKey",
     "returns": "void",
     "description": "An event-handler callback function, called when the element's shortcutKey sequence is typed in the active window.",
     "parameters": []
    },
    {
     "name": "removeEventListener",
     "returns": "boolean",
     "description": "Unregisters an event handler for a particular type of event occuring in this element.",
     "parameters": [
      {
       "name": "eventName",
       "type": "string",
       "description": "The name of the event."
      },
      {
       "name": "handler",
       "type": "Function",
       "description": "The function that handles the event."
      },
      {
       "name": "capturePhase",
       "type": "boolean",
       "description": "Whether to call the handler only in the capturing phase of the event propagation."
      }
     ]
    },
    {
     "name": "show",
     "returns": "void",
     "description": "Shows this element.",
     "parameters": []
    }
   ]
  },
  {
   "name": "Checkbox",
   "kind": "Object",
   "description": "A dual-state control showing a box that has a checkmark when the value is true, and is empty when the value is false.",
   "properties": [
    {
     "name": "active",
     "type": "boolean",
     "description": "True if this element is active.",
     "access": "read/write"
    },
    {
     "name": "alignment",
     "type": "string",
     "description": "The alignment style for this element. If defined, this value overrides the alignChildren setting for the parent container.",
     "access": "read/write"
    },
    {
     "name": "bounds",
     "type": "Bounds",
     "description": "The boundaries of the element, in parent-relative coordinates.",
     "access": "read/write"
    },
    {
     "name": "characters",
     "type": "number",
     "description": "A number of characters for which to reserve space when calculating the preferred size of the element.",
     "access": "read/write",
     "range": {
      "min": "0",
      "max": ""
     }
    },
    {
     "name": "children",
     "type": "Object[]",
     "description": "An array of child elements.",
     "access": "readonly"
    },
    {
     "name": "enabled",
     "type": "boolean",
     "description": "True if this element is enabled.",
     "access": "read/write"
    },
    {
     "name": "graphics",
     "type": "ScriptUIGraphics",
     "description": "The graphics object that can be used to customize the element's appearance, in response to the onDraw() event.",
     "access": "readonly"
    },
    {
     "name": "helpTip",
     "type": "string",
     "description": "The help text that is displayed when the mouse hovers over the element.",
     "access": "read/write"
    },
    {
     "name": "indent",
     "type": "number",
     "description": "The number of pixels to indent the element during automatic layout.",
     "access": "read/write",
     "range": {
      "min": "0",
      "max": ""
     }
    },
    {
     "name": "justify",
     "type": "string",
     "description": "The default text justification style for child text elements.",
     "access": "read/write",
     "value": "left"
    },
    {
     "name": "location",
     "type": "Point",
     "description": "The upper left corner of this element relative to its parent.",
     "access": "read/write"
    },
    {
     "name": "maximumSize",
     "type": "Dimension",
     "description": "The maximum height and width to which the element can be resized.",
     "access": "read/write"
    },
    {
     "name": "minimumSize",
     "type": "Dimension",
     "description": "The minimum height and width to which the element can be resized.",
     "access": "read/write"
    },
    {
     "name": "parent",
     "type": "any",
     "description": "The parent element.",
     "access": "readonly"
    },
    {
     "name": "preferredSize",
     "type": "Dimension",
     "description": "The preferred size, used by layout managers to determine the best size for each element.",
     "access": "read/write"
    },
    {
     "name": "properties",
     "type": "Object",
     "description": "An object that contains one or more creation properties of the item (properties used only when the element is created).",
     "access": "read/write"
    },
    {
     "name": "shortcutKey",
     "type": "string",
     "description": "The key sequence that invokes the onShortcutKey() callback for this element (in Windows only).",
     "access": "read/write"
    },
    {
     "name": "size",
     "type": "Dimension",
     "description": "The current dimensions of this element.",
     "access": "read/write"
    },
    {
     "name": "text",
     "type": "string",
     "description": "The text to display, a localizable string.",
     "access": "read/write"
    },
    {
     "name": "type",
     "type": "string",
     "description": "The element type; \"checkbox\".",
     "access": "readonly"
    },
    {
     "name": "value",
     "type": "boolean",
     "description": "The selection state of the control.",
     "access": "read/write"
    },
    {
     "name": "visible",
     "type": "boolean",
     "description": "True if this element is shown, false if it is hidden.",
     "access": "read/write"
    },
    {
     "name": "window",
     "type": "Window",
     "description": "The window that this element belongs to.",
     "access": "readonly"
    },
    {
     "name": "windowBounds",
     "type": "Bounds",
     "description": "The bounds of this element relative to the top-level parent window.",
     "access": "readonly"
    }
   ],
   "events": [],
   "methods": [
    {
     "name": "addEventListener",
     "returns": "boolean",
     "description": "Registers an event handler for a particular type of event occuring in this element.",
     "parameters": [
      {
       "name": "eventName",
       "type": "string",
       "description": "The name of the event."
      },
      {
       "name": "handler",
       "type": "Function",
       "description": "The function that handles the event."
      },
      {
       "name": "capturePhase",
       "type": "boolean",
       "description": "When true, the handler is called only in the capturing phase of the event propagation."
      }
     ]
    },
    {
     "name": "dispatchEvent",
     "returns": "Event",
     "description": "Simulates the occurrence of an event in this target.",
     "parameters": []
    },
    {
     "name": "hide",
     "returns": "void",
     "description": "Hides this element.",
     "parameters": []
    },
    {
     "name": "notify",
     "returns": "void",
     "description": "Sends a notification message, simulating the specified user interaction event.",
     "parameters": [
      {
       "name": "eventName",
       "type": "string",
       "description": "The name of the control event handler to call.",
       "optional": true
      }
     ]
    },
    {
     "name": "onActivate",
     "returns": "void",
     "description": "An event-handler callback function, called when the element acquires the keyboard focus.",
     "parameters": []
    },
    {
     "name": "onClick",
     "returns": "void",
     "description": "An event-handler callback function, called when the element has been clicked.",
     "parameters": []
    },
    {
     "name": "onDeactivate",
     "returns": "void",
     "description": "An event-handler callback function, called when the element loses the keyboard focus.",
     "parameters": []
    },
    {
     "name": "onDraw",
     "returns": "void",
     "description": "An event-handler callback function, called when the window is about to be drawn.",
     "parameters": []
    },
    {
     "name": "onShortcutKey",
     "returns": "void",
     "description": "An event-handler callback function, called when the element's shortcutKey sequence is typed in the active window.",
     "parameters": []
    },
    {
     "name": "removeEventListener",
     "returns": "boolean",
     "description": "Unregisters an event handler for a particular type of event occuring in this element.",
     "parameters": [
      {
       "name": "eventName",
       "type": "string",
       "description": "The name of the event."
      },
      {
       "name": "handler",
       "type": "Function",
       "description": "The function that handles the event."
      },
      {
       "name": "capturePhase",
       "type": "boolean",
       "description": "Whether to call the handler only in the capturing phase of the event propagation."
      }
     ]
    },
    {
     "name": "show",
     "returns": "void",
     "description": "Shows this element.",
     "parameters": []
    }
   ]
  },
  {
   "name": "Dimension",
   "kind": "Object",
   "description": "Defines the size of a window or UI element. Contains a 2-element array.",
   "properties": [
    {
     "name": "height",
     "type": "number",
     "description": "The height in pixels.",
     "access": "read/write"
    },
    {
     "name": "length",
     "type": "number",
     "description": "The array length.",
     "access": "readonly",
     "value": "2"
    },
    {
     "name": "width",
     "type": "number",
     "description": "The width in pixels.",
     "access": "read/write"
    }
   ],
   "events": [],
   "methods": []
  },
  {
   "name": "DrawState",
   "kind": "Object",
   "description": "Describes an input state at the time of the triggering ScriptUIGraphics.onDraw() event.",
   "properties": [
    {
     "name": "altKeyPressed",
     "type": "boolean",
     "description": "True if the Alt key is being pressed (in Windows only).",
     "access": "readonly"
    },
    {
     "name": "capsLockKeyPressed",
     "type": "boolean",
     "description": "True if the Caps Lock key is being pressed.",
     "access": "readonly"
    },
    {
     "name": "cmdKeyPressed",
     "type": "boolean",
     "description": "True if the Command key is being pressed (in Mac OS only).",
     "access": "readonly"
    },
    {
     "name": "ctrlKeyPressed",
     "type": "boolean",
     "description": "True if the Ctrl key is being pressed.",
     "access": "readonly"
    },
    {
     "name": "hasFocus",
     "type": "boolean",
     "description": "True if the element has the input focus.",
     "access": "readonly"
    },
    {
     "name": "leftButtonPressed",
     "type": "boolean",
     "description": "True if the left mouse button is being pressed.",
     "access": "readonly"
    },
    {
     "name": "middleButtonPressed",
     "type": "boolean",
     "description": "True if the middle mouse button is being pressed.",
     "access": "readonly"
    },
    {
     "name": "mouseOver",
     "type": "boolean",
     "description": "True if the cursor is hovering over this element.",
     "access": "readonly"
    },
    {
     "name": "numLockKeyPressed",
     "type": "boolean",
     "description": "True if the Num Lock key is being pressed.",
     "access": "readonly"
    },
    {
     "name": "optKeyPressed",
     "type": "boolean",
     "description": "True if the Option key is being pressed (in Mac OS only).",
     "access": "readonly"
    },
    {
     "name": "rightButtonPressed",
     "type": "boolean",
     "description": "True if the right mouse button is being pressed.",
     "access": "readonly"
    },
    {
     "name": "shiftKeyPressed",
     "type": "boolean",
     "description": "True if the Shift key is being pressed.",
     "access": "readonly"
    }
   ],
   "events": [],
   "methods": []
  },
  {
   "name": "DropDownList",
   "kind": "Object",
   "description": "Displays a single visible item. When you click the control, a list drops down or pops up, and allows you to select one of the other items in the list.",
   "properties": [
    {
     "name": "active",
     "type": "boolean",
     "description": "True if this element is active.",
     "access": "read/write"
    },
    {
     "name": "alignment",
     "type": "string",
     "description": "The alignment style for this element. If defined, this value overrides the alignChildren setting for the parent container.",
     "access": "read/write"
    },
    {
     "name": "bounds",
     "type": "Bounds",
     "description": "The boundaries of the element, in parent-relative coordinates.",
     "access": "read/write"
    },
    {
     "name": "children",
     "type": "Object[]",
     "description": "An array of child elements.",
     "access": "readonly"
    },
    {
     "name": "enabled",
     "type": "boolean",
     "description": "True if this element is enabled.",
     "access": "read/write"
    },
    {
     "name": "graphics",
     "type": "ScriptUIGraphics",
     "description": "The graphics object that can be used to customize the element's appearance, in response to the onDraw() event.",
     "access": "readonly"
    },
    {
     "name": "helpTip",
     "type": "string",
     "description": "The help text that is displayed when the mouse hovers over the element.",
     "access": "read/write"
    },
    {
     "name": "indent",
     "type": "number",
     "description": "The number of pixels to indent the element during automatic layout.",
     "access": "read/write",
     "range": {
      "min": "0",
      "max": ""
     }
    },
    {
     "name": "itemSize",
     "type": "Dimension",
     "description": "The width and height in pixels of each item in the list.",
     "access": "read/write"
    },
    {
     "name": "items",
     "type": "ListItem[]",
     "description": "The array of choice items displayed in the drop-down or pop-up list.",
     "access": "readonly"
    },
    {
     "name": "location",
     "type": "Point",
     "description": "The upper left corner of this element relative to its parent.",
     "access": "read/write"
    },
    {
     "name": "maximumSize",
     "type": "Dimension",
     "description": "The maximum height and width to which the element can be resized.",
     "access": "read/write"
    },
    {
     "name": "minimumSize",
     "type": "Dimension",
     "description": "The minimum height and width to which the element can be resized.",
     "access": "read/write"
    },
    {
     "name": "parent",
     "type": "any",
     "description": "The parent element.",
     "access": "readonly"
    },
    {
     "name": "preferredSize",
     "type": "Dimension",
     "description": "The preferred size, used by layout managers to determine the best size for each element.",
     "access": "read/write"
    },
    {
     "name": "properties",
     "type": "Object",
     "description": "An object that contains one or more creation properties of the container (properties used only when the element is created).",
     "access": "read/write"
    },
    {
     "name": "selection",
     "type": "ListItem",
     "description": "The currently selected list item.",
     "access": "read/write"
    },
    {
     "name": "shortcutKey",
     "type": "string",
     "description": "The key sequence that invokes the onShortcutKey() callback for this element (in Windows only).",
     "access": "read/write"
    },
    {
     "name": "size",
     "type": "Dimension",
     "description": "The current dimensions of this element.",
     "access": "read/write"
    },
    {
     "name": "type",
     "type": "string",
     "description": "The element type; \"dropdownlist\".",
     "access": "readonly"
    },
    {
     "name": "visible",
     "type": "boolean",
     "description": "True if this element is shown, false if it is hidden.",
     "access": "read/write"
    },
    {
     "name": "window",
     "type": "Window",
     "description": "The window that this element belongs to.",
     "access": "readonly"
    },
    {
     "name": "windowBounds",
     "type": "Bounds",
     "description": "The bounds of this element relative to the top-level parent window.",
     "access": "readonly"
    }
   ],
   "events": [],
   "methods": [
    {
     "name": "add",
     "returns": "ListItem",
     "description": "Adds an item or separator to the choices in this list.",
     "parameters": [
      {
       "name": "type",
       "type": "string",
       "description": "The type of the child element."
      },
      {
       "name": "text",
       "type": "string",
       "description": "The localizable text label for the item.",
       "optional": true
      }
     ]
    },
    {
     "name": "addEventListener",
     "returns": "boolean",
     "description": "Registers an event handler for a particular type of event occuring in this element.",
     "parameters": [
      {
       "name": "eventName",
       "type": "string",
       "description": "The name of the event."
      },
      {
       "name": "handler",
       "type": "Function",
       "description": "The function that handles the event."
      },
      {
       "name": "capturePhase",
       "type": "boolean",
       "description": "When true, the handler is called only in the capturing phase of the event propagation."
      }
     ]
    },
    {
     "name": "dispatchEvent",
     "returns": "Event",
     "description": "Simulates the occurrence of an event in this target.",
     "parameters": []
    },
    {
     "name": "find",
     "returns": "ListItem",
     "description": "Retrieves an item object from the list that has a given text label.",
     "parameters": [
      {
       "name": "text",
       "type": "string",
       "description": "The text string to match."
      }
     ]
    },
    {
     "name": "hide",
     "returns": "void",
     "description": "Hides this element.",
     "parameters": []
    },
    {
     "name": "notify",
     "returns": "void",
     "description": "Sends a notification message, simulating the specified user interaction event.",
     "parameters": [
      {
       "name": "eventName",
       "type": "string",
       "description": "The name of the control event handler to call.",
       "optional": true
      }
     ]
    },
    {
     "name": "onActivate",
     "returns": "void",
     "description": "An event-handler callback function, called when the element acquires the keyboard focus.",
     "parameters": []
    },
    {
     "name": "onChange",
     "returns": "void",
     "description": "An event-handler callback function, called when the content of the element has been changed",
     "parameters": []
    },
    {
     "name": "onDeactivate",
     "returns": "void",
     "description": "An event-handler callback function, called when the element loses the keyboard focus.",
     "parameters": []
    },
    {
     "name": "onDraw",
     "returns": "void",
     "description": "An event-handler callback function, called when the window is about to be drawn.",
     "parameters": []
    },
    {
     "name": "onShortcutKey",
     "returns": "void",
     "description": "An event-handler callback function, called when the element's shortcutKey sequence is typed in the active window.",
     "parameters": []
    },
    {
     "name": "remove",
     "returns": "void",
     "description": "Removes a child item from the list.",
     "parameters": [
      {
       "name": "what",
       "type": "any",
       "description": "The item or child to remove, specified by 0-based index, text value, or as a ListItem object."
      }
     ]
    },
    {
     "name": "removeAll",
     "returns": "void",
     "description": "Removes all child items from the list.",
     "parameters": []
    },
    {
     "name": "removeEventListener",
     "returns": "boolean",
     "description": "Unregisters an event handler for a particular type of event occuring in this element.",
     "parameters": [
      {
       "name": "eventName",
       "type": "string",
       "description": "The name of the event."
      },
      {
       "name": "handler",
       "type": "Function",
       "description": "The function that handles the event."
      },
      {
       "name": "capturePhase",
       "type": "boolean",
       "description": "Whether to call the handler only in the capturing phase of the event propagation."
      }
     ]
    },
    {
     "name": "show",
     "returns": "void",
     "description": "Shows this element.",
     "parameters": []
    }
   ]
  },
  {
   "name": "EditText",
   "kind": "Object",
   "description": "An editable text field that the user can select and change.",
   "properties": [
    {
     "name": "active",
     "type": "boolean",
     "description": "True if this element is active.",
     "access": "read/write"
    },
    {
     "name": "alignment",
     "type": "string",
     "description": "The alignment style for this element. If defined, this value overrides the alignChildren setting for the parent container.",
     "access": "read/write"
    },
    {
     "name": "bounds",
     "type": "Bounds",
     "description": "The boundaries of the element, in parent-relative coordinates.",
     "access": "read/write"
    },
    {
     "name": "characters",
     "type": "number",
     "description": "A number of characters for which to reserve space when calculating the preferred size of the element.",
     "access": "read/write",
     "range": {
      "min": "0",
      "max": ""
     }
    },
    {
     "name": "children",
     "type": "Object[]",
     "description": "An array of child elements.",
     "access": "readonly"
    },
    {
     "name": "enabled",
     "type": "boolean",
     "description": "True if this element is enabled.",
     "access": "read/write"
    },
    {
     "name": "graphics",
     "type": "ScriptUIGraphics",
     "description": "The graphics object that can be used to customize the element's appearance, in response to the onDraw() event.",
     "access": "readonly"
    },
    {
     "name": "helpTip",
     "type": "string",
     "description": "The help text that is displayed when the mouse hovers over the element.",
     "access": "read/write"
    },
    {
     "name": "indent",
     "type": "number",
     "description": "The number of pixels to indent the element during automatic layout.",
     "access": "read/write",
     "range": {
      "min": "0",
      "max": ""
     }
    },
    {
     "name": "justify",
     "type": "string",
     "description": "The text justification style.",
     "access": "read/write",
     "value": "left"
    },
    {
     "name": "location",
     "type": "Point",
     "description": "The upper left corner of this element relative to its parent.",
     "access": "read/write"
    },
    {
     "name": "maximumSize",
     "type": "Dimension",
     "description": "The maximum height and width to which the element can be resized.",
     "access": "read/write"
    },
    {
     "name": "minimumSize",
     "type": "Dimension",
     "description": "The minimum height and width to which the element can be resized.",
     "access": "read/write"
    },
    {
     "name": "parent",
     "type": "any",
     "description": "The parent element.",
     "access": "readonly"
    },
    {
     "name": "preferredSize",
     "type": "Dimension",
     "description": "The preferred size, used by layout managers to determine the best size for each element.",
     "access": "read/write"
    },
    {
     "name": "properties",
     "type": "Object",
     "description": "An object that contains one or more creation properties of the container (properties used only when the element is created).",
     "access": "read/write"
    },
    {
     "name": "shortcutKey",
     "type": "string",
     "description": "The key sequence that invokes the onShortcutKey() callback for this element (in Windows only).",
     "access": "read/write"
    },
    {
     "name": "size",
     "type": "Dimension",
     "description": "The current dimensions of this element.",
     "access": "read/write"
    },
    {
     "name": "text",
     "type": "string",
     "description": "The current text displayed in the field, a localizable string.",
     "access": "read/write"
    },
    {
     "name": "textselection",
     "type": "string",
     "description": "The currently selected text, or the empty string if there is no text selected.",
     "access": "read/write"
    },
    {
     "name": "type",
     "type": "string",
     "description": "The element type; \"edittext\".",
     "access": "readonly"
    },
    {
     "name": "visible",
     "type": "boolean",
     "description": "True if this element is shown, false if it is hidden.",
     "access": "read/write"
    },
    {
     "name": "window",
     "type": "Window",
     "description": "The window that this element belongs to.",
     "access": "readonly"
    },
    {
     "name": "windowBounds",
     "type": "Bounds",
     "description": "The bounds of this element relative to the top-level parent window.",
     "access": "readonly"
    }
   ],
   "events": [],
   "methods": [
    {
     "name": "addEventListener",
     "returns": "boolean",
     "description": "Registers an event handler for a particular type of event occuring in this element.",
     "parameters": [
      {
       "name": "eventName",
       "type": "string",
       "description": "The name of the event."
      },
      {
       "name": "handler",
       "type": "Function",
       "description": "The function that handles the event."
      },
      {
       "name": "capturePhase",
       "type": "boolean",
       "description": "When true, the handler is called only in the capturing phase of the event propagation."
      }
     ]
    },
    {
     "name": "dispatchEvent",
     "returns": "Event",
     "description": "Simulates the occurrence of an event in this target.",
     "parameters": []
    },
    {
     "name": "hide",
     "returns": "void",
     "description": "Hides this element.",
     "parameters": []
    },
    {
     "name": "notify",
     "returns": "void",
     "description": "Sends a notification message, simulating the specified user interaction event.",
     "parameters": [
      {
       "name": "eventName",
       "type": "string",
       "description": "The name of the control event handler to call.",
       "optional": true
      }
     ]
    },
    {
     "name": "onActivate",
     "returns": "void",
     "description": "An event-handler callback function, called when the element acquires the keyboard focus.",
     "parameters": []
    },
    {
     "name": "onChange",
     "returns": "void",
     "description": "An event-handler callback function, called when the content of the element has been changed",
     "parameters": []
    },
    {
     "name": "onChanging",
     "returns": "void",
     "description": "An event-handler callback function, called when the content of the element is in the process of changing",
     "parameters": []
    },
    {
     "name": "onDeactivate",
     "returns": "void",
     "description": "An event-handler callback function, called when the element loses the keyboard focus.",
     "parameters": []
    },
    {
     "name": "onDraw",
     "returns": "void",
     "description": "An event-handler callback function, called when the window is about to be drawn.",
     "parameters": []
    },
    {
     "name": "onShortcutKey",
     "returns": "void",
     "description": "An event-handler callback function, called when the element's shortcutKey sequence is typed in the active window.",
     "parameters": []
    },
    {
     "name": "removeEventListener",
     "returns": "boolean",
     "description": "Unregisters an event handler for a particular type of event occuring in this element.",
     "parameters": [
      {
       "name": "eventName",
       "type": "string",
       "description": "The name of the event."
      },
      {
       "name": "handler",
       "type": "Function",
       "description": "The function that handles the event."
      },
      {
       "name": "capturePhase",
       "type": "boolean",
       "description": "Whether to call the handler only in the capturing phase of the event propagation."
      }
     ]
    },
    {
     "name": "show",
     "returns": "void",
     "description": "Shows this element.",
     "parameters": []
    }
   ]
  },
  {
   "name": "Environment",
   "kind": "Object",
   "description": "Defines attributes of the ScriptUI environment.",
   "properties": [
    {
     "name": "keyboardState",
     "type": "KeyboardState",
     "description": "An object that reports the active state of the keyboard at any time.",
     "access": "readonly"
    }
   ],
   "events": [],
   "methods": []
  },
  {
   "name": "Event",
   "kind": "Object",
   "description": "Base class for UIEvent.",
   "properties": [
    {
     "name": "AT_TARGET",
     "type": "any",
     "description": "",
     "access": "readonly",
     "static": true
    },
    {
     "name": "BUBBLING_PHASE",
     "type": "any",
     "description": "",
     "access": "readonly",
     "static": true
    },
    {
     "name": "CAPTURING_PHASE",
     "type": "any",
     "description": "",
     "access": "readonly",
     "static": true
    },
    {
     "name": "NOT_DISPATCHING",
     "type": "any",
     "description": "",
     "access": "readonly",
     "static": true
    },
    {
     "name": "bubbles",
     "type": "boolean",
     "description": "True if the event is of a type that bubbles.",
     "access": "readonly"
    },
    {
     "name": "cancelable",
     "type": "boolean",
     "description": "True if the default action associated with the event can be canceled with preventDefault().",
     "access": "readonly"
    },
    {
     "name": "captures",
     "type": "boolean",
     "description": "True if this event can be captured.",
     "access": "readonly"
    },
    {
     "name": "currentTarget",
     "type": "boolean",
     "description": "The event target object which is currently handling the event. During capturing and bubbling, this is different from the property target.",
     "access": "readonly"
    },
    {
     "name": "eventPhase",
     "type": "string",
     "description": "The current phase of event propagation; one of none, target, capture, bubble.",
     "access": "readonly"
    },
    {
     "name": "target",
     "type": "Object",
     "description": "The event target object for this event.",
     "access": "readonly"
    },
    {
     "name": "timeStamp",
     "type": "Date",
     "description": "The date and time at which the event occurred.",
     "access": "readonly"
    },
    {
     "name": "type",
     "type": "string",
     "description": "The name of the event that this object represents.",
     "access": "readonly"
    }
   ],
   "events": [],
   "methods": [
    {
     "name": "preventDefault",
     "returns": "void",
     "description": "Prevents the default action associated with this event from being called.",
     "parameters": []
    },
    {
     "name": "stopPropagation",
     "returns": "void",
     "description": "Stops the propagation of this event.",
     "parameters": []
    }
   ]
  },
  {
   "name": "Events",
   "kind": "Object",
   "description": "Provides access to objects used in the ScriptUI event system.",
   "properties": [],
   "events": [],
   "methods": [
    {
     "name": "createEvent",
     "returns": "Event",
     "description": "Creates an instance of the specified Event subclass.",
     "parameters": [
      {
       "name": "eventType",
       "type": "string",
       "description": "The name of an event type: one of \"UIEvent\", \"KeyboardEvent\", or \"MouseEvent\"."
      }
     ]
    }
   ]
  },
  {
   "name": "FlashPlayer",
   "kind": "Object",
   "description": "A control that contains a Flash Player, which can load and play Flash movies stored in SWF files.",
   "properties": [
    {
     "name": "active",
     "type": "boolean",
     "description": "True if this element is active.",
     "access": "read/write"
    },
    {
     "name": "alignment",
     "type": "string",
     "description": "The alignment style for this element. If defined, this value overrides the alignChildren setting for the parent container.",
     "access": "read/write"
    },
    {
     "name": "bounds",
     "type": "Bounds",
     "description": "The boundaries of the element, in parent-relative coordinates.",
     "access": "read/write"
    },
    {
     "name": "enabled",
     "type": "boolean",
     "description": "True if this element is enabled.",
     "access": "read/write"
    },
    {
     "name": "helpTip",
     "type": "string",
     "description": "The help text that is displayed when the mouse hovers over the element.",
     "access": "read/write"
    },
    {
     "name": "indent",
     "type": "number",
     "description": "The number of pixels to indent the element during automatic layout.",
     "access": "read/write",
     "range": {
      "min": "0",
      "max": ""
     }
    },
    {
     "name": "location",
     "type": "Point",
     "description": "The upper left corner of this element relative to its parent.",
     "access": "read/write"
    },
    {
     "name": "maximumSize",
     "type": "Dimension",
     "description": "The maximum height and width to which the element can be resized.",
     "access": "read/write"
    },
    {
     "name": "minimumSize",
     "type": "Dimension",
     "description": "The minimum height and width to which the element can be resized.",
     "access": "read/write"
    },
    {
     "name": "parent",
     "type": "any",
     "description": "The parent element.",
     "access": "readonly"
    },
    {
     "name": "preferredSize",
     "type": "Dimension",
     "description": "The preferred size, used by layout managers to determine the best size for each element.",
     "access": "read/write"
    },
    {
     "name": "properties",
     "type": "Object",
     "description": "An object that contains one or more creation properties of the container (properties used only when the element is created).",
     "access": "read/write"
    },
    {
     "name": "size",
     "type": "Dimension",
     "description": "The current dimensions of this element.",
     "access": "read/write"
    },
    {
     "name": "type",
     "type": "string",
     "description": "The element type, \"flashplayer\".",
     "access": "readonly"
    },
    {
     "name": "visible",
     "type": "boolean",
     "description": "True if this element is shown, false if it is hidden.",
     "access": "read/write"
    },
    {
     "name": "window",
     "type": "Window",
     "description": "The window that this element belongs to.",
     "access": "readonly"
    },
    {
     "name": "windowBounds",
     "type": "Bounds",
     "description": "The bounds of this element relative to the top-level parent window.",
     "access": "readonly"
    }
   ],
   "events": [],
   "methods": [
    {
     "name": "addEventListener",
     "returns": "boolean",
     "description": "Registers an event handler for a particular type of event occuring in this element.",
     "parameters": [
      {
       "name": "eventName",
       "type": "string",
       "description": "The name of the event."
      },
      {
       "name": "handler",
       "type": "Function",
       "description": "The function that handles the event."
      },
      {
       "name": "capturePhase",
       "type": "boolean",
       "description": "When true, the handler is called only in the capturing phase of the event propagation."
      }
     ]
    },
    {
     "name": "callback",
     "returns": "void",
     "description": "A function definition for a callback from the Flash ActionScript environment.",
     "parameters": []
    },
    {
     "name": "dispatchEvent",
     "returns": "Event",
     "description": "Simulates the occurrence of an event in this target.",
     "parameters": []
    },
    {
     "name": "hide",
     "returns": "void",
     "description": "Hides this element.",
     "parameters": []
    },
    {
     "name": "invokePlayerFunction",
     "returns": "any",
     "description": "Invokes an ActionScript function defined in the Flash application.",
     "parameters": [
      {
       "name": "name",
       "type": "string",
       "description": "The name of a Flash ActionScript function that has been registered with the ExternalInterface object by the currently loaded SWF file."
      },
      {
       "name": "argument",
       "type": "any",
       "description": "An argument to pass through to the function.",
       "optional": true
      }
     ]
    },
    {
     "name": "loadMovie",
     "returns": "void",
     "description": "Loads a movie into the Flash Player, and begins playing it.",
     "parameters": [
      {
       "name": "file",
       "type": "File",
       "description": "The File object for the SWF file to load."
      }
     ]
    },
    {
     "name": "notify",
     "returns": "void",
     "description": "Sends a notification message, simulating the specified user interaction event.",
     "parameters": [
      {
       "name": "eventName",
       "type": "string",
       "description": "The name of the control event handler to call.",
       "optional": true
      }
     ]
    },
    {
     "name": "playMovie",
     "returns": "void",
     "description": "Restarts a movie that has been stopped.",
     "parameters": [
      {
       "name": "rewind",
       "type": "boolean",
       "description": "When true, restarts the movie from the beginning; otherwise, starts playing from the point where it was stopped."
      }
     ]
    },
    {
     "name": "removeEventListener",
     "returns": "boolean",
     "description": "Unregisters an event handler for a particular type of event occuring in this element.",
     "parameters": [
      {
       "name": "eventName",
       "type": "string",
       "description": "The name of the event."
      },
      {
       "name": "handler",
       "type": "Function",
       "description": "The function that handles the event."
      },
      {
       "name": "capturePhase",
       "type": "boolean",
       "description": "Whether to call the handler only in the capturing phase of the event propagation."
      }
     ]
    },
    {
     "name": "show",
     "returns": "void",
     "description": "Shows this element.",
     "parameters": []
    },
    {
     "name": "stopMovie",
     "returns": "void",
     "description": "Halts playback of the current movie.",
     "parameters": []
    }
   ]
  },
  {
   "name": "Group",
   "kind": "Object",
   "description": "A container for other controls within a window.",
   "properties": [
    {
     "name": "alignChildren",
     "type": "string",
     "description": "Tells the layout manager how unlike-sized children of this container should be aligned within a column or row.",
     "access": "read/write"
    },
    {
     "name": "alignment",
     "type": "string",
     "description": "The alignment style for this element. If defined, this value overrides the alignChildren setting for the parent container.",
     "access": "read/write"
    },
    {
     "name": "bounds",
     "type": "Bounds",
     "description": "The boundaries of the element, in parent-relative coordinates.",
     "access": "read/write"
    },
    {
     "name": "children",
     "type": "Object[]",
     "description": "An array of child elements.",
     "access": "readonly"
    },
    {
     "name": "enabled",
     "type": "boolean",
     "description": "True if this element is enabled.",
     "access": "read/write"
    },
    {
     "name": "graphics",
     "type": "ScriptUIGraphics",
     "description": "The graphics object that can be used to customize the element's appearance, in response to the onDraw() event.",
     "access": "readonly"
    },
    {
     "name": "helpTip",
     "type": "string",
     "description": "The help text that is displayed when the mouse hovers over the element.",
     "access": "read/write"
    },
    {
     "name": "indent",
     "type": "number",
     "description": "The number of pixels to indent the element during automatic layout.",
     "access": "read/write",
     "range": {
      "min": "0",
      "max": ""
     }
    },
    {
     "name": "layout",
     "type": "LayoutManager",
     "description": "The layout manager for this container.",
     "access": "read/write"
    },
    {
     "name": "location",
     "type": "Point",
     "description": "The upper left corner of this element relative to its parent.",
     "access": "read/write"
    },
    {
     "name": "margins",
     "type": "number",
     "description": "The number of pixels between the edges of a container and the outermost child elements.",
     "access": "read/write"
    },
    {
     "name": "maximumSize",
     "type": "Dimension",
     "description": "The maximum height and width to which the element can be resized.",
     "access": "read/write"
    },
    {
     "name": "minimumSize",
     "type": "Dimension",
     "description": "The minimum height and width to which the element can be resized.",
     "access": "read/write"
    },
    {
     "name": "orientation",
     "type": "string",
     "description": "The layout orientation of children in a container.",
     "access": "read/write"
    },
    {
     "name": "parent",
     "type": "any",
     "description": "The parent element.",
     "access": "readonly"
    },
    {
     "name": "preferredSize",
     "type": "Dimension",
     "description": "The preferred size, used by layout managers to determine the best size for each element.",
     "access": "read/write"
    },
    {
     "name": "properties",
     "type": "Object",
     "description": "An object that contains one or more creation properties of the control (properties used only when the element is created).",
     "access": "read/write"
    },
    {
     "name": "size",
     "type": "Dimension",
     "description": "The current dimensions of this element.",
     "access": "read/write"
    },
    {
     "name": "spacing",
     "type": "number",
     "description": "The number of pixels separating one child element from its adjacent sibling element.",
     "access": "read/write"
    },
    {
     "name": "type",
     "type": "string",
     "description": "The element type; \"group\".",
     "access": "readonly"
    },
    {
     "name": "visible",
     "type": "boolean",
     "description": "True if this element is shown, false if it is hidden.",
     "access": "read/write"
    },
    {
     "name": "window",
     "type": "Window",
     "description": "The window that this element belongs to.",
     "access": "readonly"
    },
    {
     "name": "windowBounds",
     "type": "Bounds",
     "description": "The bounds of this element relative to the top-level parent window.",
     "access": "readonly"
    }
   ],
   "events": [],
   "methods": [
    {
     "name": "add",
     "returns": "Object",
     "description": "Adds a child element to this container.",
     "parameters": [
      {
       "name": "type",
       "type": "string",
       "description": "The type of the child element, as specified for the type property."
      },
      {
       "name": "bounds",
       "type": "Bounds",
       "description": "A bounds specification that describes the size and position of the new control or container, relative to its parent.",
       "optional": true
      },
      {
       "name": "text",
       "type": "string",
       "description": "The text or label, a localizable string.",
       "optional": true
      },
      {
       "name": "properties",
       "type": "Object",
       "description": "An object that contains one or more creation properties of the new child (properties used only when the element is created).",
       "optional": true
      }
     ]
    },
    {
     "name": "addEventListener",
     "returns": "boolean",
     "description": "Registers an event handler for a particular type of event occuring in this element.",
     "parameters": [
      {
       "name": "eventName",
       "type": "string",
       "description": "The name of the event."
      },
      {
       "name": "handler",
       "type": "Function",
       "description": "The function that handles the event."
      },
      {
       "name": "capturePhase",
       "type": "boolean",
       "description": "When true, the handler is called only in the capturing phase of the event propagation."
      }
     ]
    },
    {
     "name": "dispatchEvent",
     "returns": "Event",
     "description": "Simulates the occurrence of an event in this target.",
     "parameters": []
    },
    {
     "name": "hide",
     "returns": "void",
     "description": "Hides this element.",
     "parameters": []
    },
    {
     "name": "onDraw",
     "returns": "void",
     "description": "An event-handler callback function, called when the group is about to be drawn.",
     "parameters": []
    },
    {
     "name": "remove",
     "returns": "void",
     "description": "Removes the specified child control from this group's children array.",
     "parameters": [
      {
       "name": "what",
       "type": "any",
       "description": "The child control to remove, specified by 0-based index, text property value, or as a control object."
      }
     ]
    },
    {
     "name": "removeEventListener",
     "returns": "boolean",
     "description": "Unregisters an event handler for a particular type of event occuring in this element.",
     "parameters": [
      {
       "name": "eventName",
       "type": "string",
       "description": "The name of the event."
      },
      {
       "name": "handler",
       "type": "Function",
       "description": "The function that handles the event."
      },
      {
       "name": "capturePhase",
       "type": "boolean",
       "description": "Whether to call the handler only in the capturing phase of the event propagation."
      }
     ]
    },
    {
     "name": "show",
     "returns": "void",
     "description": "Shows this element.",
     "parameters": []
    }
   ]
  },
  {
   "name": "IconButton",
   "kind": "Object",
   "description": "A mouse-sensitive pushbutton that displays an image instead of text.",
   "properties": [
    {
     "name": "active",
     "type": "boolean",
     "description": "True if this element is active.",
     "access": "read/write"
    },
    {
     "name": "alignment",
     "type": "string",
     "description": "The alignment style for this element. If defined, this value overrides the alignChildren setting for the parent container.",
     "access": "read/write"
    },
    {
     "name": "bounds",
     "type": "Bounds",
     "description": "The boundaries of the element, in parent-relative coordinates.",
     "access": "read/write"
    },
    {
     "name": "children",
     "type": "Object[]",
     "description": "An array of child elements.",
     "access": "readonly"
    },
    {
     "name": "enabled",
     "type": "boolean",
     "description": "True if this element is enabled.",
     "access": "read/write"
    },
    {
     "name": "graphics",
     "type": "ScriptUIGraphics",
     "description": "The graphics object that can be used to customize the element's appearance, in response to the onDraw() event.",
     "access": "readonly"
    },
    {
     "name": "helpTip",
     "type": "string",
     "description": "The help text that is displayed when the mouse hovers over the element.",
     "access": "read/write"
    },
    {
     "name": "image",
     "type": "ScriptUIImage",
     "description": "The image object that defines the image to be drawn.",
     "access": "read/write"
    },
    {
     "name": "indent",
     "type": "number",
     "description": "The number of pixels to indent the element during automatic layout.",
     "access": "read/write",
     "range": {
      "min": "0",
      "max": ""
     }
    },
    {
     "name": "location",
     "type": "Point",
     "description": "The upper left corner of this element relative to its parent.",
     "access": "read/write"
    },
    {
     "name": "maximumSize",
     "type": "Dimension",
     "description": "The maximum height and width to which the element can be resized.",
     "access": "read/write"
    },
    {
     "name": "minimumSize",
     "type": "Dimension",
     "description": "The minimum height and width to which the element can be resized.",
     "access": "read/write"
    },
    {
     "name": "parent",
     "type": "any",
     "description": "The parent element.",
     "access": "readonly"
    },
    {
     "name": "preferredSize",
     "type": "Dimension",
     "description": "The preferred size, used by layout managers to determine the best size for each element.",
     "access": "read/write"
    },
    {
     "name": "properties",
     "type": "Object",
     "description": "An object that contains one or more creation properties of the container (properties used only when the element is created).",
     "access": "read/write"
    },
    {
     "name": "shortcutKey",
     "type": "string",
     "description": "The key sequence that invokes the onShortcutKey() callback for this element (in Windows only).",
     "access": "read/write"
    },
    {
     "name": "size",
     "type": "Dimension",
     "description": "The current dimensions of this element.",
     "access": "read/write"
    },
    {
     "name": "type",
     "type": "string",
     "description": "The element type; \"iconbutton\".",
     "access": "readonly"
    },
    {
     "name": "visible",
     "type": "boolean",
     "description": "True if this element is shown, false if it is hidden.",
     "access": "read/write"
    },
    {
     "name": "window",
     "type": "Window",
     "description": "The window that this element belongs to.",
     "access": "readonly"
    },
    {
     "name": "windowBounds",
     "type": "Bounds",
     "description": "The bounds of this element relative to the top-level parent window.",
     "access": "readonly"
    }
   ],
   "events": [],
   "methods": [
    {
     "name": "addEventListener",
     "returns": "boolean",
     "description": "Registers an event handler for a particular type of event occuring in this element.",
     "parameters": [
      {
       "name": "eventName",
       "type": "string",
       "description": "The name of the event."
      },
      {
       "name": "handler",
       "type": "Function",
       "description": "The function that handles the event."
      },
      {
       "name": "capturePhase",
       "type": "boolean",
       "description": "When true, the handler is called only in the capturing phase of the event propagation."
      }
     ]
    },
    {
     "name": "dispatchEvent",
     "returns": "Event",
     "description": "Simulates the occurrence of an event in this target.",
     "parameters": []
    },
    {
     "name": "hide",
     "returns": "void",
     "description": "Hides this element.",
     "parameters": []
    },
    {
     "name": "notify",
     "returns": "void",
     "description": "Sends a notification message, simulating the specified user interaction event.",
     "parameters": [
      {
       "name": "eventName",
       "type": "string",
       "description": "The name of the control event handler to call.",
       "optional": true
      }
     ]
    },
    {
     "name": "onActivate",
     "returns": "void",
     "description": "An event-handler callback function, called when the element acquires the keyboard focus.",
     "parameters": []
    },
    {
     "name": "onClick",
     "returns": "void",
     "description": "An event-handler callback function, called when the element has been clicked.",
     "parameters": []
    },
    {
     "name": "onDeactivate",
     "returns": "void",
     "description": "An event-handler callback function, called when the element loses the keyboard focus.",
     "parameters": []
    },
    {
     "name": "onDraw",
     "returns": "void",
     "description": "An event-handler callback function, called when the window is about to be drawn.",
     "parameters": []
    },
    {
     "name": "onShortcutKey",
     "returns": "void",
     "description": "An event-handler callback function, called when the element's shortcutKey sequence is typed in the active window.",
     "parameters": []
    },
    {
     "name": "removeEventListener",
     "returns": "boolean",
     "description": "Unregisters an event handler for a particular type of event occuring in this element.",
     "parameters": [
      {
       "name": "eventName",
       "type": "string",
       "description": "The name of the event."
      },
      {
       "name": "handler",
       "type": "Function",
       "description": "The function that handles the event."
      },
      {
       "name": "capturePhase",
       "type": "boolean",
       "description": "Whether to call the handler only in the capturing phase of the event propagation."
      }
     ]
    },
    {
     "name": "show",
     "returns": "void",
     "description": "Shows this element.",
     "parameters": []
    }
   ]
  },
  {
   "name": "KeyboardState",
   "kind": "Object",
   "description": "Reports the active state of the keyboard.",
   "properties": [
    {
     "name": "altKey",
     "type": "boolean",
     "description": "True if the Alt or Option key is pressed.",
     "access": "readonly"
    },
    {
     "name": "ctrlKey",
     "type": "boolean",
     "description": "True if the Ctrl key is pressed.",
     "access": "readonly"
    },
    {
     "name": "keyName",
     "type": "string",
     "description": "A string containing the name of the currently pressed key, such as \"a\", or an empty string.",
     "access": "readonly"
    },
    {
     "name": "metaKey",
     "type": "boolean",
     "description": "True if the Cmd key (in Mac OS) or Windows key (in Windows) is pressed.",
     "access": "readonly"
    },
    {
     "name": "shiftKey",
     "type": "boolean",
     "description": "True if the Shift key is pressed.",
     "access": "readonly"
    }
   ],
   "events": [],
   "methods": []
  },
  {
   "name": "LayoutManager",
   "kind": "Object",
   "description": "Controls the automatic layout behavior for a window or container.",
   "properties": [],
   "events": [],
   "methods": [
    {
     "name": "layout",
     "returns": "void",
     "description": "Invokes the automatic layout behavior for the managed container.",
     "parameters": []
    },
    {
     "name": "resize",
     "returns": "void",
     "description": "Performs a layout after a Window is resized, based on the new size.",
     "parameters": []
    }
   ]
  },
  {
   "name": "ListBox",
   "kind": "Object",
   "description": "Displays a list of choices, represented by ListItem objects.",
   "properties": [
    {
     "name": "active",
     "type": "boolean",
     "description": "True if this element is active.",
     "access": "read/write"
    },
    {
     "name": "alignment",
     "type": "string",
     "description": "The alignment style for this element. If defined, this value overrides the alignChildren setting for the parent container.",
     "access": "read/write"
    },
    {
     "name": "bounds",
     "type": "Bounds",
     "description": "The boundaries of the element, in parent-relative coordinates.",
     "access": "read/write"
    },
    {
     "name": "children",
     "type": "Object[]",
     "description": "An array of child ListItem elements.",
     "access": "readonly"
    },
    {
     "name": "columns",
     "type": "Object",
     "description": "For a multi-column list box, the column properties.",
     "access": "readonly"
    },
    {
     "name": "enabled",
     "type": "boolean",
     "description": "True if this element is enabled.",
     "access": "read/write"
    },
    {
     "name": "graphics",
     "type": "ScriptUIGraphics",
     "description": "The graphics object that can be used to customize the element's appearance, in response to the onDraw() event.",
     "access": "readonly"
    },
    {
     "name": "helpTip",
     "type": "string",
     "description": "The help text that is displayed when the mouse hovers over the element.",
     "access": "read/write"
    },
    {
     "name": "indent",
     "type": "number",
     "description": "The number of pixels to indent the element during automatic layout.",
     "access": "read/write",
     "range": {
      "min": "0",
      "max": ""
     }
    },
    {
     "name": "itemSize",
     "type": "Dimension",
     "description": "The width and height in pixels of each item in the list.",
     "access": "read/write"
    },
    {
     "name": "items",
     "type": "ListItem[]",
     "description": "The array of choice items displayed in the list.",
     "access": "readonly"
    },
    {
     "name": "location",
     "type": "Point",
     "description": "The upper left corner of this element relative to its parent.",
     "access": "read/write"
    },
    {
     "name": "maximumSize",
     "type": "Dimension",
     "description": "The maximum height and width to which the element can be resized.",
     "access": "read/write"
    },
    {
     "name": "minimumSize",
     "type": "Dimension",
     "description": "The minimum height and width to which the element can be resized.",
     "access": "read/write"
    },
    {
     "name": "parent",
     "type": "any",
     "description": "The parent element.",
     "access": "readonly"
    },
    {
     "name": "preferredSize",
     "type": "Dimension",
     "description": "The preferred size, used by layout managers to determine the best size for each element.",
     "access": "read/write"
    },
    {
     "name": "properties",
     "type": "Object",
     "description": "An object that contains one or more creation properties of the control (properties used only when the element is created).",
     "access": "read/write"
    },
    {
     "name": "selection",
     "type": "ListItem",
     "description": "The currently selected item for a single-selection list, or an array of items for current selection in a multi-selection list.",
     "access": "read/write"
    },
    {
     "name": "shortcutKey",
     "type": "string",
     "description": "The key sequence that invokes the onShortcutKey() callback for this element (in Windows only).",
     "access": "read/write"
    },
    {
     "name": "size",
     "type": "Dimension",
     "description": "The current dimensions of this element.",
     "access": "read/write"
    },
    {
     "name": "type",
     "type": "string",
     "description": "The element type; \"listbox\".",
     "access": "readonly"
    },
    {
     "name": "visible",
     "type": "boolean",
     "description": "True if this element is shown, false if it is hidden.",
     "access": "read/write"
    },
    {
     "name": "window",
     "type": "Window",
     "description": "The window that this element belongs to.",
     "access": "readonly"
    },
    {
     "name": "windowBounds",
     "type": "Bounds",
     "description": "The bounds of this element relative to the top-level parent window.",
     "access": "readonly"
    }
   ],
   "events": [],
   "methods": [
    {
     "name": "add",
     "returns": "ListItem",
     "description": "Adds an item to the choices in this list.",
     "parameters": [
      {
       "name": "type",
       "type": "string",
       "description": "The type of the child element, the string \"item\"."
      },
      {
       "name": "text",
       "type": "string",
       "description": "The localizable text label for the item.",
       "optional": true
      }
     ]
    },
    {
     "name": "addEventListener",
     "returns": "boolean",
     "description": "Registers an event handler for a particular type of event occuring in this element.",
     "parameters": [
      {
       "name": "eventName",
       "type": "string",
       "description": "The name of the event."
      },
      {
       "name": "handler",
       "type": "Function",
       "description": "The function that handles the event."
      },
      {
       "name": "capturePhase",
       "type": "boolean",
       "description": "When true, the handler is called only in the capturing phase of the event propagation."
      }
     ]
    },
    {
     "name": "dispatchEvent",
     "returns": "Event",
     "description": "Simulates the occurrence of an event in this target.",
     "parameters": []
    },
    {
     "name": "find",
     "returns": "ListItem",
     "description": "Retrieves an item object from the list that has a given text label.",
     "parameters": [
      {
       "name": "text",
       "type": "string",
       "description": "The text string to match."
      }
     ]
    },
    {
     "name": "hide",
     "returns": "void",
     "description": "Hides this element.",
     "parameters": []
    },
    {
     "name": "notify",
     "returns": "void",
     "description": "Sends a notification message, simulating the specified user interaction event.",
     "parameters": [
      {
       "name": "eventName",
       "type": "string",
       "description": "The name of the control event handler to call.",
       "optional": true
      }
     ]
    },
    {
     "name": "onActivate",
     "returns": "void",
     "description": "An event-handler callback function, called when the element acquires the keyboard focus.",
     "parameters": []
    },
    {
     "name": "onChange",
     "returns": "void",
     "description": "An event-handler callback function, called when the content of the element has been changed",
     "parameters": []
    },
    {
     "name": "onDeactivate",
     "returns": "void",
     "description": "An event-handler callback function, called when the element loses the keyboard focus.",
     "parameters": []
    },
    {
     "name": "onDoubleClick",
     "returns": "void",
     "description": "An event-handler callback function, called when an item in the listbox is double-clicked",
     "parameters": []
    },
    {
     "name": "onDraw",
     "returns": "void",
     "description": "An event-handler callback function, called when the window is about to be drawn.",
     "parameters": []
    },
    {
     "name": "onShortcutKey",
     "returns": "void",
     "description": "An event-handler callback function, called when the element's shortcutKey sequence is typed in the active window.",
     "parameters": []
    },
    {
     "name": "remove",
     "returns": "void",
     "description": "Removes a child item from the list.",
     "parameters": [
      {
       "name": "what",
       "type": "any",
       "description": "The item or child to remove, specified by 0-based index, text value, or as a ListItem object."
      }
     ]
    },
    {
     "name": "removeAll",
     "returns": "void",
     "description": "Removes all child items from the list.",
     "parameters": []
    },
    {
     "name": "removeEventListener",
     "returns": "boolean",
     "description": "Unregisters an event handler for a particular type of event occuring in this element.",
     "parameters": [
      {
       "name": "eventName",
       "type": "string",
       "description": "The name of the event."
      },
      {
       "name": "handler",
       "type": "Function",
       "description": "The function that handles the event."
      },
      {
       "name": "capturePhase",
       "type": "boolean",
       "description": "Whether to call the handler only in the capturing phase of the event propagation."
      }
     ]
    },
    {
     "name": "show",
     "returns": "void",
     "description": "Shows this element.",
     "parameters": []
    }
   ]
  },
  {
   "name": "ListItem",
   "kind": "Object",
   "description": "An item in a list box, drop-down list, or tree view.",
   "properties": [
    {
     "name": "checked",
     "type": "boolean",
     "description": "The checked state of an item in a list.",
     "access": "read/write"
    },
    {
     "name": "expanded",
     "type": "boolean",
     "description": "The expansion state of an item of type node that is a child of a TreeView list control.",
     "access": "read/write"
    },
    {
     "name": "image",
     "type": "ScriptUIImage",
     "description": "An image object for an icon to display in the item.",
     "access": "read/write"
    },
    {
     "name": "index",
     "type": "number",
     "description": "The 0-based index of this item in the items collection of its parent list control.",
     "access": "readonly"
    },
    {
     "name": "parent",
     "type": "any",
     "description": "The parent element, a list control.",
     "access": "readonly"
    },
    {
     "name": "properties",
     "type": "Object",
     "description": "An object that contains one or more creation properties of the item (properties used only when the element is created).",
     "access": "read/write"
    },
    {
     "name": "selected",
     "type": "boolean",
     "description": "The selection state of this item.",
     "access": "read/write"
    },
    {
     "name": "subItems",
     "type": "any[]",
     "description": "When the parent is a multi-column ListBox, this describes the labels for this selectable row in additional columns.",
     "access": "readonly"
    },
    {
     "name": "text",
     "type": "string",
     "description": "The label text to display for the item, a localizable string.",
     "access": "read/write"
    },
    {
     "name": "type",
     "type": "string",
     "description": "The element type.",
     "access": "readonly"
    }
   ],
   "events": [],
   "methods": []
  },
  {
   "name": "Panel",
   "kind": "Object",
   "description": "A container for other types of controls, with an optional frame.",
   "properties": [
    {
     "name": "alignChildren",
     "type": "string",
     "description": "Specifies how to align the child elements.",
     "access": "read/write"
    },
    {
     "name": "alignment",
     "type": "string",
     "description": "The alignment style for this element. If defined, this value overrides the alignChildren setting for the parent container.",
     "access": "read/write"
    },
    {
     "name": "bounds",
     "type": "Bounds",
     "description": "The boundaries of the element, in parent-relative coordinates.",
     "access": "read/write"
    },
    {
     "name": "characters",
     "type": "number",
     "description": "Reserve space for the specified number of characters; affects calculation of preferredSize .",
     "access": "read/write",
     "range": {
      "min": "0",
      "max": ""
     }
    },
    {
     "name": "children",
     "type": "Object[]",
     "description": "An array of child elements.",
     "access": "readonly"
    },
    {
     "name": "enabled",
     "type": "boolean",
     "description": "True if this element is enabled.",
     "access": "read/write"
    },
    {
     "name": "graphics",
     "type": "ScriptUIGraphics",
     "description": "The graphics object that can be used to customize the element's appearance, in response to the onDraw() event.",
     "access": "readonly"
    },
    {
     "name": "helpTip",
     "type": "string",
     "description": "The help text that is displayed when the mouse hovers over the element.",
     "access": "read/write"
    },
    {
     "name": "indent",
     "type": "number",
     "description": "The number of pixels to indent the element during automatic layout.",
     "access": "read/write",
     "range": {
      "min": "0",
      "max": ""
     }
    },
    {
     "name": "justify",
     "type": "string",
     "description": "The default text justification style for child text elements.",
     "access": "read/write",
     "value": "left"
    },
    {
     "name": "layout",
     "type": "LayoutManager",
     "description": "The layout manager for this container.",
     "access": "read/write"
    },
    {
     "name": "location",
     "type": "Point",
     "description": "The upper left corner of this element's frame relative to its parent.",
     "access": "read/write"
    },
    {
     "name": "margins",
     "type": "number",
     "description": "The number of pixels between the edges of a container and the outermost child elements.",
     "access": "read/write"
    },
    {
     "name": "maximumSize",
     "type": "Dimension",
     "description": "The maximum height and width to which the element can be resized.",
     "access": "read/write"
    },
    {
     "name": "minimumSize",
     "type": "Dimension",
     "description": "The minimum height and width to which the element can be resized.",
     "access": "read/write"
    },
    {
     "name": "orientation",
     "type": "string",
     "description": "The layout orientation of children in a container.",
     "access": "read/write"
    },
    {
     "name": "parent",
     "type": "any",
     "description": "The parent element.",
     "access": "readonly"
    },
    {
     "name": "preferredSize",
     "type": "Dimension",
     "description": "The preferred size, used by layout managers to determine the best size for each element.",
     "access": "read/write"
    },
    {
     "name": "properties",
     "type": "Object",
     "description": "An object that contains one or more creation properties of the control (properties used only when the element is created).",
     "access": "read/write"
    },
    {
     "name": "size",
     "type": "Dimension",
     "description": "The current dimensions of this element.",
     "access": "read/write"
    },
    {
     "name": "spacing",
     "type": "number",
     "description": "The number of pixels separating one child element from its adjacent sibling element.",
     "access": "read/write"
    },
    {
     "name": "text",
     "type": "string",
     "description": "The title or label text, a localizable string.",
     "access": "read/write"
    },
    {
     "name": "type",
     "type": "string",
     "description": "The element type; \"panel\".",
     "access": "readonly"
    },
    {
     "name": "visible",
     "type": "boolean",
     "description": "True if this element is shown, false if it is hidden.",
     "access": "read/write"
    },
    {
     "name": "window",
     "type": "Window",
     "description": "The window that this element belongs to.",
     "access": "readonly"
    },
    {
     "name": "windowBounds",
     "type": "Bounds",
     "description": "The bounds of this element relative to the top-level parent window.",
     "access": "readonly"
    }
   ],
   "events": [],
   "methods": [
    {
     "name": "add",
     "returns": "Object",
     "description": "Adds a child element to this container.",
     "parameters": [
      {
       "name": "type",
       "type": "string",
       "description": "The type of the child element, as specified for the type property."
      },
      {
       "name": "bounds",
       "type": "Bounds",
       "description": "A bounds specification that describes the size and position of the new control or container, relative to its parent.",
       "optional": true
      },
      {
       "name": "text",
       "type": "string",
       "description": "The text or label, a localizable string.",
       "optional": true
      },
      {
       "name": "properties",
       "type": "Object",
       "description": "An object that contains one or more creation properties of the new child (properties used only when the element is created).",
       "optional": true
      }
     ]
    },
    {
     "name": "addEventListener",
     "returns": "boolean",
     "description": "Registers an event handler for a particular type of event occuring in this element.",
     "parameters": [
      {
       "name": "eventName",
       "type": "string",
       "description": "The name of the event."
      },
      {
       "name": "handler",
       "type": "Function",
       "description": "The function that handles the event."
      },
      {
       "name": "capturePhase",
       "type": "boolean",
       "description": "When true, the handler is called only in the capturing phase of the event propagation."
      }
     ]
    },
    {
     "name": "dispatchEvent",
     "returns": "Event",
     "description": "Simulates the occurrence of an event in this target.",
     "parameters": []
    },
    {
     "name": "hide",
     "returns": "void",
     "description": "Hides this element.",
     "parameters": []
    },
    {
     "name": "onDraw",
     "returns": "void",
     "description": "An event-handler callback function, called when the panel is about to be drawn.",
     "parameters": []
    },
    {
     "name": "remove",
     "returns": "void",
     "description": "Removes the specified child control from this group's children array.",
     "parameters": [
      {
       "name": "what",
       "type": "any",
       "description": "The child control to remove, specified by 0-based index, text property value, or as a control object."
      }
     ]
    },
    {
     "name": "removeEventListener",
     "returns": "boolean",
     "description": "Unregisters an event handler for a particular type of event occuring in this element.",
     "parameters": [
      {
       "name": "eventName",
       "type": "string",
       "description": "The name of the event."
      },
      {
       "name": "handler",
       "type": "Function",
       "description": "The function that handles the event."
      },
      {
       "name": "capturePhase",
       "type": "boolean",
       "description": "Whether to call the handler only in the capturing phase of the event propagation."
      }
     ]
    },
    {
     "name": "show",
     "returns": "void",
     "description": "Shows this element.",
     "parameters": []
    }
   ]
  },
  {
   "name": "Point",
   "kind": "Object",
   "description": "Defines the location of a window or UI element. Contains a 2-element array.",
   "properties": [
    {
     "name": "left",
     "type": "number",
     "description": "The left coordinate.",
     "access": "read/write"
    },
    {
     "name": "length",
     "type": "number",
     "description": "The array length.",
     "access": "readonly",
     "value": "2"
    },
    {
     "name": "top",
     "type": "number",
     "description": "The top coordinate.",
     "access": "read/write"
    },
    {
     "name": "x",
     "type": "number",
     "description": "The horizontal coordinate, a pixel offset from the origin of the element's coordinate space.",
     "access": "read/write"
    },
    {
     "name": "y",
     "type": "number",
     "description": "The vertical coordinate, a pixel offset from the origin of the element's coordinate space.",
     "access": "read/write"
    }
   ],
   "events": [],
   "methods": []
  },
  {
   "name": "Progressbar",
   "kind": "Object",
   "description": "A horizontal bar with an indicator that shows the progress of an operation.",
   "properties": [
    {
     "name": "alignment",
     "type": "string",
     "description": "The alignment style for this element. If defined, this value overrides the alignChildren setting for the parent container.",
     "access": "read/write"
    },
    {
     "name": "bounds",
     "type": "Bounds",
     "description": "The boundaries of the element, in parent-relative coordinates.",
     "access": "read/write"
    },
    {
     "name": "children",
     "type": "Object[]",
     "description": "An array of child elements.",
     "access": "readonly"
    },
    {
     "name": "enabled",
     "type": "boolean",
     "description": "True if this element is enabled.",
     "access": "read/write"
    },
    {
     "name": "graphics",
     "type": "ScriptUIGraphics",
     "description": "The graphics object that can be used to customize the element's appearance, in response to the onDraw() event.",
     "access": "readonly"
    },
    {
     "name": "helpTip",
     "type": "string",
     "description": "The help text that is displayed when the mouse hovers over the element.",
     "access": "read/write"
    },
    {
     "name": "indent",
     "type": "number",
     "description": "The number of pixels to indent the element during automatic layout.",
     "access": "read/write",
     "range": {
      "min": "0",
      "max": ""
     }
    },
    {
     "name": "location",
     "type": "Point",
     "description": "The upper left corner of this element relative to its parent.",
     "access": "read/write"
    },
    {
     "name": "maximumSize",
     "type": "Dimension",
     "description": "The maximum height and width to which the element can be resized.",
     "access": "read/write"
    },
    {
     "name": "maxvalue",
     "type": "number",
     "description": "The maximum value in the range. Default is 100.",
     "access": "read/write"
    },
    {
     "name": "minimumSize",
     "type": "Dimension",
     "description": "The minimum height and width to which the element can be resized.",
     "access": "read/write"
    },
    {
     "name": "minvalue",
     "type": "number",
     "description": "The minimum value in the range; always 0. If set to a different value, it is ignored.",
     "access": "read/write"
    },
    {
     "name": "parent",
     "type": "any",
     "description": "The parent element.",
     "access": "readonly"
    },
    {
     "name": "preferredSize",
     "type": "Dimension",
     "description": "The preferred size, used by layout managers to determine the best size for each element.",
     "access": "read/write"
    },
    {
     "name": "properties",
     "type": "Object",
     "description": "An object that contains one or more creation properties of the container (properties used only when the element is created).",
     "access": "read/write"
    },
    {
     "name": "size",
     "type": "Dimension",
     "description": "The current dimensions of this element.",
     "access": "read/write"
    },
    {
     "name": "type",
     "type": "string",
     "description": "The element type, \"progessbar\".",
     "access": "readonly"
    },
    {
     "name": "value",
     "type": "number",
     "description": "The current position of the indicator.",
     "access": "read/write"
    },
    {
     "name": "visible",
     "type": "boolean",
     "description": "True if this element is shown, false if it is hidden.",
     "access": "read/write"
    },
    {
     "name": "window",
     "type": "Window",
     "description": "The window that this element belongs to.",
     "access": "readonly"
    },
    {
     "name": "windowBounds",
     "type": "Bounds",
     "description": "The bounds of this element relative to the top-level parent window.",
     "access": "readonly"
    }
   ],
   "events": [],
   "methods": [
    {
     "name": "addEventListener",
     "returns": "boolean",
     "description": "Registers an event handler for a particular type of event occuring in this element.",
     "parameters": [
      {
       "name": "eventName",
       "type": "string",
       "description": "The name of the event."
      },
      {
       "name": "handler",
       "type": "Function",
       "description": "The function that handles the event."
      },
      {
       "name": "capturePhase",
       "type": "boolean",
       "description": "When true, the handler is called only in the capturing phase of the event propagation."
      }
     ]
    },
    {
     "name": "dispatchEvent",
     "returns": "Event",
     "description": "Simulates the occurrence of an event in this target.",
     "parameters": []
    },
    {
     "name": "hide",
     "returns": "void",
     "description": "Hides this element.",
     "parameters": []
    },
    {
     "name": "onDraw",
     "returns": "void",
     "description": "An event-handler callback function, called when the window is about to be drawn.",
     "parameters": []
    },
    {
     "name": "removeEventListener",
     "returns": "boolean",
     "description": "Unregisters an event handler for a particular type of event occuring in this element.",
     "parameters": [
      {
       "name": "eventName",
       "type": "string",
       "description": "The name of the event."
      },
      {
       "name": "handler",
       "type": "Function",
       "description": "The function that handles the event."
      },
      {
       "name": "capturePhase",
       "type": "boolean",
       "description": "Whether to call the handler only in the capturing phase of the event propagation."
      }
     ]
    },
    {
     "name": "show",
     "returns": "void",
     "description": "Shows this element.",
     "parameters": []
    }
   ]
  },
  {
   "name": "RadioButton",
   "kind": "Object",
   "description": "A dual-state control, grouped with other radiobuttons, of which only one can be in the selected state.",
   "properties": [
    {
     "name": "active",
     "type": "boolean",
     "description": "True if this element is active.",
     "access": "read/write"
    },
    {
     "name": "alignment",
     "type": "string",
     "description": "The alignment style for this element. If defined, this value overrides the alignChildren setting for the parent container.",
     "access": "read/write"
    },
    {
     "name": "bounds",
     "type": "Bounds",
     "description": "The boundaries of the element, in parent-relative coordinates.",
     "access": "read/write"
    },
    {
     "name": "characters",
     "type": "number",
     "description": "A number of characters for which to reserve space when calculating the preferred size of the element.",
     "access": "read/write",
     "range": {
      "min": "0",
      "max": ""
     }
    },
    {
     "name": "children",
     "type": "Object[]",
     "description": "An array of child elements.",
     "access": "readonly"
    },
    {
     "name": "enabled",
     "type": "boolean",
     "description": "True if this element is enabled.",
     "access": "read/write"
    },
    {
     "name": "graphics",
     "type": "ScriptUIGraphics",
     "description": "The graphics object that can be used to customize the element's appearance, in response to the onDraw event.",
     "access": "readonly"
    },
    {
     "name": "helpTip",
     "type": "string",
     "description": "The help text that is displayed when the mouse hovers over the element.",
     "access": "read/write"
    },
    {
     "name": "indent",
     "type": "number",
     "description": "The number of pixels to indent the element during automatic layout.",
     "access": "read/write",
     "range": {
      "min": "0",
      "max": ""
     }
    },
    {
     "name": "justify",
     "type": "string",
     "description": "The default text justification style for child text elements.",
     "access": "read/write",
     "value": "left"
    },
    {
     "name": "location",
     "type": "Point",
     "description": "The upper left corner of this element relative to its parent.",
     "access": "read/write"
    },
    {
     "name": "maximumSize",
     "type": "Dimension",
     "description": "The maximum height and width to which the element can be resized.",
     "access": "read/write"
    },
    {
     "name": "minimumSize",
     "type": "Dimension",
     "description": "The minimum height and width to which the element can be resized.",
     "access": "read/write"
    },
    {
     "name": "parent",
     "type": "any",
     "description": "The parent element.",
     "access": "readonly"
    },
    {
     "name": "preferredSize",
     "type": "Dimension",
     "description": "The preferred size, used by layout managers to determine the best size for each element.",
     "access": "read/write"
    },
    {
     "name": "properties",
     "type": "Object",
     "description": "An object that contains one or more creation properties of the container (properties used only when the element is created).",
     "access": "read/write"
    },
    {
     "name": "shortcutKey",
     "type": "string",
     "description": "The key sequence that invokes the onShortcutKey() callback for this element (in Windows only).",
     "access": "read/write"
    },
    {
     "name": "size",
     "type": "Dimension",
     "description": "The current dimensions of this element.",
     "access": "read/write"
    },
    {
     "name": "text",
     "type": "string",
     "description": "The label text for this button, a localizable string.",
     "access": "read/write"
    },
    {
     "name": "type",
     "type": "string",
     "description": "The element type; \"radiobutton\".",
     "access": "readonly"
    },
    {
     "name": "value",
     "type": "boolean",
     "description": "The selection state of this button, selected when true.",
     "access": "read/write"
    },
    {
     "name": "visible",
     "type": "boolean",
     "description": "True if this element is shown, false if it is hidden.",
     "access": "read/write"
    },
    {
     "name": "window",
     "type": "Window",
     "description": "The window that this element belongs to.",
     "access": "readonly"
    },
    {
     "name": "windowBounds",
     "type": "Bounds",
     "description": "The bounds of this element relative to the top-level parent window.",
     "access": "readonly"
    }
   ],
   "events": [],
   "methods": [
    {
     "name": "addEventListener",
     "returns": "boolean",
     "description": "Registers an event handler for a particular type of event occuring in this element.",
     "parameters": [
      {
       "name": "eventName",
       "type": "string",
       "description": "The name of the event."
      },
      {
       "name": "handler",
       "type": "Function",
       "description": "The function that handles the event."
      },
      {
       "name": "capturePhase",
       "type": "boolean",
       "description": "When true, the handler is called only in the capturing phase of the event propagation."
      }
     ]
    },
    {
     "name": "dispatchEvent",
     "returns": "Event",
     "description": "Simulates the occurrence of an event in this target.",
     "parameters": []
    },
    {
     "name": "hide",
     "returns": "void",
     "description": "Hides this element.",
     "parameters": []
    },
    {
     "name": "notify",
     "returns": "void",
     "description": "Sends a notification message, simulating the specified user interaction event.",
     "parameters": [
      {
       "name": "eventName",
       "type": "string",
       "description": "The name of the control event handler to call.",
       "optional": true
      }
     ]
    },
    {
     "name": "onActivate",
     "returns": "void",
     "description": "An event-handler callback function, called when the element acquires the keyboard focus.",
     "parameters": []
    },
    {
     "name": "onClick",
     "returns": "void",
     "description": "An event-handler callback function, called when the element has been clicked.",
     "parameters": []
    },
    {
     "name": "onDeactivate",
     "returns": "void",
     "description": "An event-handler callback function, called when the element loses the keyboard focus.",
     "parameters": []
    },
    {
     "name": "onDraw",
     "returns": "void",
     "description": "An event-handler callback function, called when the window is about to be drawn.",
     "parameters": []
    },
    {
     "name": "onShortcutKey",
     "returns": "void",
     "description": "An event-handler callback function, called when the element's shortcutKey sequence is typed in the active window.",
     "parameters": []
    },
    {
     "name": "removeEventListener",
     "returns": "boolean",
     "description": "Unregisters an event handler for a particular type of event occuring in this element.",
     "parameters": [
      {
       "name": "eventName",
       "type": "string",
       "description": "The name of the event."
      },
      {
       "name": "handler",
       "type": "Function",
       "description": "The function that handles the event."
      },
      {
       "name": "capturePhase",
       "type": "boolean",
       "description": "Whether to call the handler only in the capturing phase of the event propagation."
      }
     ]
    },
    {
     "name": "show",
     "returns": "void",
     "description": "Shows this element.",
     "parameters": []
    }
   ]
  },
  {
   "name": "ScriptUIBrush",
   "kind": "Object",
   "description": "A painting brush that encapsulates a color or pattern used to fill paths.",
   "properties": [
    {
     "name": "color",
     "type": "number[]",
     "description": "The brush color.",
     "access": "readonly"
    },
    {
     "name": "theme",
     "type": "string",
     "description": "The theme name.",
     "access": "readonly"
    },
    {
     "name": "type",
     "type": "number",
     "description": "The brush type, solid or theme.",
     "access": "readonly"
    }
   ],
   "events": [],
   "methods": []
  },
  {
   "name": "ScriptUIFont",
   "kind": "Object",
   "description": "Encapsulates the qualities of a font used to draw text into a control.",
   "properties": [
    {
     "name": "family",
     "type": "string",
     "description": "The font family name.",
     "access": "readonly"
    },
    {
     "name": "name",
     "type": "string",
     "description": "The complete font name, consisting of the family and style, if specified.",
     "access": "readonly"
    },
    {
     "name": "size",
     "type": "number",
     "description": "The font point size.",
     "access": "readonly"
    },
    {
     "name": "style",
     "type": "Object",
     "description": "The font style. One of the constants in ScriptUIGraphics.FontStyle.",
     "access": "readonly"
    },
    {
     "name": "substitute",
     "type": "string",
     "description": "The name of a substitution font, a fallback font to substitute for this font if the requested font family or style is not available.",
     "access": "readonly"
    }
   ],
   "events": [],
   "methods": []
  },
  {
   "name": "ScriptUIGraphics",
   "kind": "Object",
   "description": "An object used to draw custom graphics, found in the graphics property of window, container, and control objects.",
   "properties": [
    {
     "name": "BrushType",
     "type": "Object",
     "description": "Contains the enumerated constants for the type argument of newBrush().",
     "access": "readonly",
     "static": true
    },
    {
     "name": "PenType",
     "type": "Object",
     "description": "Contains the enumerated constants for the type argument of newPen().",
     "access": "readonly",
     "static": true
    },
    {
     "name": "backgroundColor",
     "type": "ScriptUIBrush",
     "description": "The background color for containers; for non-containers, the parent background color.",
     "access": "read/write"
    },
    {
     "name": "currentPath",
     "type": "ScriptUIPath",
     "description": "The current drawing path, encapsulated in a path object.",
     "access": "readonly"
    },
    {
     "name": "currentPoint",
     "type": "Point",
     "description": "The current position in the current drawing path.",
     "access": "readonly"
    },
    {
     "name": "disabledBackgroundColor",
     "type": "ScriptUIBrush",
     "description": "The background color for containers when disabled or inactive; for non-containers, the parent background color.",
     "access": "read/write"
    },
    {
     "name": "disabledForegroundColor",
     "type": "ScriptUIPen",
     "description": "The text color when the element is disabled or inactive.",
     "access": "read/write"
    },
    {
     "name": "font",
     "type": "ScriptUIFont",
     "description": "The default font to use for displaying text.",
     "access": "read/write"
    },
    {
     "name": "foregroundColor",
     "type": "ScriptUIPen",
     "description": "The text color.",
     "access": "read/write"
    }
   ],
   "events": [],
   "methods": [
    {
     "name": "closePath",
     "returns": "void",
     "description": "Closes the current path.",
     "parameters": []
    },
    {
     "name": "drawFocusRing",
     "returns": "void",
     "description": "Draws a focus ring within a region of this element.",
     "parameters": [
      {
       "name": "left",
       "type": "number",
       "description": "The left coordinate of the region."
      },
      {
       "name": "top",
       "type": "number",
       "description": "The top coordinate of the region."
      },
      {
       "name": "width",
       "type": "number",
       "description": "The width of the region in pixels."
      },
      {
       "name": "height",
       "type": "number",
       "description": "The height of the region in pixels."
      }
     ]
    },
    {
     "name": "drawImage",
     "returns": "void",
     "description": "Draws an image within a given region of the element.",
     "parameters": [
      {
       "name": "image",
       "type": "ScriptUIImage",
       "description": "The image to draw."
      },
      {
       "name": "left",
       "type": "number",
       "description": "The left coordinate of the region, relative to the origin of this element."
      },
      {
       "name": "top",
       "type": "number",
       "description": "The top coordinate of the region, relative to the origin of this element."
      },
      {
       "name": "width",
       "type": "number",
       "description": "The width in pixels. If provided, the image is stretched or shrunk to fit. If omitted, uses the original image width.",
       "optional": true
      },
      {
       "name": "height",
       "type": "number",
       "description": "The height in pixels. If provided, the image is stretched or shrunk to fit. If omitted, uses the original image height.",
       "optional": true
      }
     ]
    },
    {
     "name": "drawOSControl",
     "returns": "void",
     "description": "Draw the platform-specific control associated with this element.",
     "parameters": []
    },
    {
     "name": "drawString",
     "returns": "void",
     "description": "Draw a string of text starting at a given point in this element, using a given drawing pen and font.",
     "parameters": [
      {
       "name": "text",
       "type": "string",
       "description": "The text string."
      },
      {
       "name": "pen",
       "type": "ScriptUIPen",
       "description": "The drawing pen to use."
      },
      {
       "name": "x",
       "type": "number",
       "description": "The left coordinate, relative to the origin of this element."
      },
      {
       "name": "y",
       "type": "number",
       "description": "The top coordinate, relative to the origin of this element."
      },
      {
       "name": "font",
       "type": "ScriptUIFont",
       "description": "The font to use. Default is the font value in this object.",
       "optional": true
      }
     ]
    },
    {
     "name": "ellipsePath",
     "returns": "Point",
     "description": "Defines an elliptical path within a given rectangular area in the currentPath object, which can be filled using fillPath() or stroked using strokePath().",
     "parameters": [
      {
       "name": "left",
       "type": "number",
       "description": "The left coordinate of the region, relative to the origin of this element."
      },
      {
       "name": "top",
       "type": "number",
       "description": "The top coordinate of the region, relative to the origin of this element."
      },
      {
       "name": "width",
       "type": "number",
       "description": "The width of the region in pixels."
      },
      {
       "name": "height",
       "type": "number",
       "description": "The height of the region in pixels."
      }
     ]
    },
    {
     "name": "fillPath",
     "returns": "void",
     "description": "Fills a path using a given painting brush.",
     "parameters": [
      {
       "name": "brush",
       "type": "ScriptUIBrush",
       "description": "The brush object that defines the fill color."
      },
      {
       "name": "path",
       "type": "ScriptUIPath",
       "description": "The path object. Default is the currentPath.",
       "optional": true
      }
     ]
    },
    {
     "name": "lineTo",
     "returns": "Point",
     "description": "Adds a path segment to the currentPath.",
     "parameters": [
      {
       "name": "x",
       "type": "number",
       "description": "The X coordinate for the destination point, relative to the origin of this element."
      },
      {
       "name": "y",
       "type": "number",
       "description": "The Y coordinate for the destination point, relative to the origin of this element."
      }
     ]
    },
    {
     "name": "measureString",
     "returns": "Dimension",
     "description": "Calculates the size needed to display a string using the given font.",
     "parameters": [
      {
       "name": "text",
       "type": "string",
       "description": "The text string to measure."
      },
      {
       "name": "font",
       "type": "ScriptUIFont",
       "description": "The font to use. Default is the font value in this object.",
       "optional": true
      },
      {
       "name": "boundingWidth",
       "type": "number",
       "description": "The bounding width.",
       "optional": true
      }
     ]
    },
    {
     "name": "moveTo",
     "returns": "Point",
     "description": "Adds a given point to the currentPath, and makes it the current drawing position.",
     "parameters": [
      {
       "name": "x",
       "type": "number",
       "description": "The X coordinate for the new point, relative to the origin of this element."
      },
      {
       "name": "y",
       "type": "number",
       "description": "The Y coordinate for the new point, relative to the origin of this element."
      }
     ]
    },
    {
     "name": "newBrush",
     "returns": "ScriptUIBrush",
     "description": "Creates a new painting brush object.",
     "parameters": [
      {
       "name": "type",
       "type": "number",
       "description": "The brush type, solid or theme."
      },
      {
       "name": "color",
       "type": "(number | string)[]",
       "description": "The brush color."
      }
     ]
    },
    {
     "name": "newPath",
     "returns": "ScriptUIPath",
     "description": "Creates a new, empty path object.",
     "parameters": []
    },
    {
     "name": "newPen",
     "returns": "ScriptUIPen",
     "description": "Creates a new drawing pen object.",
     "parameters": [
      {
       "name": "type",
       "type": "number",
       "description": "The pen type, solid or theme."
      },
      {
       "name": "color",
       "type": "(number | string)[]",
       "description": "The pen color."
      },
      {
       "name": "width",
       "type": "number",
       "description": "The width of the pen line in pixels."
      }
     ]
    },
    {
     "name": "rectPath",
     "returns": "Point",
     "description": "Defines a rectangular path in the currentPath object.",
     "parameters": [
      {
       "name": "left",
       "type": "number",
       "description": "The left coordinate relative to the origin of this element."
      },
      {
       "name": "top",
       "type": "number",
       "description": "The top coordinate relative to the origin of this element."
      },
      {
       "name": "width",
       "type": "number",
       "description": "The width in pixels."
      },
      {
       "name": "height",
       "type": "number",
       "description": "The height in pixels."
      }
     ]
    },
    {
     "name": "strokePath",
     "returns": "void",
     "description": "Strokes the path segments of a path with a given drawing pen.",
     "parameters": [
      {
       "name": "pen",
       "type": "ScriptUIPen",
       "description": "The drawing pen that defines the color and line width."
      },
      {
       "name": "path",
       "type": "ScriptUIPath",
       "description": "The path object. Default is the currentPath.",
       "optional": true
      }
     ]
    }
   ]
  },
  {
   "name": "ScriptUIImage",
   "kind": "Object",
   "description": "Encapsulates a set of images that can be drawn into a control.",
   "properties": [
    {
     "name": "format",
     "type": "string",
     "description": "The image format. One of: resource, JPEG, GIF, TIFF, PNG, or PICT (Macintosh).",
     "access": "readonly"
    },
    {
     "name": "name",
     "type": "string",
     "description": "The image name. Either the file name, or the resource name.",
     "access": "readonly"
    },
    {
     "name": "pathname",
     "type": "string",
     "description": "The full path to the file that contains the image.",
     "access": "readonly"
    },
    {
     "name": "size",
     "type": "Dimension",
     "description": "The image size in pixels.",
     "access": "readonly"
    }
   ],
   "events": [],
   "methods": []
  },
  {
   "name": "ScriptUIPath",
   "kind": "Object",
   "description": "A helper object that encapsulates a drawing path for a figure to be drawn into a window or control.",
   "properties": [],
   "events": [],
   "methods": []
  },
  {
   "name": "ScriptUIPen",
   "kind": "Object",
   "description": "A drawing pen that defines a color and line width used to stroke paths.",
   "properties": [
    {
     "name": "color",
     "type": "number[]",
     "description": "The pen color.",
     "access": "readonly"
    },
    {
     "name": "lineWidth",
     "type": "number",
     "description": "The pixel width of the drawing line.",
     "access": "read/write",
     "range": {
      "min": "1",
      "max": ""
     }
    },
    {
     "name": "theme",
     "type": "string",
     "description": "The theme name.",
     "access": "readonly"
    },
    {
     "name": "type",
     "type": "string",
     "description": "The pen type, solid or theme.",
     "access": "readonly"
    }
   ],
   "events": [],
   "methods": []
  },
  {
   "name": "ScriptUI",
   "kind": "Object",
   "description": "A global class containing central information about ScriptUI. Not instantiable.",
   "properties": [
    {
     "name": "Alignment",
     "type": "string",
     "description": "Collects the enumerated values that can be used in the alignment and alignChildren properties of controls and containers.",
     "access": "readonly",
     "static": true
    },
    {
     "name": "FontStyle",
     "type": "Object",
     "description": "Collects the enumerated values that can be used as the style argument to the ScriptUI.newFont() method.",
     "access": "readonly",
     "static": true
    },
    {
     "name": "applicationFonts",
     "type": "Object",
     "description": "The font constants defined by the host application.",
     "access": "readonly",
     "static": true
    },
    {
     "name": "compatibility",
     "type": "Object",
     "description": "An object whose properties are the names of compatability modes supported by the host application.",
     "access": "readonly",
     "static": true
    },
    {
     "name": "coreVersion",
     "type": "string",
     "description": "A string containing the internal version number of the ScriptUI module.",
     "access": "readonly",
     "static": true
    },
    {
     "name": "environment",
     "type": "Environment",
     "description": "An object whose properties define attributes of the environment in which ScriptUI operates.",
     "access": "readonly",
     "static": true
    },
    {
     "name": "events",
     "type": "Events",
     "description": "An object whose properties and methods provide access to objects used in the ScriptUI event system.",
     "access": "readonly",
     "static": true
    },
    {
     "name": "frameworkName",
     "type": "string",
     "description": "A string containing the name of the UI component framework with which this version of ScriptUI is compatible.",
     "access": "readonly",
     "static": true
    },
    {
     "name": "version",
     "type": "any",
     "description": "A string containing the version number of the ScriptUI component framework",
     "access": "readonly",
     "static": true
    }
   ],
   "events": [],
   "methods": [
    {
     "name": "getResourceText",
     "returns": "string",
     "description": "Finds and returns the resource for a given text string from the host application's resource data.",
     "parameters": [
      {
       "name": "text",
       "type": "string",
       "description": "The text to match."
      }
     ]
    },
    {
     "name": "newFont",
     "returns": "ScriptUIFont",
     "description": "Creates a new font object for use in text controls and titles.",
     "parameters": [
      {
       "name": "name",
       "type": "string",
       "description": "The font name, or the font family name."
      },
      {
       "name": "style",
       "type": "string | number",
       "description": "The font style; can be string, or one of the values of ScriptUI.FontStyle."
      },
      {
       "name": "size",
       "type": "number",
       "description": "The font size in points."
      }
     ]
    },
    {
     "name": "newImage",
     "returns": "ScriptUIImage",
     "description": "Loads a new image from resources or disk files into an image object.",
     "parameters": [
      {
       "name": "normal",
       "type": "string",
       "description": "The resource name or the disk file path to the image used for the normal state."
      },
      {
       "name": "disabled",
       "type": "string",
       "description": "The resource name, or the disk file path to the image used for the disabled state.",
       "optional": true
      },
      {
       "name": "pressed",
       "type": "string",
       "description": "The resource name, or the file-system path to the image used for the pressed state.",
       "optional": true
      },
      {
       "name": "rollover",
       "type": "string",
       "description": "The resource name, or the file-system path to the image used for the rollover state.",
       "optional": true
      }
     ]
    }
   ]
  },
  {
   "name": "Scrollbar",
   "kind": "Object",
   "description": "A scrollbar with a draggable scroll indicator and stepper buttons to move the indicator.",
   "properties": [
    {
     "name": "active",
     "type": "boolean",
     "description": "True if this element is active.",
     "access": "read/write"
    },
    {
     "name": "alignment",
     "type": "string",
     "description": "The alignment style for this element. If defined, this value overrides the alignChildren setting for the parent container.",
     "access": "read/write"
    },
    {
     "name": "bounds",
     "type": "Bounds",
     "description": "The boundaries of the element, in parent-relative coordinates.",
     "access": "read/write"
    },
    {
     "name": "children",
     "type": "Object[]",
     "description": "An array of child elements.",
     "access": "readonly"
    },
    {
     "name": "enabled",
     "type": "boolean",
     "description": "True if this element is enabled.",
     "access": "read/write"
    },
    {
     "name": "graphics",
     "type": "ScriptUIGraphics",
     "description": "The graphics object that can be used to customize the element's appearance, in response to the onDraw() event.",
     "access": "readonly"
    },
    {
     "name": "helpTip",
     "type": "string",
     "description": "The help text that is displayed when the mouse hovers over the element.",
     "access": "read/write"
    },
    {
     "name": "indent",
     "type": "number",
     "description": "The number of pixels to indent the element during automatic layout.",
     "access": "read/write",
     "range": {
      "min": "0",
      "max": ""
     }
    },
    {
     "name": "jumpdelta",
     "type": "number",
     "description": "The amount to increment or decrement a scrollbar indicator's position when the user clicks ahead or behind the moveable element.",
     "access": "read/write",
     "range": {
      "min": "0",
      "max": ""
     }
    },
    {
     "name": "location",
     "type": "Point",
     "description": "The upper left corner of this element relative to its parent.",
     "access": "read/write"
    },
    {
     "name": "maximumSize",
     "type": "Dimension",
     "description": "The maximum height and width to which the element can be resized.",
     "access": "read/write"
    },
    {
     "name": "maxvalue",
     "type": "number",
     "description": "The maximum value allowed in the value property.",
     "access": "read/write"
    },
    {
     "name": "minimumSize",
     "type": "Dimension",
     "description": "The minimum height and width to which the element can be resized.",
     "access": "read/write"
    },
    {
     "name": "minvalue",
     "type": "number",
     "description": "The minimum value allowed in the value property.",
     "access": "read/write"
    },
    {
     "name": "parent",
     "type": "any",
     "description": "The parent element.",
     "access": "readonly"
    },
    {
     "name": "preferredSize",
     "type": "Dimension",
     "description": "The preferred size, used by layout managers to determine the best size for each element.",
     "access": "read/write"
    },
    {
     "name": "properties",
     "type": "Object",
     "description": "An object that contains one or more creation properties of the container (properties used only when the element is created).",
     "access": "read/write"
    },
    {
     "name": "shortcutKey",
     "type": "string",
     "description": "The key sequence that invokes the onShortcutKey() callback for this element (in Windows only).",
     "access": "read/write"
    },
    {
     "name": "size",
     "type": "Dimension",
     "description": "The current dimensions of this element.",
     "access": "read/write"
    },
    {
     "name": "stepdelta",
     "type": "number",
     "description": "The amount by which to increment or decrement a scrollbar element's position when the user clicks a stepper button.",
     "access": "read/write",
     "range": {
      "min": "0",
      "max": ""
     }
    },
    {
     "name": "type",
     "type": "string",
     "description": "The element type, \"scrollbar\".",
     "access": "readonly"
    },
    {
     "name": "value",
     "type": "number",
     "description": "The current position of the indicator.",
     "access": "read/write"
    },
    {
     "name": "visible",
     "type": "boolean",
     "description": "True if this element is shown, false if it is hidden.",
     "access": "read/write"
    },
    {
     "name": "window",
     "type": "Window",
     "description": "The window that this element belongs to.",
     "access": "readonly"
    },
    {
     "name": "windowBounds",
     "type": "Bounds",
     "description": "The bounds of this element relative to the top-level parent window.",
     "access": "readonly"
    }
   ],
   "events": [],
   "methods": [
    {
     "name": "addEventListener",
     "returns": "boolean",
     "description": "Registers an event handler for a particular type of event occuring in this element.",
     "parameters": [
      {
       "name": "eventName",
       "type": "string",
       "description": "The name of the event."
      },
      {
       "name": "handler",
       "type": "Function",
       "description": "The function that handles the event."
      },
      {
       "name": "capturePhase",
       "type": "boolean",
       "description": "When true, the handler is called only in the capturing phase of the event propagation."
      }
     ]
    },
    {
     "name": "dispatchEvent",
     "returns": "Event",
     "description": "Simulates the occurrence of an event in this target.",
     "parameters": []
    },
    {
     "name": "hide",
     "returns": "void",
     "description": "Hides this element.",
     "parameters": []
    },
    {
     "name": "notify",
     "returns": "void",
     "description": "Sends a notification message, simulating the specified user interaction event.",
     "parameters": [
      {
       "name": "eventName",
       "type": "string",
       "description": "The name of the control event handler to call.",
       "optional": true
      }
     ]
    },
    {
     "name": "onActivate",
     "returns": "void",
     "description": "An event-handler callback function, called when the element acquires the keyboard focus.",
     "parameters": []
    },
    {
     "name": "onChange",
     "returns": "void",
     "description": "An event-handler callback function, called when the user has finished dragging the position indicator, or has clicked the control.",
     "parameters": []
    },
    {
     "name": "onChanging",
     "returns": "void",
     "description": "An event-handler callback function, called when the content of the element is in the process of changing",
     "parameters": []
    },
    {
     "name": "onDeactivate",
     "returns": "void",
     "description": "An event-handler callback function, called when the element loses the keyboard focus.",
     "parameters": []
    },
    {
     "name": "onDraw",
     "returns": "void",
     "description": "An event-handler callback function, called when the window is about to be drawn.",
     "parameters": []
    },
    {
     "name": "onShortcutKey",
     "returns": "void",
     "description": "An event-handler callback function, called when the element's shortcutKey sequence is typed in the active window.",
     "parameters": []
    },
    {
     "name": "removeEventListener",
     "returns": "boolean",
     "description": "Unregisters an event handler for a particular type of event occuring in this element.",
     "parameters": [
      {
       "name": "eventName",
       "type": "string",
       "description": "The name of the event."
      },
      {
       "name": "handler",
       "type": "Function",
       "description": "The function that handles the event."
      },
      {
       "name": "capturePhase",
       "type": "boolean",
       "description": "Whether to call the handler only in the capturing phase of the event propagation."
      }
     ]
    },
    {
     "name": "show",
     "returns": "void",
     "description": "Shows this element.",
     "parameters": []
    }
   ]
  },
  {
   "name": "Slider",
   "kind": "Object",
   "description": "A slider bar that indicates a numeric value with a moveable position indicator.",
   "properties": [
    {
     "name": "active",
     "type": "boolean",
     "description": "True if this element is active.",
     "access": "read/write"
    },
    {
     "name": "alignment",
     "type": "string",
     "description": "The alignment style for this element. If defined, this value overrides the alignChildren setting for the parent container.",
     "access": "read/write"
    },
    {
     "name": "bounds",
     "type": "Bounds",
     "description": "The boundaries of the element, in parent-relative coordinates.",
     "access": "read/write"
    },
    {
     "name": "children",
     "type": "Object[]",
     "description": "An array of child elements.",
     "access": "readonly"
    },
    {
     "name": "enabled",
     "type": "boolean",
     "description": "True if this element is enabled.",
     "access": "read/write"
    },
    {
     "name": "graphics",
     "type": "ScriptUIGraphics",
     "description": "The graphics object that can be used to customize the element's appearance, in response to the onDraw() event.",
     "access": "readonly"
    },
    {
     "name": "helpTip",
     "type": "string",
     "description": "The help text that is displayed when the mouse hovers over the element.",
     "access": "read/write"
    },
    {
     "name": "indent",
     "type": "number",
     "description": "The number of pixels to indent the element during automatic layout.",
     "access": "read/write",
     "range": {
      "min": "0",
      "max": ""
     }
    },
    {
     "name": "location",
     "type": "Point",
     "description": "The upper left corner of this element relative to its parent.",
     "access": "read/write"
    },
    {
     "name": "maximumSize",
     "type": "Dimension",
     "description": "The maximum height and width to which the element can be resized.",
     "access": "read/write"
    },
    {
     "name": "maxvalue",
     "type": "number",
     "description": "The maximum value allowed in the value property.",
     "access": "read/write"
    },
    {
     "name": "minimumSize",
     "type": "Dimension",
     "description": "The minimum height and width to which the element can be resized.",
     "access": "read/write"
    },
    {
     "name": "minvalue",
     "type": "number",
     "description": "The minimum value allowed in the value property.",
     "access": "read/write"
    },
    {
     "name": "parent",
     "type": "any",
     "description": "The parent element.",
     "access": "readonly"
    },
    {
     "name": "preferredSize",
     "type": "Dimension",
     "description": "The preferred size, used by layout managers to determine the best size for each element.",
     "access": "read/write"
    },
    {
     "name": "properties",
     "type": "Object",
     "description": "An object that contains one or more creation properties of the container (properties used only when the element is created).",
     "access": "read/write"
    },
    {
     "name": "shortcutKey",
     "type": "string",
     "description": "The key sequence that invokes the onShortcutKey() callback for this element (in Windows only).",
     "access": "read/write"
    },
    {
     "name": "size",
     "type": "Dimension",
     "description": "The current dimensions of this element.",
     "access": "read/write"
    },
    {
     "name": "type",
     "type": "string",
     "description": "The element type, \"slider\".",
     "access": "readonly"
    },
    {
     "name": "value",
     "type": "number",
     "description": "The current position of the indicator.",
     "access": "read/write"
    },
    {
     "name": "visible",
     "type": "boolean",
     "description": "True if this element is shown, false if it is hidden.",
     "access": "read/write"
    },
    {
     "name": "window",
     "type": "Window",
     "description": "The window that this element belongs to.",
     "access": "readonly"
    },
    {
     "name": "windowBounds",
     "type": "Bounds",
     "description": "The bounds of this element relative to the top-level parent window.",
     "access": "readonly"
    }
   ],
   "events": [],
   "methods": [
    {
     "name": "addEventListener",
     "returns": "boolean",
     "description": "Registers an event handler for a particular type of event occuring in this element.",
     "parameters": [
      {
       "name": "eventName",
       "type": "string",
       "description": "The name of the event."
      },
      {
       "name": "handler",
       "type": "Function",
       "description": "The function that handles the event."
      },
      {
       "name": "capturePhase",
       "type": "boolean",
       "description": "When true, the handler is called only in the capturing phase of the event propagation."
      }
     ]
    },
    {
     "name": "dispatchEvent",
     "returns": "Event",
     "description": "Simulates the occurrence of an event in this target.",
     "parameters": []
    },
    {
     "name": "hide",
     "returns": "void",
     "description": "Hides this element.",
     "parameters": []
    },
    {
     "name": "notify",
     "returns": "void",
     "description": "Sends a notification message, simulating the specified user interaction event.",
     "parameters": [
      {
       "name": "eventName",
       "type": "string",
       "description": "The name of the control event handler to call.",
       "optional": true
      }
     ]
    },
    {
     "name": "onActivate",
     "returns": "void",
     "description": "An event-handler callback function, called when the element acquires the keyboard focus.",
     "parameters": []
    },
    {
     "name": "onChange",
     "returns": "void",
     "description": "An event-handler callback function, called when the user has finished dragging the position indicator, or has clicked the control.",
     "parameters": []
    },
    {
     "name": "onChanging",
     "returns": "void",
     "description": "An event-handler callback function, called when the content of the element is in the process of changing",
     "parameters": []
    },
    {
     "name": "onDeactivate",
     "returns": "void",
     "description": "An event-handler callback function, called when the element loses the keyboard focus.",
     "parameters": []
    },
    {
     "name": "onDraw",
     "returns": "void",
     "description": "An event-handler callback function, called when the window is about to be drawn.",
     "parameters": []
    },
    {
     "name": "onShortcutKey",
     "returns": "void",
     "description": "An event-handler callback function, called when the element's shortcutKey sequence is typed in the active window.",
     "parameters": []
    },
    {
     "name": "removeEventListener",
     "returns": "boolean",
     "description": "Unregisters an event handler for a particular type of event occuring in this element.",
     "parameters": [
      {
       "name": "eventName",
       "type": "string",
       "description": "The name of the event."
      },
      {
       "name": "handler",
       "type": "Function",
       "description": "The function that handles the event."
      },
      {
       "name": "capturePhase",
       "type": "boolean",
       "description": "Whether to call the handler only in the capturing phase of the event propagation."
      }
     ]
    },
    {
     "name": "show",
     "returns": "void",
     "description": "Shows this element.",
     "parameters": []
    }
   ]
  },
  {
   "name": "StaticText",
   "kind": "Object",
   "description": "A text label that the user cannot change.",
   "properties": [
    {
     "name": "active",
     "type": "boolean",
     "description": "Always false. This element cannot have input focus.",
     "access": "read/write"
    },
    {
     "name": "alignment",
     "type": "string",
     "description": "The alignment style for this element. If defined, this value overrides the alignChildren setting for the parent container.",
     "access": "read/write"
    },
    {
     "name": "bounds",
     "type": "Bounds",
     "description": "The boundaries of the element, in parent-relative coordinates.",
     "access": "read/write"
    },
    {
     "name": "characters",
     "type": "number",
     "description": "A number of characters for which to reserve space when calculating the preferred size of the element.",
     "access": "read/write",
     "range": {
      "min": "0",
      "max": ""
     }
    },
    {
     "name": "children",
     "type": "Object[]",
     "description": "An array of child elements.",
     "access": "readonly"
    },
    {
     "name": "enabled",
     "type": "boolean",
     "description": "True if this element is enabled.",
     "access": "read/write"
    },
    {
     "name": "graphics",
     "type": "ScriptUIGraphics",
     "description": "The graphics object that can be used to customize the element's appearance, in response to the onDraw() event.",
     "access": "readonly"
    },
    {
     "name": "helpTip",
     "type": "string",
     "description": "The help text that is displayed when the mouse hovers over the element.",
     "access": "read/write"
    },
    {
     "name": "indent",
     "type": "number",
     "description": "The number of pixels to indent the element during automatic layout.",
     "access": "read/write",
     "range": {
      "min": "0",
      "max": ""
     }
    },
    {
     "name": "justify",
     "type": "string",
     "description": "The text justification style.",
     "access": "read/write",
     "value": "left"
    },
    {
     "name": "location",
     "type": "Point",
     "description": "The upper left corner of this element relative to its parent.",
     "access": "read/write"
    },
    {
     "name": "maximumSize",
     "type": "Dimension",
     "description": "The maximum height and width to which the element can be resized.",
     "access": "read/write"
    },
    {
     "name": "minimumSize",
     "type": "Dimension",
     "description": "The minimum height and width to which the element can be resized.",
     "access": "read/write"
    },
    {
     "name": "parent",
     "type": "any",
     "description": "The parent element.",
     "access": "readonly"
    },
    {
     "name": "preferredSize",
     "type": "Dimension",
     "description": "The preferred size, used by layout managers to determine the best size for each element.",
     "access": "read/write"
    },
    {
     "name": "properties",
     "type": "Object",
     "description": "An object that contains one or more creation properties of the container (properties used only when the element is created).",
     "access": "read/write"
    },
    {
     "name": "shortcutKey",
     "type": "string",
     "description": "The key sequence that invokes the onShortcutKey() callback for this element (in Windows only).",
     "access": "read/write"
    },
    {
     "name": "size",
     "type": "Dimension",
     "description": "The current dimensions of this element.",
     "access": "read/write"
    },
    {
     "name": "text",
     "type": "string",
     "description": "The text to display, a localizable string.",
     "access": "read/write"
    },
    {
     "name": "type",
     "type": "string",
     "description": "The element type, \"statictext\".",
     "access": "readonly"
    },
    {
     "name": "visible",
     "type": "boolean",
     "description": "True if this element is shown, false if it is hidden.",
     "access": "read/write"
    },
    {
     "name": "window",
     "type": "Window",
     "description": "The window that this element belongs to.",
     "access": "readonly"
    },
    {
     "name": "windowBounds",
     "type": "Bounds",
     "description": "The bounds of this element relative to the top-level parent window.",
     "access": "readonly"
    }
   ],
   "events": [],
   "methods": [
    {
     "name": "addEventListener",
     "returns": "boolean",
     "description": "Registers an event handler for a particular type of event occuring in this element.",
     "parameters": [
      {
       "name": "eventName",
       "type": "string",
       "description": "The name of the event."
      },
      {
       "name": "handler",
       "type": "Function",
       "description": "The function that handles the event."
      },
      {
       "name": "capturePhase",
       "type": "boolean",
       "description": "When true, the handler is called only in the capturing phase of the event propagation."
      }
     ]
    },
    {
     "name": "dispatchEvent",
     "returns": "Event",
     "description": "Simulates the occurrence of an event in this target.",
     "parameters": []
    },
    {
     "name": "hide",
     "returns": "void",
     "description": "Hides this element.",
     "parameters": []
    },
    {
     "name": "notify",
     "returns": "void",
     "description": "Sends a notification message, simulating the specified user interaction event.",
     "parameters": [
      {
       "name": "eventName",
       "type": "string",
       "description": "The name of the control event handler to call.",
       "optional": true
      }
     ]
    },
    {
     "name": "onDraw",
     "returns": "void",
     "description": "An event-handler callback function, called when the window is about to be drawn.",
     "parameters": []
    },
    {
     "name": "onShortcutKey",
     "returns": "void",
     "description": "An event-handler callback function, called when the element's shortcutKey sequence is typed in the active window.",
     "parameters": []
    },
    {
     "name": "removeEventListener",
     "returns": "boolean",
     "description": "Unregisters an event handler for a particular type of event occuring in this element.",
     "parameters": [
      {
       "name": "eventName",
       "type": "string",
       "description": "The name of the event."
      },
      {
       "name": "handler",
       "type": "Function",
       "description": "The function that handles the event."
      },
      {
       "name": "capturePhase",
       "type": "boolean",
       "description": "Whether to call the handler only in the capturing phase of the event propagation."
      }
     ]
    },
    {
     "name": "show",
     "returns": "void",
     "description": "Shows this element.",
     "parameters": []
    }
   ]
  },
  {
   "name": "TreeView",
   "kind": "Object",
   "description": "A hierarchical list whose items can contain child items.",
   "properties": [
    {
     "name": "active",
     "type": "boolean",
     "description": "True if this element is active.",
     "access": "read/write"
    },
    {
     "name": "alignment",
     "type": "string",
     "description": "The alignment style for this element. If defined, this value overrides the alignChildren setting for the parent container.",
     "access": "read/write"
    },
    {
     "name": "bounds",
     "type": "Bounds",
     "description": "The boundaries of the element, in parent-relative coordinates.",
     "access": "read/write"
    },
    {
     "name": "children",
     "type": "Object[]",
     "description": "An array of child elements.",
     "access": "readonly"
    },
    {
     "name": "enabled",
     "type": "boolean",
     "description": "True if this element is enabled.",
     "access": "read/write"
    },
    {
     "name": "graphics",
     "type": "ScriptUIGraphics",
     "description": "The graphics object that can be used to customize the element's appearance, in response to the onDraw() event.",
     "access": "readonly"
    },
    {
     "name": "helpTip",
     "type": "string",
     "description": "The help text that is displayed when the mouse hovers over the element.",
     "access": "read/write"
    },
    {
     "name": "indent",
     "type": "number",
     "description": "The number of pixels to indent the element during automatic layout.",
     "access": "read/write",
     "range": {
      "min": "0",
      "max": ""
     }
    },
    {
     "name": "itemSize",
     "type": "Dimension",
     "description": "The width and height in pixels of each item in the list.",
     "access": "read/write"
    },
    {
     "name": "items",
     "type": "ListItem[]",
     "description": "The array of top-level items displayed in the list.",
     "access": "readonly"
    },
    {
     "name": "location",
     "type": "Point",
     "description": "The upper left corner of this element relative to its parent.",
     "access": "read/write"
    },
    {
     "name": "maximumSize",
     "type": "Dimension",
     "description": "The maximum height and width to which the element can be resized.",
     "access": "read/write"
    },
    {
     "name": "minimumSize",
     "type": "Dimension",
     "description": "The minimum height and width to which the element can be resized.",
     "access": "read/write"
    },
    {
     "name": "parent",
     "type": "any",
     "description": "The parent element.",
     "access": "readonly"
    },
    {
     "name": "preferredSize",
     "type": "Dimension",
     "description": "The preferred size, used by layout managers to determine the best size for each element.",
     "access": "read/write"
    },
    {
     "name": "properties",
     "type": "Object",
     "description": "An object that contains one or more creation properties of the control (properties used only when the element is created).",
     "access": "read/write"
    },
    {
     "name": "selection",
     "type": "ListItem",
     "description": "The currently selected list item.",
     "access": "read/write"
    },
    {
     "name": "shortcutKey",
     "type": "string",
     "description": "The key sequence that invokes the onShortcutKey() callback for this element (in Windows only).",
     "access": "read/write"
    },
    {
     "name": "size",
     "type": "Dimension",
     "description": "The current dimensions of this element.",
     "access": "read/write"
    },
    {
     "name": "type",
     "type": "string",
     "description": "The element type, \"treeview\".",
     "access": "readonly"
    },
    {
     "name": "visible",
     "type": "boolean",
     "description": "True if this element is shown, false if it is hidden.",
     "access": "read/write"
    },
    {
     "name": "window",
     "type": "Window",
     "description": "The window that this element belongs to.",
     "access": "readonly"
    },
    {
     "name": "windowBounds",
     "type": "Bounds",
     "description": "The bounds of this element relative to the top-level parent window.",
     "access": "readonly"
    }
   ],
   "events": [],
   "methods": [
    {
     "name": "add",
     "returns": "ListItem",
     "description": "Adds an item to the top-level choices in this list.",
     "parameters": [
      {
       "name": "type",
       "type": "string",
       "description": "The type of the child element, the string \"item\"."
      },
      {
       "name": "text",
       "type": "string",
       "description": "The localizable text label for the item.",
       "optional": true
      }
     ]
    },
    {
     "name": "addEventListener",
     "returns": "boolean",
     "description": "Registers an event handler for a particular type of event occuring in this element.",
     "parameters": [
      {
       "name": "eventName",
       "type": "string",
       "description": "The name of the event."
      },
      {
       "name": "handler",
       "type": "Function",
       "description": "The function that handles the event."
      },
      {
       "name": "capturePhase",
       "type": "boolean",
       "description": "When true, the handler is called only in the capturing phase of the event propagation."
      }
     ]
    },
    {
     "name": "dispatchEvent",
     "returns": "Event",
     "description": "Simulates the occurrence of an event in this target.",
     "parameters": []
    },
    {
     "name": "find",
     "returns": "ListItem",
     "description": "Retrieves an item object from the list that has a given text label.",
     "parameters": [
      {
       "name": "text",
       "type": "string",
       "description": "The text string to match."
      }
     ]
    },
    {
     "name": "hide",
     "returns": "void",
     "description": "Hides this element.",
     "parameters": []
    },
    {
     "name": "notify",
     "returns": "void",
     "description": "Sends a notification message, simulating the specified user interaction event.",
     "parameters": [
      {
       "name": "eventName",
       "type": "string",
       "description": "The name of the control event handler to call.",
       "optional": true
      }
     ]
    },
    {
     "name": "onActivate",
     "returns": "void",
     "description": "An event-handler callback function, called when the element acquires the keyboard focus.",
     "parameters": []
    },
    {
     "name": "onChange",
     "returns": "void",
     "description": "An event-handler callback function, called when the content of the element has been changed",
     "parameters": []
    },
    {
     "name": "onCollapse",
     "returns": "void",
     "description": "An event-handler callback function, called when the user collapses (closes) an expanded node in the treeview.",
     "parameters": [
      {
       "name": "item",
       "type": "ListItem",
       "description": "The ListItem node that collapsed."
      }
     ]
    },
    {
     "name": "onDeactivate",
     "returns": "void",
     "description": "An event-handler callback function, called when the element loses the keyboard focus.",
     "parameters": []
    },
    {
     "name": "onDraw",
     "returns": "void",
     "description": "An event-handler callback function, called when the window is about to be drawn.",
     "parameters": []
    },
    {
     "name": "onExpand",
     "returns": "void",
     "description": "An event-handler callback function, called when the user expands (opens) a collapsed node in the treeview.",
     "parameters": [
      {
       "name": "item",
       "type": "ListItem",
       "description": "The ListItem node that expanded."
      }
     ]
    },
    {
     "name": "onShortcutKey",
     "returns": "void",
     "description": "An event-handler callback function, called when the element's shortcutKey sequence is typed in the active window.",
     "parameters": []
    },
    {
     "name": "remove",
     "returns": "void",
     "description": "Removes a child item from the list.",
     "parameters": [
      {
       "name": "what",
       "type": "any",
       "description": "The item or child to remove, specified by 0-based index in the top-level item list, text value, or as a ListItem object."
      }
     ]
    },
    {
     "name": "removeAll",
     "returns": "void",
     "description": "Removes all child items from the list.",
     "parameters": []
    },
    {
     "name": "removeEventListener",
     "returns": "boolean",
     "description": "Unregisters an event handler for a particular type of event occuring in this element.",
     "parameters": [
      {
       "name": "eventName",
       "type": "string",
       "description": "The name of the event."
      },
      {
       "name": "handler",
       "type": "Function",
       "description": "The function that handles the event."
      },
      {
       "name": "capturePhase",
       "type": "boolean",
       "description": "Whether to call the handler only in the capturing phase of the event propagation."
      }
     ]
    },
    {
     "name": "show",
     "returns": "void",
     "description": "Shows this element.",
     "parameters": []
    }
   ]
  },
  {
   "name": "UIEvent",
   "kind": "Object",
   "description": "Encapsulates input event information for an event that propagates through a container and control hierarchy.",
   "properties": [
    {
     "name": "bubbles",
     "type": "boolean",
     "description": "True if the event is of a type that bubbles.",
     "access": "readonly"
    },
    {
     "name": "cancelable",
     "type": "boolean",
     "description": "True if the default action associated with the event can be canceled with preventDefault().",
     "access": "readonly"
    },
    {
     "name": "captures",
     "type": "boolean",
     "description": "True if this event can be captured.",
     "access": "readonly"
    },
    {
     "name": "currentTarget",
     "type": "boolean",
     "description": "The event target object which is currently handling the event. During capturing and bubbling, this is different from the property target.",
     "access": "readonly"
    },
    {
     "name": "detail",
     "type": "any",
     "description": "The click count for a mouse-click event.",
     "access": "readonly"
    },
    {
     "name": "eventPhase",
     "type": "string",
     "description": "The current phase of event propagation; one of none, target, capture, bubble.",
     "access": "readonly"
    },
    {
     "name": "target",
     "type": "Object",
     "description": "The event target object for this event.",
     "access": "readonly"
    },
    {
     "name": "timeStamp",
     "type": "Date",
     "description": "The date and time at which the event occurred.",
     "access": "readonly"
    },
    {
     "name": "type",
     "type": "string",
     "description": "The name of the event that this object represents.",
     "access": "readonly"
    },
    {
     "name": "view",
     "type": "any",
     "description": "The ScriptUI element that this event relates to.",
     "access": "readonly"
    }
   ],
   "events": [],
   "methods": [
    {
     "name": "UIEvent",
     "returns": "UIEvent",
     "description": "Creates an event.",
     "parameters": [
      {
       "name": "type",
       "type": "string",
       "description": "The event type. See UIEvent.type property."
      },
      {
       "name": "captures",
       "type": "boolean",
       "description": "Set to true if this event can be captured."
      },
      {
       "name": "bubbles",
       "type": "boolean",
       "description": "Set to true if the event bubbles."
      },
      {
       "name": "view",
       "type": "Object",
       "description": "The ScriptUI element that this event relates to.",
       "optional": true
      },
      {
       "name": "detail",
       "type": "number",
       "description": "The click count for a mouse-click event.",
       "optional": true
      }
     ]
    },
    {
     "name": "initEvent",
     "returns": "void",
     "description": "Initializes a UI event as a core W3C event.",
     "parameters": [
      {
       "name": "type",
       "type": "string",
       "description": "The event type."
      },
      {
       "name": "captures",
       "type": "boolean",
       "description": "Set to true if this event can be captured."
      },
      {
       "name": "bubbles",
       "type": "boolean",
       "description": "Set to true if the event bubbles."
      },
      {
       "name": "cancelable",
       "type": "boolean",
       "description": "Set to true if the default action is cancelable."
      }
     ]
    },
    {
     "name": "initUIEvent",
     "returns": "void",
     "description": "Initializes an event.",
     "parameters": [
      {
       "name": "type",
       "type": "string",
       "description": "The event type."
      },
      {
       "name": "captures",
       "type": "boolean",
       "description": "Set to true if this event can be captured."
      },
      {
       "name": "bubbles",
       "type": "boolean",
       "description": "Set to true if the event bubbles."
      },
      {
       "name": "view",
       "type": "Object",
       "description": "The ScriptUI element that this event relates to.",
       "optional": true
      },
      {
       "name": "detail",
       "type": "number",
       "description": "The click count for a mouse-click event.",
       "optional": true
      }
     ]
    },
    {
     "name": "preventDefault",
     "returns": "void",
     "description": "Prevents the default action associated with this event from being called.",
     "parameters": []
    },
    {
     "name": "stopPropagation",
     "returns": "void",
     "description": "Stops the propagation of this event.",
     "parameters": []
    }
   ]
  },
  {
   "name": "Window",
   "kind": "Object",
   "description": "The instance represents a top-level window or dialog box, which contains user-interface elements.",
   "properties": [
    {
     "name": "active",
     "type": "boolean",
     "description": "Set to true to make this window active.",
     "access": "read/write"
    },
    {
     "name": "alignChildren",
     "type": "string",
     "description": "Tells the layout manager how unlike-sized children of this container should be aligned within a column or row.",
     "access": "read/write"
    },
    {
     "name": "alignment",
     "type": "string",
     "description": "The alignment style for child elements of a container. If defined, this value overrides the alignChildren setting for the parent container.",
     "access": "read/write"
    },
    {
     "name": "bounds",
     "type": "Bounds",
     "description": "The bounds of the window's drawable area, excluding the frame, in screen coordinates.",
     "access": "read/write"
    },
    {
     "name": "cancelElement",
     "type": "Object",
     "description": "For windows of type dialog, the UI element to notify when the user presses a cancellation key combination.",
     "access": "read/write"
    },
    {
     "name": "characters",
     "type": "number",
     "description": "A number of characters for which to reserve space when calculating the preferred size of the window.",
     "access": "read/write",
     "range": {
      "min": "0",
      "max": ""
     }
    },
    {
     "name": "children",
     "type": "Object[]",
     "description": "The collection of UI elements that have been added to this container.",
     "access": "readonly"
    },
    {
     "name": "defaultElement",
     "type": "Object",
     "description": "For windows of type dialog, the UI element to notify when the user presses a Enter key.",
     "access": "read/write"
    },
    {
     "name": "enabled",
     "type": "boolean",
     "description": "True if this element is enabled.",
     "access": "read/write"
    },
    {
     "name": "frameBounds",
     "type": "Bounds",
     "description": "The bounds of the window frame in screen coordinates.",
     "access": "readonly"
    },
    {
     "name": "frameLocation",
     "type": "Point",
     "description": "The top left corner of the window frame in screen coordinates.",
     "access": "read/write"
    },
    {
     "name": "frameSize",
     "type": "Dimension",
     "description": "The size and location of the window's frame in screen coordinates.",
     "access": "readonly"
    },
    {
     "name": "frameworkName",
     "type": "string",
     "description": "Deprecated. Use ScriptUI.frameworkName instead.",
     "access": "readonly",
     "static": true
    },
    {
     "name": "graphics",
     "type": "ScriptUIGraphics",
     "description": "The graphics object that can be used to customize the window’s appearance, in response to the onDraw event.",
     "access": "readonly"
    },
    {
     "name": "helpTip",
     "type": "string",
     "description": "The help text that is displayed when the mouse hovers over the element.",
     "access": "read/write"
    },
    {
     "name": "indent",
     "type": "number",
     "description": "The number of pixels to indent the element.",
     "access": "read/write",
     "range": {
      "min": "0",
      "max": ""
     }
    },
    {
     "name": "justify",
     "type": "string",
     "description": "The default text justification style for child text elements.",
     "access": "read/write",
     "value": "left"
    },
    {
     "name": "layout",
     "type": "LayoutManager",
     "description": "The layout manager for this container.",
     "access": "read/write"
    },
    {
     "name": "location",
     "type": "Point",
     "description": "The upper left corner of the window's drawable area.",
     "access": "read/write"
    },
    {
     "name": "margins",
     "type": "number",
     "description": "The number of pixels between the edges of a container and the outermost child elements.",
     "access": "read/write"
    },
    {
     "name": "maximized",
     "type": "boolean",
     "description": "True if the window is expanded.",
     "access": "read/write"
    },
    {
     "name": "maximumSize",
     "type": "Dimension",
     "description": "The largest rectangle to which the window can be resized.",
     "access": "read/write"
    },
    {
     "name": "minimized",
     "type": "boolean",
     "description": "True if the window is minimized or iconified.",
     "access": "read/write"
    },
    {
     "name": "minimumSize",
     "type": "Dimension",
     "description": "The smallest rectangle to which the window can be resized.",
     "access": "read/write"
    },
    {
     "name": "opacity",
     "type": "number",
     "description": "The opacity of the window, in the range [0..1].",
     "access": "read/write",
     "value": "1.0"
    },
    {
     "name": "orientation",
     "type": "string",
     "description": "The layout orientation of children in a container.",
     "access": "read/write"
    },
    {
     "name": "parent",
     "type": "any",
     "description": "The immediate parent element.",
     "access": "readonly"
    },
    {
     "name": "preferredSize",
     "type": "Dimension",
     "description": "The preferred size of the window.",
     "access": "read/write"
    },
    {
     "name": "properties",
     "type": "Object",
     "description": "An object that contains one or more creation properties of the container (properties used only when the element is created).",
     "access": "read/write"
    },
    {
     "name": "shortcutKey",
     "type": "string",
     "description": "The keypress combination that invokes this element's onShortcutKey() callback.",
     "access": "read/write"
    },
    {
     "name": "size",
     "type": "Dimension",
     "description": "The current size and location of the content area of the window in screen coordinates.",
     "access": "read/write"
    },
    {
     "name": "spacing",
     "type": "number",
     "description": "The number of pixels separating one child element from its adjacent sibling element.",
     "access": "read/write"
    },
    {
     "name": "text",
     "type": "string",
     "description": "The title, label, or displayed text, a localizeable string.",
     "access": "read/write"
    },
    {
     "name": "type",
     "type": "string",
     "description": "The element type; \"dialog\", \"palette\", or \"window\".",
     "access": "readonly"
    },
    {
     "name": "version",
     "type": "any",
     "description": "Deprecated. Use ScriptUI.version instead.",
     "access": "readonly",
     "static": true
    },
    {
     "name": "visible",
     "type": "boolean",
     "description": "When true, the element is shown, when false it is hidden.",
     "access": "read/write"
    },
    {
     "name": "window",
     "type": "Window",
     "description": "The window that this element belongs to.",
     "access": "readonly"
    },
    {
     "name": "windowBounds",
     "type": "Bounds",
     "description": "The bounds of this window relative to the top-level parent window.",
     "access": "readonly"
    }
   ],
   "events": [],
   "methods": [
    {
     "name": "Window",
     "returns": "void",
     "description": "Creates a new window.",
     "parameters": [
      {
       "name": "type",
       "type": "string",
       "description": "The window type."
      },
      {
       "name": "title",
       "type": "string",
       "description": "The window title, a localizable string.",
       "optional": true
      },
      {
       "name": "bounds",
       "type": "Bounds",
       "description": "The window's position and size.",
       "optional": true
      },
      {
       "name": "properties",
       "type": "Object",
       "description": "An object containing creation-only properties.",
       "optional": true
      }
     ]
    },
    {
     "name": "add",
     "returns": "Object",
     "description": "Creates and returns a new control or container object and adds it to the children of this window.",
     "parameters": [
      {
       "name": "type",
       "type": "string",
       "description": "The type of the child element, as specified for the type property."
      },
      {
       "name": "bounds",
       "type": "Bounds",
       "description": "A bounds specification that describes the size and position of the new control or container, relative to its parent.",
       "optional": true
      },
      {
       "name": "text",
       "type": "string",
       "description": "The text or label, a localizable string.",
       "optional": true
      },
      {
       "name": "properties",
       "type": "Object",
       "description": "An object that contains one or more creation properties of the new child (properties used only when the element is created).",
       "optional": true
      }
     ]
    },
    {
     "name": "addEventListener",
     "returns": "boolean",
     "description": "Registers an event handler for a particular type of event occuring in this window.",
     "parameters": [
      {
       "name": "eventName",
       "type": "string",
       "description": "The name of the event."
      },
      {
       "name": "handler",
       "type": "Function",
       "description": "The function that handles the event."
      },
      {
       "name": "capturePhase",
       "type": "boolean",
       "description": "When true, the handler is called only in the capturing phase of the event propagation.",
       "optional": true
      }
     ]
    },
    {
     "name": "alert",
     "returns": "void",
     "description": "Displays a platform-standard dialog containing a short message and an OK button.",
     "parameters": [
      {
       "name": "message",
       "type": "string",
       "description": "TThe string for the displayed message."
      },
      {
       "name": "title",
       "type": "string",
       "description": "A string to appear as the title of the dialog, if the platform supports a title.",
       "optional": true
      },
      {
       "name": "errorIcon",
       "type": "boolean",
       "description": "When true, the platform-standard alert icon is replaced by the platform-standard error icon in the dialog."
      }
     ]
    },
    {
     "name": "center",
     "returns": "void",
     "description": "Centers this window on screen or with repect to another window.",
     "parameters": [
      {
       "name": "window",
       "type": "Window",
       "description": "The relative window. If not specified, centers on the screen.",
       "optional": true
      }
     ]
    },
    {
     "name": "close",
     "returns": "void",
     "description": "Closes this window.",
     "parameters": [
      {
       "name": "return",
       "type": "any",
       "description": "A number to be returned from the show() method that invoked this window as a modal dialog.",
       "optional": true
      }
     ]
    },
    {
     "name": "confirm",
     "returns": "boolean",
     "description": "Displays a platform-standard dialog containing a short message and two buttons labeled Yes and No.",
     "parameters": [
      {
       "name": "message",
       "type": "string",
       "description": "The string for the displayed message."
      },
      {
       "name": "noAsDefault",
       "type": "boolean",
       "description": "When true, the No button is the default choice, selected when the user types Enter."
      },
      {
       "name": "title",
       "type": "string",
       "description": "A string to appear as the title of the dialog, if the platform supports a title.",
       "optional": true
      }
     ]
    },
    {
     "name": "dispatchEvent",
     "returns": "UIEvent",
     "description": "Simulates the occurrence of an event in this target.",
     "parameters": []
    },
    {
     "name": "find",
     "returns": "Window",
     "description": "Use this method to find an existing window.",
     "parameters": [
      {
       "name": "type",
       "type": "string",
       "description": "The name of a predefined resource available to JavaScript in the current application; or the window type."
      },
      {
       "name": "title",
       "type": "string",
       "description": "The window title."
      }
     ]
    },
    {
     "name": "hide",
     "returns": "void",
     "description": "Hides this windows.",
     "parameters": []
    },
    {
     "name": "notify",
     "returns": "void",
     "description": "Sends a notification message to all listeners, simulating the specified user interaction event.",
     "parameters": [
      {
       "name": "eventName",
       "type": "string",
       "description": "The event name; if omitted, the default event is sent.",
       "optional": true
      }
     ]
    },
    {
     "name": "onActivate",
     "returns": "void",
     "description": "An event-handler callback function, called when the window acquires the keyboard focus.",
     "parameters": []
    },
    {
     "name": "onClose",
     "returns": "boolean",
     "description": "An event-handler callback function, called when the window is about to be closed.",
     "parameters": []
    },
    {
     "name": "onDeactivate",
     "returns": "void",
     "description": "An event-handler callback function, called when the window loses the keyboard focus.",
     "parameters": []
    },
    {
     "name": "onMove",
     "returns": "void",
     "description": "An event-handler callback function, called when the window has been moved",
     "parameters": []
    },
    {
     "name": "onMoving",
     "returns": "void",
     "description": "An event-handler callback function, called when the window is being moved",
     "parameters": []
    },
    {
     "name": "onResize",
     "returns": "void",
     "description": "An event-handler callback function, called after the window has been resized",
     "parameters": []
    },
    {
     "name": "onResizing",
     "returns": "void",
     "description": "An event-handler callback function, called while a window is being resized",
     "parameters": []
    },
    {
     "name": "onShortcutKey",
     "returns": "void",
     "description": "In Windows only, an event-handler callback function, called a shortcut-key sequence is typed that matches the shortcutKey value for this window.",
     "parameters": []
    },
    {
     "name": "onShow",
     "returns": "void",
     "description": "An event-handler callback function, called just before the window is displayed",
     "parameters": []
    },
    {
     "name": "prompt",
     "returns": "string",
     "description": "Displays a modal dialog that returns the user’s text input.",
     "parameters": [
      {
       "name": "prompt",
       "type": "string",
       "description": "The string for the displayed message."
      },
      {
       "name": "default",
       "type": "string",
       "description": "The initial value to be displayed in the text edit field.",
       "optional": true
      },
      {
       "name": "title",
       "type": "string",
       "description": "A string to appear as the title of the dialog.",
       "optional": true
      }
     ]
    },
    {
     "name": "remove",
     "returns": "void",
     "description": "Removes the specified child control from this window’s children array.",
     "parameters": [
      {
       "name": "what",
       "type": "any",
       "description": "The child control to remove, specified by 0-based index, text property value, or as a control object."
      }
     ]
    },
    {
     "name": "removeEventListener",
     "returns": "boolean",
     "description": "Unregisters an event handler for a particular type of event occuring in this window.",
     "parameters": [
      {
       "name": "eventName",
       "type": "string",
       "description": "The name of the event."
      },
      {
       "name": "handler",
       "type": "Function",
       "description": "The function that handles the event."
      },
      {
       "name": "capturePhase",
       "type": "boolean",
       "description": "Whether to call the handler only in the capturing phase of the event propagation."
      }
     ]
    },
    {
     "name": "show",
     "returns": "void",
     "description": "Makes this window visible.",
     "parameters": []
    }
   ]
  }
 ]
}