Adobe FrameMaker-12 Object Model JS: Boolean

FrameMaker 12.0

Class

Boolean

 Wraps a Boolean value.

QuickLinks

Boolean, toSource, toString, valueOf

Methods

Constructor

bool Boolean (value: any)
Creates and returns a new Boolean object set to the value of the argument converted to a boolean.

ParameterTypeDescription
value any The value to be converted to a Boolean.

Examplenew Boolean(value)

Instances

string toSource ()
Creates a string representation of this object that can be fed back to eval() to re-create an object. Works only with built-in classes.

string toString ()
Returns the string representation of the value of bool.
The method returns the string true if the primitive value of bool is true; otherwise it returns the string false.

Examplebool.toString()

bool valueOf ()
Returns the primitive value of bool.
The method returns true if the primitive value of bool is true; otherwise it returns false.

Examplebool.valueOf()

Element of

Button.active

Button.enabled

Button.visible

Checkbox.active

Checkbox.enabled

Checkbox.value

Checkbox.visible

DrawState.altKeyPressed

DrawState.capsLockKeyPressed

DrawState.cmdKeyPressed

DrawState.ctrlKeyPressed

DrawState.hasFocus

DrawState.leftButtonPressed

DrawState.middleButtonPressed

DrawState.mouseOver

DrawState.numLockKeyPressed

DrawState.optKeyPressed

DrawState.rightButtonPressed

DrawState.shiftKeyPressed

DropDownList.active

DropDownList.enabled

DropDownList.visible

EditText.active

EditText.enabled

EditText.visible

Event.bubbles

Event.cancelable

Event.captures

Event.currentTarget

FlashPlayer.active

FlashPlayer.enabled

FlashPlayer.visible

Group.enabled

Group.visible

IconButton.active

IconButton.enabled

IconButton.visible

KeyboardState.altKey

KeyboardState.ctrlKey

KeyboardState.metaKey

KeyboardState.shiftKey

ListBox.active

ListBox.enabled

ListBox.visible

ListItem.checked

ListItem.expanded

ListItem.selected

Panel.enabled

Panel.visible

Progressbar.enabled

Progressbar.visible

RadioButton.active

RadioButton.enabled

RadioButton.value

RadioButton.visible

Scrollbar.active

Scrollbar.enabled

Scrollbar.visible

Slider.active

Slider.enabled

Slider.visible

StaticText.active

StaticText.enabled

StaticText.visible

TreeView.active

TreeView.enabled

TreeView.visible

UIEvent.bubbles

UIEvent.cancelable

UIEvent.captures

UIEvent.currentTarget

Window.active

Window.enabled

Window.maximized

Window.minimized

Window.visible

Used in:

Boolean Button.addEventListener (eventName: String, handler: Function[, capturePhase: Boolean=false])

Boolean Button.removeEventListener (eventName: String, handler: Function[, capturePhase: Boolean=false])

Boolean Checkbox.addEventListener (eventName: String, handler: Function[, capturePhase: Boolean=false])

Boolean Checkbox.removeEventListener (eventName: String, handler: Function[, capturePhase: Boolean=false])

Boolean DropDownList.addEventListener (eventName: String, handler: Function[, capturePhase: Boolean=false])

Boolean DropDownList.removeEventListener (eventName: String, handler: Function[, capturePhase: Boolean=false])

Boolean EditText.addEventListener (eventName: String, handler: Function[, capturePhase: Boolean=false])

Boolean EditText.removeEventListener (eventName: String, handler: Function[, capturePhase: Boolean=false])

Boolean FlashPlayer.addEventListener (eventName: String, handler: Function[, capturePhase: Boolean=false])

void FlashPlayer.playMovie ([rewind: Boolean=false])

Boolean FlashPlayer.removeEventListener (eventName: String, handler: Function[, capturePhase: Boolean=false])

Boolean Group.addEventListener (eventName: String, handler: Function[, capturePhase: Boolean=false])

Boolean Group.removeEventListener (eventName: String, handler: Function[, capturePhase: Boolean=false])

Boolean IconButton.addEventListener (eventName: String, handler: Function[, capturePhase: Boolean=false])

Boolean IconButton.removeEventListener (eventName: String, handler: Function[, capturePhase: Boolean=false])

Boolean ListBox.addEventListener (eventName: String, handler: Function[, capturePhase: Boolean=false])

Boolean ListBox.removeEventListener (eventName: String, handler: Function[, capturePhase: Boolean=false])

Boolean Panel.addEventListener (eventName: String, handler: Function[, capturePhase: Boolean=false])

Boolean Panel.removeEventListener (eventName: String, handler: Function[, capturePhase: Boolean=false])

Boolean Progressbar.addEventListener (eventName: String, handler: Function[, capturePhase: Boolean=false])

Boolean Progressbar.removeEventListener (eventName: String, handler: Function[, capturePhase: Boolean=false])

Boolean RadioButton.addEventListener (eventName: String, handler: Function[, capturePhase: Boolean=false])

Boolean RadioButton.removeEventListener (eventName: String, handler: Function[, capturePhase: Boolean=false])

Boolean Scrollbar.addEventListener (eventName: String, handler: Function[, capturePhase: Boolean=false])

Boolean Scrollbar.removeEventListener (eventName: String, handler: Function[, capturePhase: Boolean=false])

Boolean Slider.addEventListener (eventName: String, handler: Function[, capturePhase: Boolean=false])

Boolean Slider.removeEventListener (eventName: String, handler: Function[, capturePhase: Boolean=false])

Boolean StaticText.addEventListener (eventName: String, handler: Function[, capturePhase: Boolean=false])

Boolean StaticText.removeEventListener (eventName: String, handler: Function[, capturePhase: Boolean=false])

Boolean TreeView.addEventListener (eventName: String, handler: Function[, capturePhase: Boolean=false])

Boolean TreeView.removeEventListener (eventName: String, handler: Function[, capturePhase: Boolean=false])

UIEvent UIEvent.UIEvent (type: String[, captures: Boolean=false][, bubbles: Boolean=false][, view: Object][, detail: Number])

void UIEvent.initEvent (type: String[, captures: Boolean=false][, bubbles: Boolean=false][, cancelable: Boolean=false])

void UIEvent.initUIEvent (type: String[, captures: Boolean=false][, bubbles: Boolean=false][, view: Object][, detail: Number])

Boolean Window.addEventListener (eventName: String, handler: Function[, capturePhase: Boolean=false])

void Window.alert (message: String[, title: String][, errorIcon: Boolean=false])

Boolean Window.confirm (message: String[, noAsDefault: Boolean=false][, title: String])

Boolean Window.removeEventListener (eventName: String, handler: Function[, capturePhase: Boolean=false])

Return

Boolean Button (SUI).addEventListener (eventName: String, handler: Function[, capturePhase: Boolean=false])

Boolean Button (SUI).removeEventListener (eventName: String, handler: Function[, capturePhase: Boolean=false])

Boolean Checkbox (SUI).addEventListener (eventName: String, handler: Function[, capturePhase: Boolean=false])

Boolean Checkbox (SUI).removeEventListener (eventName: String, handler: Function[, capturePhase: Boolean=false])

Boolean DropDownList.addEventListener (eventName: String, handler: Function[, capturePhase: Boolean=false])

Boolean DropDownList.removeEventListener (eventName: String, handler: Function[, capturePhase: Boolean=false])

Boolean EditText.addEventListener (eventName: String, handler: Function[, capturePhase: Boolean=false])

Boolean EditText.removeEventListener (eventName: String, handler: Function[, capturePhase: Boolean=false])

Boolean FlashPlayer.addEventListener (eventName: String, handler: Function[, capturePhase: Boolean=false])

Boolean FlashPlayer.removeEventListener (eventName: String, handler: Function[, capturePhase: Boolean=false])

Boolean Group (SUI).addEventListener (eventName: String, handler: Function[, capturePhase: Boolean=false])

Boolean Group (SUI).removeEventListener (eventName: String, handler: Function[, capturePhase: Boolean=false])

Boolean IconButton.addEventListener (eventName: String, handler: Function[, capturePhase: Boolean=false])

Boolean IconButton.removeEventListener (eventName: String, handler: Function[, capturePhase: Boolean=false])

Boolean ListBox (SUI).addEventListener (eventName: String, handler: Function[, capturePhase: Boolean=false])

Boolean ListBox (SUI).removeEventListener (eventName: String, handler: Function[, capturePhase: Boolean=false])

Boolean Panel (SUI).addEventListener (eventName: String, handler: Function[, capturePhase: Boolean=false])

Boolean Panel (SUI).removeEventListener (eventName: String, handler: Function[, capturePhase: Boolean=false])

Boolean Progressbar.addEventListener (eventName: String, handler: Function[, capturePhase: Boolean=false])

Boolean Progressbar.removeEventListener (eventName: String, handler: Function[, capturePhase: Boolean=false])

Boolean RadioButton (SUI).addEventListener (eventName: String, handler: Function[, capturePhase: Boolean=false])

Boolean RadioButton (SUI).removeEventListener (eventName: String, handler: Function[, capturePhase: Boolean=false])

Boolean Scrollbar.addEventListener (eventName: String, handler: Function[, capturePhase: Boolean=false])

Boolean Scrollbar.removeEventListener (eventName: String, handler: Function[, capturePhase: Boolean=false])

Boolean Slider.addEventListener (eventName: String, handler: Function[, capturePhase: Boolean=false])

Boolean Slider.removeEventListener (eventName: String, handler: Function[, capturePhase: Boolean=false])

Boolean StaticText (SUI).addEventListener (eventName: String, handler: Function[, capturePhase: Boolean=false])

Boolean StaticText (SUI).removeEventListener (eventName: String, handler: Function[, capturePhase: Boolean=false])

Boolean TreeView.addEventListener (eventName: String, handler: Function[, capturePhase: Boolean=false])

Boolean TreeView.removeEventListener (eventName: String, handler: Function[, capturePhase: Boolean=false])

Boolean Window (SUI).addEventListener (eventName: String, handler: Function[, capturePhase: Boolean=false])

Boolean Window (SUI).confirm (message: String[, noAsDefault: Boolean=false][, title: String])

Boolean Window (SUI).onClose ()

Boolean Window (SUI).removeEventListener (eventName: String, handler: Function[, capturePhase: Boolean=false])

Jongware, 18-Jan-2015 v1.0Contents :: Index