loading...
Join the ludiloom Public Alpha Test and help us change the game-making game...
Ludiloom API
last updated on 2009, May 22nd
| Base Concepts | Scene Objects | Data Interface | Gui Overlays | |||
|
Arena Object ObjectTemplate Presence PresenceTemplate RuleBook System |
BillBoard Camera Effect HighlightDecal Light Material MeshDecal |
Model Plane River Road Sound StaticFlora Terrain |
HashTable InterModel Matrix MediaItem Vector |
Button Checkbox CodeEditbox ComboBox Editbox Listbox MenuBar MenuItem |
MenuPopup MultiColumn MultilineEditbox ProgressBar RadioButton ScrollBar ScrollPane SliderBar |
Spinner StaticImage StaticText TabPane ToggleButton Tree Window |
ToggleButton
print
nil print ()
A toggle button is an overlay usually used to trigger an action that has two states. When pressed the toggle button maintains a pressed state until its clicked again.
| Method Summary | |
nil | addOverlay (Overlay toAdd) |
nil | addRepresentation (representation toAdd) |
representation | copyOverlay (Overlay toClone, string name) |
Overlay | createOverlay (string name, number type, MediaItem mediaitem, number x, number y, number sx, number sy) |
Object, string, InterModel, boolean, string | getActivatedListener (string key) |
Object, string, InterModel, boolean, string | getActivatedListener (string key, boolean ctrl, boolean alt, boolean shift) |
number | getAlpha () |
Object, string, InterModel, boolean, string | getAlphaChangedListener (string key) |
Object, string, InterModel, boolean, string | getAlphaChangedListener (string key, boolean ctrl, boolean alt, boolean shift) |
Object, string, InterModel, boolean, string | getCaptureGainedListener (string key) |
Object, string, InterModel, boolean, string | getCaptureGainedListener (string key, boolean ctrl, boolean alt, boolean shift) |
Object, string, InterModel, boolean, string | getCaptureLostListener (string key) |
Object, string, InterModel, boolean, string | getCaptureLostListener (string key, boolean ctrl, boolean alt, boolean shift) |
Object, string, InterModel, boolean, string | getCharacterKeyListener (string key) |
Object, string, InterModel, boolean, string | getCharacterKeyListener (string key, boolean ctrl, boolean alt, boolean shift) |
Object, string, InterModel, boolean, string | getDeactivatedListener (string key) |
Object, string, InterModel, boolean, string | getDeactivatedListener (string key, boolean ctrl, boolean alt, boolean shift) |
number, number, number, number | getDisabledColour () |
MediaItem | getDisabledImage () |
Object, string, InterModel, boolean, string | getDisabledListener (string key) |
Object, string, InterModel, boolean, string | getDisabledListener (string key, boolean ctrl, boolean alt, boolean shift) |
Object, string, InterModel, boolean, string | getDragDropListener (string key) |
Object, string, InterModel, boolean, string | getDragDropListener (string key, boolean ctrl, boolean alt, boolean shift) |
Object, string, InterModel, boolean, string | getEnabledListener (string key) |
Object, string, InterModel, boolean, string | getEnabledListener (string key, boolean ctrl, boolean alt, boolean shift) |
MediaItem, number | getFont () |
Object, string, InterModel, boolean, string | getHiddenListener (string key) |
Object, string, InterModel, boolean, string | getHiddenListener (string key, boolean ctrl, boolean alt, boolean shift) |
number, number, number, number | getHoverColour () |
MediaItem | getHoverImage () |
string | getID () |
Object, string, InterModel, boolean, string | getKeyPressedListener (string key) |
Object, string, InterModel, boolean, string | getKeyPressedListener (string key, boolean ctrl, boolean alt, boolean shift) |
Object, string, InterModel, boolean, string | getKeyReleasedListener (string key) |
Object, string, InterModel, boolean, string | getKeyReleasedListener (string key, boolean ctrl, boolean alt, boolean shift) |
MediaItem | getLookFeel () |
number, number | getMaxSize () |
number, number | getMinSize () |
Object, string, InterModel, boolean, string | getMouseButtonClickedListener (number mousekey) |
Object, string, InterModel, boolean, string | getMouseButtonClickedListener (number mousekey, boolean ctrl, boolean alt, boolean shift) |
Object, string, InterModel, boolean, string | getMouseButtonDoubleClickedListener (number mousekey) |
Object, string, InterModel, boolean, string | getMouseButtonDoubleClickedListener (number mousekey, boolean ctrl, boolean alt, boolean shift) |
Object, string, InterModel, boolean, string | getMouseButtonPressedListener (number mousekey) |
Object, string, InterModel, boolean, string | getMouseButtonPressedListener (number mousekey, boolean ctrl, boolean alt, boolean shift) |
Object, string, InterModel, boolean, string | getMouseButtonReleasedListener (number mousekey) |
Object, string, InterModel, boolean, string | getMouseButtonReleasedListener (number mousekey, boolean ctrl, boolean alt, boolean shift) |
Object, string, InterModel, boolean, string | getMouseButtonTripleClickedListener (number mousekey) |
Object, string, InterModel, boolean, string | getMouseButtonTripleClickedListener (number mousekey, boolean ctrl, boolean alt, boolean shift) |
string | getMouseCursor (MediaItem cursorImage) |
Object, string, InterModel, boolean, string | getMouseEnteredListener () |
Object, string, InterModel, boolean, string | getMouseEnteredListener (boolean ctrl, boolean alt, boolean shift) |
Object, string, InterModel, boolean, string | getMouseLeftListener () |
Object, string, InterModel, boolean, string | getMouseLeftListener (boolean ctrl, boolean alt, boolean shift) |
Object, string, InterModel, boolean, string | getMouseMovedListener () |
Object, string, InterModel, boolean, string | getMouseMovedListener (boolean ctrl, boolean alt, boolean shift) |
Object, string, InterModel, boolean, string | getMouseWheelMovedListener (number mousekey) |
Object, string, InterModel, boolean, string | getMouseWheelMovedListener (number mousekey, boolean ctrl, boolean alt, boolean shift) |
Object, string, InterModel, boolean, string | getMovedListener (string key) |
Object, string, InterModel, boolean, string | getMovedListener (string key, boolean ctrl, boolean alt, boolean shift) |
string | getName () |
MediaItem | getNormalImage () |
Overlay | getOverlay (string name) |
array{} | getOverlays () |
number | getOverlayType () |
number, number | getPosition () |
number, number, number, number | getPushedColour () |
MediaItem | getPushedImage () |
representation | getRepresentation (string name, number type) |
representation | getRepresentationContainer () |
array{} | getRepresentations () |
Object, string, InterModel, boolean, string | getSelectionChangedListener () |
Object, string, InterModel, boolean, string | getShownListener (string key) |
Object, string, InterModel, boolean, string | getShownListener (string key, boolean ctrl, boolean alt, boolean shift) |
number, number | getSize () |
Object, string, InterModel, boolean, string | getSizedListener (string key) |
Object, string, InterModel, boolean, string | getSizedListener (string key, boolean ctrl, boolean alt, boolean shift) |
string | getText () |
Object, string, InterModel, boolean, string | getTextChangedListener (string key) |
Object, string, InterModel, boolean, string | getTextChangedListener (string key, boolean ctrl, boolean alt, boolean shift) |
number, number, number, number | getTextColour () |
number | getType () |
boolean | hasActivatedListener (string key) |
boolean | hasActivatedListener (string key, boolean ctrl, boolean alt, boolean shift) |
boolean | hasAlphaChangedListener (string key) |
boolean | hasAlphaChangedListener (string key, boolean ctrl, boolean alt, boolean shift) |
boolean | hasCaptureGainedListener (string key) |
boolean | hasCaptureGainedListener (string key, boolean ctrl, boolean alt, boolean shift) |
boolean | hasCaptureLostListener (string key) |
boolean | hasCaptureLostListener (string key, boolean ctrl, boolean alt, boolean shift) |
boolean | hasCharacterKeyListener (string key) |
boolean | hasCharacterKeyListener (string key, boolean ctrl, boolean alt, boolean shift) |
boolean | hasDeactivatedListener (string key) |
boolean | hasDeactivatedListener (string key, boolean ctrl, boolean alt, boolean shift) |
boolean | hasDisabledListener (string key) |
boolean | hasDisabledListener (string key, boolean ctrl, boolean alt, boolean shift) |
boolean | hasDragDropListener (string key) |
boolean | hasDragDropListener (string key, boolean ctrl, boolean alt, boolean shift) |
boolean | hasEnabledListener (string key) |
boolean | hasEnabledListener (string key, boolean ctrl, boolean alt, boolean shift) |
boolean | hasHiddenListener (string key) |
boolean | hasHiddenListener (string key, boolean ctrl, boolean alt, boolean shift) |
boolean | hasKeyPressedListener (string key) |
boolean | hasKeyPressedListener (string key, boolean ctrl, boolean alt, boolean shift) |
boolean | hasKeyReleasedListener (string key) |
boolean | hasKeyReleasedListener (string key, boolean ctrl, boolean alt, boolean shift) |
boolean | hasMouseButtonClickedListener (number mousekey) |
boolean | hasMouseButtonClickedListener (number mousekey, boolean ctrl, boolean alt, boolean shift) |
boolean | hasMouseButtonDoubleClickedListener (number mousekey) |
boolean | hasMouseButtonDoubleClickedListener (number mousekey, boolean ctrl, boolean alt, boolean shift) |
boolean | hasMouseButtonPressedListener (number mousekey) |
boolean | hasMouseButtonPressedListener (number mousekey, boolean ctrl, boolean alt, boolean shift) |
boolean | hasMouseButtonReleasedListener (number mousekey) |
boolean | hasMouseButtonReleasedListener (number mousekey, boolean ctrl, boolean alt, boolean shift) |
boolean | hasMouseButtonTripleClickedListener (number mousekey) |
boolean | hasMouseButtonTripleClickedListener (number mousekey, boolean ctrl, boolean alt, boolean shift) |
boolean | hasMouseEnteredListener () |
boolean | hasMouseEnteredListener (boolean ctrl, boolean alt, boolean shift) |
boolean | hasMouseLeftListener () |
boolean | hasMouseLeftListener (boolean ctrl, boolean alt, boolean shift) |
boolean | hasMouseMovedListener () |
boolean | hasMouseMovedListener (boolean ctrl, boolean alt, boolean shift) |
boolean | hasMouseWheelMovedListener (number mousekey) |
boolean | hasMouseWheelMovedListener (number mousekey, boolean ctrl, boolean alt, boolean shift) |
boolean | hasMovedListener (string key) |
boolean | hasMovedListener (string key, boolean ctrl, boolean alt, boolean shift) |
boolean | hasRepresentation (representation other) |
boolean | hasRepresentation (string name, number type) |
boolean | hasSelectionChangedListener () |
boolean | hasShownListener (string key) |
boolean | hasShownListener (string key, boolean ctrl, boolean alt, boolean shift) |
boolean | hasSizedListener (string key) |
boolean | hasSizedListener (string key, boolean ctrl, boolean alt, boolean shift) |
boolean | hasTextChangedListener (string key) |
boolean | hasTextChangedListener (string key, boolean ctrl, boolean alt, boolean shift) |
boolean | isEnabled () |
boolean | isInheritsAlpha () |
boolean | isOnTop () |
boolean | isPersistent () |
boolean | isVisible () |
nil | print () |
nil | removeActivatedListener (string key) |
nil | removeActivatedListener (string key, boolean ctrl, boolean alt, boolean shift) |
nil | removeAllOverlays () |
nil | removeAllRepresentations () |
nil | removeAlphaChangedListener (string key) |
nil | removeAlphaChangedListener (string key, boolean ctrl, boolean alt, boolean shift) |
nil | removeCaptureGainedListener (string key) |
nil | removeCaptureGainedListener (string key, boolean ctrl, boolean alt, boolean shift) |
nil | removeCaptureLostListener (string key) |
nil | removeCaptureLostListener (string key, boolean ctrl, boolean alt, boolean shift) |
nil | removeCharacterKeyListener (string key) |
nil | removeCharacterKeyListener (string key, boolean ctrl, boolean alt, boolean shift) |
nil | removeDeactivatedListener (string key) |
nil | removeDeactivatedListener (string key, boolean ctrl, boolean alt, boolean shift) |
nil | removeDisabledListener (string key) |
nil | removeDisabledListener (string key, boolean ctrl, boolean alt, boolean shift) |
nil | removeDragDropListener (string key) |
nil | removeDragDropListener (string key, boolean ctrl, boolean alt, boolean shift) |
nil | removeEnabledListener (string key) |
nil | removeEnabledListener (string key, boolean ctrl, boolean alt, boolean shift) |
nil | removeHiddenListener (string key) |
nil | removeHiddenListener (string key, boolean ctrl, boolean alt, boolean shift) |
nil | removeKeyPressedListener (string key) |
nil | removeKeyPressedListener (string key, boolean ctrl, boolean alt, boolean shift) |
nil | removeKeyReleasedListener (string key) |
nil | removeKeyReleasedListener (string key, boolean ctrl, boolean alt, boolean shift) |
nil | removeMouseButtonClickedListener (number mousekey) |
nil | removeMouseButtonClickedListener (number mousekey, boolean ctrl, boolean alt, boolean shift) |
nil | removeMouseButtonDoubleClickedListener (number mousekey) |
nil | removeMouseButtonDoubleClickedListener (number mousekey, boolean ctrl, boolean alt, boolean shift) |
nil | removeMouseButtonPressedListener (number mousekey) |
nil | removeMouseButtonPressedListener (number mousekey, boolean ctrl, boolean alt, boolean shift) |
nil | removeMouseButtonReleasedListener (number mousekey) |
nil | removeMouseButtonReleasedListener (number mousekey, boolean ctrl, boolean alt, boolean shift) |
nil | removeMouseButtonTripleClickedListener (number mousekey) |
nil | removeMouseButtonTripleClickedListener (number mousekey, boolean ctrl, boolean alt, boolean shift) |
nil | removeMouseEnteredListener () |
nil | removeMouseEnteredListener (boolean ctrl, boolean alt, boolean shift) |
nil | removeMouseLeftListener () |
nil | removeMouseLeftListener (boolean ctrl, boolean alt, boolean shift) |
nil | removeMouseMovedListener () |
nil | removeMouseMovedListener (boolean ctrl, boolean alt, boolean shift) |
nil | removeMouseWheelMovedListener (number mousekey) |
nil | removeMouseWheelMovedListener (number mousekey, boolean ctrl, boolean alt, boolean shift) |
nil | removeMovedListener (string key) |
nil | removeMovedListener (string key, boolean ctrl, boolean alt, boolean shift) |
nil | removeOverlay (string name) |
nil | removeRepresentation (representation other) |
nil | removeRepresentation (string name, number type) |
nil | removeSelectionChangedListener () |
nil | removeShownListener (string key) |
nil | removeShownListener (string key, boolean ctrl, boolean alt, boolean shift) |
nil | removeSizedListener (string key) |
nil | removeSizedListener (string key, boolean ctrl, boolean alt, boolean shift) |
nil | removeTextChangedListener (string key) |
nil | removeTextChangedListener (string key, boolean ctrl, boolean alt, boolean shift) |
nil | setActivatedListener (string key, Object target, string name, InterModel interactionModel) |
nil | setActivatedListener (string key, Object target, string name, InterModel interactionModel, boolean ctrl, boolean alt, boolean shift, boolean global, string channel) |
nil | setAlpha (number The) |
nil | setAlphaChangedListener (string key, Object target, string name, InterModel interactionModel) |
nil | setAlphaChangedListener (string key, Object target, string name, InterModel interactionModel, boolean ctrl, boolean alt, boolean shift, boolean global, string channel) |
nil | setCaptureGainedListener (string key, Object target, string name, InterModel interactionModel) |
nil | setCaptureGainedListener (string key, Object target, string name, InterModel interactionModel, boolean ctrl, boolean alt, boolean shift, boolean global, string channel) |
nil | setCaptureLostListener (string key, Object target, string name, InterModel interactionModel) |
nil | setCaptureLostListener (string key, Object target, string name, InterModel interactionModel, boolean ctrl, boolean alt, boolean shift, boolean global, string channel) |
nil | setCharacterKeyListener (string key, Object target, string name, InterModel interactionModel) |
nil | setCharacterKeyListener (string key, Object target, string name, InterModel interactionModel, boolean ctrl, boolean alt, boolean shift, boolean global, string channel) |
nil | setDeactivatedListener (string key, Object target, string name, InterModel interactionModel) |
nil | setDeactivatedListener (string key, Object target, string name, InterModel interactionModel, boolean ctrl, boolean alt, boolean shift, boolean global, string channel) |
nil | setDisabledColour (number r, number g, number b, number a) |
nil | setDisabledImage (MediaItem image) |
nil | setDisabledListener (string key, Object target, string name, InterModel interactionModel) |
nil | setDisabledListener (string key, Object target, string name, InterModel interactionModel, boolean ctrl, boolean alt, boolean shift, boolean global, string channel) |
nil | setDragDropListener (number mousekey, Object target, string name, InterModel interactionModel) |
nil | setDragDropListener (number mousekey, Object target, string name, InterModel interactionModel, boolean ctrl, boolean alt, boolean shift, boolean global, string channel) |
nil | setEnabled (boolean enable) |
nil | setEnabledListener (string key, Object target, string name, InterModel interactionModel) |
nil | setEnabledListener (string key, Object target, string name, InterModel interactionModel, boolean ctrl, boolean alt, boolean shift, boolean global, string channel) |
nil | setFont (MediaItem font, number size) |
nil | setHiddenListener (string key, Object target, string name, InterModel interactionModel) |
nil | setHiddenListener (string key, Object target, string name, InterModel interactionModel, boolean ctrl, boolean alt, boolean shift, boolean global, string channel) |
nil | setHoverColour (number r, number g, number b, number a) |
nil | setHoverImage (MediaItem image) |
nil | setInheritsAlpha (boolean inAlpha) |
nil | setKeyPressedListener (string key, Object target, string name, InterModel interactionModel) |
nil | setKeyPressedListener (string key, Object target, string name, InterModel interactionModel, boolean ctrl, boolean alt, boolean shift, boolean global, string channel) |
nil | setKeyReleasedListener (string key, Object target, string name, InterModel interactionModel) |
nil | setKeyReleasedListener (string key, Object target, string name, InterModel interactionModel, boolean ctrl, boolean alt, boolean shift, boolean global, string channel) |
nil | setMaxSize (number w, number h) |
nil | setMinSize (number w, number h) |
nil | setMouseButtonDoubleClickedListener (number mousekey, Object target, string name, InterModel interactionModel) |
nil | setMouseButtonDoubleClickedListener (number mousekey, Object target, string name, InterModel interactionModel, boolean ctrl, boolean alt, boolean shift, boolean global, string channel) |
nil | setMouseButtonPressedListener (number mousekey, Object target, string name, InterModel interactionModel) |
nil | setMouseButtonPressedListener (number mousekey, Object target, string name, InterModel interactionModel, boolean ctrl, boolean alt, boolean shift, boolean global, string channel) |
nil | setMouseButtonReleasedListener (number mousekey, Object target, string name, InterModel interactionModel) |
nil | setMouseButtonReleasedListener (number mousekey, Object target, string name, InterModel interactionModel, boolean ctrl, boolean alt, boolean shift, boolean global, string channel) |
nil | setMouseButtonTripleClickedListener (number mousekey, Object target, string name, InterModel interactionModel) |
nil | setMouseButtonTripleClickedListener (number mousekey, Object target, string name, InterModel interactionModel, boolean ctrl, boolean alt, boolean shift, boolean global, string channel) |
nil | setMouseCursor (MediaItem cursorImage, string imageName) |
nil | setMouseEnteredListener (Object target, string name, InterModel interactionModel) |
nil | setMouseEnteredListener (Object target, string name, InterModel interactionModel, boolean ctrl, boolean alt, boolean shift, boolean global, string channel) |
nil | setMouseLeftListener (Object target, string name, InterModel interactionModel) |
nil | setMouseLeftListener (Object target, string name, InterModel interactionModel, boolean ctrl, boolean alt, boolean shift, boolean global, string channel) |
nil | setMouseMovedListener (Object target, string name, InterModel interactionModel) |
nil | setMouseMovedListener (Object target, string name, InterModel interactionModel, boolean ctrl, boolean alt, boolean shift, boolean global, string channel) |
nil | setMouseWheelMovedListener (number mousekey, Object target, string name, InterModel interactionModel) |
nil | setMouseWheelMovedListener (number mousekey, Object target, string name, InterModel interactionModel, boolean ctrl, boolean alt, boolean shift, boolean global, string channel) |
nil | setMovedListener (string key, Object target, string name, InterModel interactionModel) |
nil | setMovedListener (string key, Object target, string name, InterModel interactionModel, boolean ctrl, boolean alt, boolean shift, boolean global, string channel) |
nil | setNormalImage (MediaItem image) |
nil | setOnTop (boolean onTop) |
nil | setPersistent (boolean persistent) |
nil | setPosition (number x, number y) |
nil | setPosition (number x, number y, bool Smooth) |
nil | setPushedColour (number r, number g, number b, number a) |
nil | setPushedImage (MediaItem image) |
nil | setSelected (boolean state) |
nil | setSelectionChangedListener (Object target, string name, InterModel interactionModel) |
nil | setSelectionChangedListener (Object target, string name, InterModel interactionModel, boolean global, string channel) |
nil | setShownListener (string key, Object target, string name, InterModel interactionModel) |
nil | setShownListener (string key, Object target, string name, InterModel interactionModel, boolean ctrl, boolean alt, boolean shift, boolean global, string channel) |
nil | setSize (number w, number h) |
nil | setSize (number w, number h, bool smooth) |
nil | setSizedListener (number mousekey, Object target, string name, InterModel interactionModel) |
nil | setSizedListener (Object target, string name, InterModel interactionModel, boolean ctrl, boolean alt, boolean shift, boolean global, string channel) |
nil | setText (string text) |
nil | setTextChangedListener (string key, Object target, string name, InterModel interactionModel) |
nil | setTextChangedListener (string key, Object target, string name, InterModel interactionModel, boolean ctrl, boolean alt, boolean shift, boolean global, string channel) |
nil | setTextColour (number r, number g, number b, number a) |
nil | setTooltip (string tooltip) |
nil | setVisible (boolean visible) |
nil | setVisible (boolean visible, bool smooth) |
| Method Detail |
addOverlay
nil addOverlay (Overlay toAdd)- Moves an Overlay to this ToggleButton.
- Parameters:
Overlay toAdd- Overlay to be moved to this ToggleButton.
addRepresentation
nil addRepresentation (representation toAdd)- Adds another representation to this representation.
- Parameters:
representation toAdd- Representation to be added to this representation.
copyOverlay
representation copyOverlay (Overlay toClone, string name)- Clones an overlay to this ToggleButton.
- Parameters:
Overlay toClone- Overlay that will be cloned.string name- Name of the new ToggleButton.
- Returns:
representation- The new ToggleButton.
createOverlay
Overlay createOverlay (string name, number type, MediaItem mediaitem, number x, number y, number sx, number sy)- Adds an overlay to the ToggleButton.
- Parameters:
string name- Name of the overlay.number type- Type of the Overlay: OVT_WINDOW, OVT_BUTTON, OVT_CHECK_BOX, OVT_COMBO_BOX, OVT_EDIT_BOX, OVT_MULTILINE_EDIT_BOX, OVT_PROGRESS_BAR, OVT_SPINNER, OVT_RADIO_BUTTON, OVT_SCROLL_BAR_VERT, OVT_SCROLL_BAR_HORZ, OVT_SLIDER_BAR, OVT_STATIC_TEXT, OVT_STATIC_IMAGE, OVT_TAB_PANE, OVT_LIST_BOX, OVT_MENU_BAR, OVT_MENU_ITEM, OVT_MENU_POPUP, OVT_MULTICOLUMN_LIST, OVT_CODE_EDIT_BOX, OVT_SCROLL_PANE, OVT_TOGGLE_BUTTON or OVT_TREE.MediaItem mediaitem- Media Item of the look n' feel to be applied to the overlay.number x- X coordinate of the position of the overlay.number y- Y coordinate of the position of the overlay.number sx- Width of the overlay.number sy- Height of the overlay.
- Returns:
Overlay- The new overlay.
getActivatedListener
Object, string, InterModel, boolean, string getActivatedListener (string key)- Returns the 'activated' listener of the ToggleButton.
- Parameters:
string key- The key that will trigger the event.
- Returns:
Object- The object that contains the interaction that will be executed.string- Name of the interaction.InterModel- Arguments of the interaction that will be executed when this listener is activated.boolean- 'True' if this listener is executed globally, 'false' if it is executed only locally.string- channel The channel of the listener.
getActivatedListener
Object, string, InterModel, boolean, string getActivatedListener (string key, boolean ctrl, boolean alt, boolean shift)- Returns the 'activated' listener of the ToggleButton.
- Parameters:
string key- The key that will trigger the event.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.
- Returns:
Object- The object that contains the interaction that will be executed.string- Name of the interaction.InterModel- Arguments of the interaction that will be executed when this listener is activated.boolean- 'True' if this listener is executed globally, 'false' if it is executed only locally.string- The channel of the listener.
getAlpha
number getAlpha ()- Gets the alpha level of the ToggleButton.
- Returns:
number- The transparency (alpha) level to be applied on the ToggleButton (between 0 and 255).
getAlphaChangedListener
Object, string, InterModel, boolean, string getAlphaChangedListener (string key)- Returns the 'alpha changed' listener of the ToggleButton.
- Parameters:
string key- The key that will trigger the event.
- Returns:
Object- The object that contains the interaction that will be executed.string- Name of the interaction.InterModel- Arguments of the interaction that will be executed when this listener is activated.boolean- 'True' if this listener is executed globally, 'false' if it is executed only locally.string- The channel of the listener.
getAlphaChangedListener
Object, string, InterModel, boolean, string getAlphaChangedListener (string key, boolean ctrl, boolean alt, boolean shift)- Returns the 'alpha changed' listener of the ToggleButton.
- Parameters:
string key- The key that will trigger the event.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.
- Returns:
Object- The object that contains the interaction that will be executed.string- Name of the interaction.InterModel- Arguments of the interaction that will be executed when this listener is activated.boolean- 'True' if this listener is executed globally, 'false' if it is executed only locally.string- The channel of the listener.
getCaptureGainedListener
Object, string, InterModel, boolean, string getCaptureGainedListener (string key)- Returns the 'capture gained' listener of the ToggleButton.
- Parameters:
string key- The key that will trigger the event.
- Returns:
Object- The object that contains the interaction that will be executed.string- Name of the interaction.InterModel- Arguments of the interaction that will be executed when this listener is activated.boolean- 'True' if this listener is executed globally, 'false' if it is executed only locally.string- The channel of the listener.
getCaptureGainedListener
Object, string, InterModel, boolean, string getCaptureGainedListener (string key, boolean ctrl, boolean alt, boolean shift)- Returns the 'capture gained' listener of the ToggleButton.
- Parameters:
string key- The key that will trigger the event.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.
- Returns:
Object- The object that contains the interaction that will be executed.string- Name of the interaction.InterModel- Arguments of the interaction that will be executed when this listener is activated.boolean- 'True' if this listener is executed globally, 'false' if it is executed only locally.string- The channel of the listener.
getCaptureLostListener
Object, string, InterModel, boolean, string getCaptureLostListener (string key)- Returns the 'capture lost' listener of the ToggleButton.
- Parameters:
string key- The key that will trigger the event.
- Returns:
Object- The object that contains the interaction that will be executed.string- Name of the interaction.InterModel- Arguments of the interaction that will be executed when this listener is activated.boolean- 'True' if this listener is executed globally, 'false' if it is executed only locally.string- The channel of the listener.
getCaptureLostListener
Object, string, InterModel, boolean, string getCaptureLostListener (string key, boolean ctrl, boolean alt, boolean shift)- Returns the 'capture lost' listener of the ToggleButton.
- Parameters:
string key- The key that will trigger the event.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.
- Returns:
Object- The object that contains the interaction that will be executed.string- Name of the interaction.InterModel- Arguments of the interaction that will be executed when this listener is activated.boolean- 'True' if this listener is executed globally, 'false' if it is executed only locally.string- The channel of the listener.
getCharacterKeyListener
Object, string, InterModel, boolean, string getCharacterKeyListener (string key)- Returns the 'character key pressed' listener of the ToggleButton.
- Parameters:
string key- The key that will trigger the event.
- Returns:
Object- The object that contains the interaction that will be executed.string- Name of the interaction.InterModel- Arguments of the interaction that will be executed when this listener is activated.boolean- 'True' if this listener is executed globally, 'false' if it is executed only locally.string- The channel of the listener.
getCharacterKeyListener
Object, string, InterModel, boolean, string getCharacterKeyListener (string key, boolean ctrl, boolean alt, boolean shift)- Returns the 'character key pressed' listener of the ToggleButton.
- Parameters:
string key- The key that will trigger the event.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.
- Returns:
Object- The object that contains the interaction that will be executed.string- Name of the interaction.InterModel- Arguments of the interaction that will be executed when this listener is activated.boolean- 'True' if this listener is executed globally, 'false' if it is executed only locally.string- The channel of the listener.
getDeactivatedListener
Object, string, InterModel, boolean, string getDeactivatedListener (string key)- Returns the 'deactivated' listener of the ToggleButton.
- Parameters:
string key- The key that will trigger the event.
- Returns:
Object- The object that contains the interaction that will be executed.string- Name of the interaction.InterModel- Arguments of the interaction that will be executed when this listener is activated.boolean- 'True' if this listener is executed globally, 'false' if it is executed only locally.string- The channel of the listener.
getDeactivatedListener
Object, string, InterModel, boolean, string getDeactivatedListener (string key, boolean ctrl, boolean alt, boolean shift)- Returns the 'deactivated' listener of the ToggleButton.
- Parameters:
string key- The key that will trigger the event.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.
- Returns:
Object- The object that contains the interaction that will be executed.string- Name of the interaction.InterModel- Arguments of the interaction that will be executed when this listener is activated.boolean- 'True' if this listener is executed globally, 'false' if it is executed only locally.string- The channel of the listener.
getDisabledColour
number, number, number, number getDisabledColour ()- Returns the colour of the ToggleButton's text when the ToggleButton is disabled.
- Returns:
number- Red colour value (between 0 and 255)number- Green colour value (between 0 and 255)number- Blue colour value (between 0 and 255)number- Alpha value (between 0 and 255)
getDisabledImage
MediaItem getDisabledImage ()- Returns the image of the ToggleButton when the ToggleButton is disabled.
- Returns:
MediaItem- Image of the ToggleButton when the ToggleButton is disabled.
getDisabledListener
Object, string, InterModel, boolean, string getDisabledListener (string key)- Returns the 'disabled' listener of the ToggleButton.
- Parameters:
string key- The key that will trigger the event.
- Returns:
Object- The object that contains the interaction that will be executed.string- Name of the interaction.InterModel- Arguments of the interaction that will be executed when this listener is activated.boolean- 'True' if this listener is executed globally, 'false' if it is executed only locally.string- The channel of the listener.
getDisabledListener
Object, string, InterModel, boolean, string getDisabledListener (string key, boolean ctrl, boolean alt, boolean shift)- Returns the 'disabled' listener of the ToggleButton.
- Parameters:
string key- The key that will trigger the event.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.
- Returns:
Object- The object that contains the interaction that will be executed.string- Name of the interaction.InterModel- Arguments of the interaction that will be executed when this listener is activated.boolean- 'True' if this listener is executed globally, 'false' if it is executed only locally.string- The channel of the listener.
getDragDropListener
Object, string, InterModel, boolean, string getDragDropListener (string key)- Returns the 'drag and drop' listener of the ToggleButton.
- Parameters:
string key- The key that will trigger the event.
- Returns:
Object- The object that contains the interaction that will be executed.string- Name of the interaction.InterModel- Arguments of the interaction that will be executed when this listener is activated.boolean- 'True' if this listener is executed globally, 'false' if it is executed only locally.string- The channel of the listener.
getDragDropListener
Object, string, InterModel, boolean, string getDragDropListener (string key, boolean ctrl, boolean alt, boolean shift)- Returns the 'drag and drop' listener of the ToggleButton.
- Parameters:
string key- The key that will trigger the event.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.
- Returns:
Object- The object that contains the interaction that will be executed.string- Name of the interaction.InterModel- Arguments of the interaction that will be executed when this listener is activated.boolean- 'True' if this listener is executed globally, 'false' if it is executed only locally.string- The channel of the listener.
getEnabledListener
Object, string, InterModel, boolean, string getEnabledListener (string key)- Returns the 'enabled' listener of the ToggleButton.
- Parameters:
string key- The key that will trigger the event.
- Returns:
Object- The object that contains the interaction that will be executed.string- Name of the interaction.InterModel- Arguments of the interaction that will be executed when this listener is activated.boolean- 'True' if this listener is executed globally, 'false' if it is executed only locally.string- The channel of the listener.
getEnabledListener
Object, string, InterModel, boolean, string getEnabledListener (string key, boolean ctrl, boolean alt, boolean shift)- Returns the 'enabled' listener of the ToggleButton.
- Parameters:
string key- The key that will trigger the event.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.
- Returns:
Object- The object that contains the interaction that will be executed.string- Name of the interaction.InterModel- Arguments of the interaction that will be executed when this listener is activated.boolean- 'True' if this listener is executed globally, 'false' if it is executed only locally.string- The channel of the listener.
getFont
MediaItem, number getFont ()- Returns the text font and size applied on the ToggleButton.
- Returns:
MediaItem- The text font applied on the ToggleButton.number- The size of the font applied on the ToggleButton.
getHiddenListener
Object, string, InterModel, boolean, string getHiddenListener (string key)- Returns the 'hidden' listener of the ToggleButton.
- Parameters:
string key- The key that will trigger the event.
- Returns:
Object- The object that contains the interaction that will be executed.string- Name of the interaction.InterModel- Arguments of the interaction that will be executed when this listener is activated.boolean- 'True' if this listener is executed globally, 'false' if it is executed only locally.string- The channel of the listener.
getHiddenListener
Object, string, InterModel, boolean, string getHiddenListener (string key, boolean ctrl, boolean alt, boolean shift)- Returns the 'hidden' listener of the ToggleButton.
- Parameters:
string key- The key that will trigger the event.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.
- Returns:
Object- The object that contains the interaction that will be executed.string- Name of the interaction.InterModel- Arguments of the interaction that will be executed when this listener is activated.boolean- 'True' if this listener is executed globally, 'false' if it is executed only locally.string- The channel of the listener.
getHoverColour
number, number, number, number getHoverColour ()- Returns the colour of the ToggleButton's text when the mouse is hovering it.
- Returns:
number- Red colour value (between 0 and 255)number- Green colour value (between 0 and 255)number- Blue colour value (between 0 and 255)number- Alpha value (between 0 and 255)
getHoverImage
MediaItem getHoverImage ()- Returns the image of the ToggleButton when the mouse is hovering it.
- Returns:
MediaItem- Image of the ToggleButton when the mouse is hovering it.
getID
string getID ()- Returns the representation ID.
- Returns:
string- Representation ID.
getKeyPressedListener
Object, string, InterModel, boolean, string getKeyPressedListener (string key)- Returns the 'key pressed' listener of the ToggleButton.
- Parameters:
string key- The key that will trigger the event.
- Returns:
Object- The object that contains the interaction that will be executed.string- Name of the interaction.InterModel- Arguments of the interaction that will be executed when this listener is activated.boolean- 'True' if this listener is executed globally, 'false' if it is executed only locally.string- The channel of the listener.
getKeyPressedListener
Object, string, InterModel, boolean, string getKeyPressedListener (string key, boolean ctrl, boolean alt, boolean shift)- Returns the 'key pressed' listener of the ToggleButton.
- Parameters:
string key- The key that will trigger the event.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.
- Returns:
Object- The object that contains the interaction that will be executed.string- Name of the interaction.InterModel- Arguments of the interaction that will be executed when this listener is activated.boolean- 'True' if this listener is executed globally, 'false' if it is executed only locally.string- The channel of the listener.
getKeyReleasedListener
Object, string, InterModel, boolean, string getKeyReleasedListener (string key)- Returns the 'key released' listener of the ToggleButton.
- Parameters:
string key- The key that will trigger the event.
- Returns:
Object- The object that contains the interaction that will be executed.string- Name of the interaction.InterModel- Arguments of the interaction that will be executed when this listener is activated.boolean- 'True' if this listener is executed globally, 'false' if it is executed only locally.string- The channel of the listener.
getKeyReleasedListener
Object, string, InterModel, boolean, string getKeyReleasedListener (string key, boolean ctrl, boolean alt, boolean shift)- Returns the 'key released' listener of the ToggleButton.
- Parameters:
string key- The key that will trigger the event.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.
- Returns:
Object- The object that contains the interaction that will be executed.string- Name of the interaction.InterModel- Arguments of the interaction that will be executed when this listener is activated.boolean- 'True' if this listener is executed globally, 'false' if it is executed only locally.string- The channel of the listener.
getLookFeel
MediaItem getLookFeel ()- Returns the MediaItem of the ToggleButton.
- Returns:
MediaItem- The look 'n feel applied to the ToggleButton.
getMaxSize
number, number getMaxSize ()- Gets the maximum size of the ToggleButton.
- Returns:
number- Maximum width of the ToggleButton.number- Maximum height of the ToggleButton.
getMinSize
number, number getMinSize ()- Gets the minimum size of the ToggleButton.
- Returns:
number- Minimum width of the ToggleButton.number- Minimum height of the ToggleButton.
getMouseButtonClickedListener
Object, string, InterModel, boolean, string getMouseButtonClickedListener (number mousekey)- Returns the 'mouse button clicked' listener of the ToggleButton.
- Parameters:
number mousekey- Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.
- Returns:
Object- The object that contains the interaction that will be executed.string- Name of the interaction.InterModel- Arguments of the interaction that will be executed when this listener is activated.boolean- 'True' if this listener is executed globally, 'false' if it is executed only locally.string- The channel of the listener.
getMouseButtonClickedListener
Object, string, InterModel, boolean, string getMouseButtonClickedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)- Returns the 'mouse button clicked' listener of the ToggleButton.
- Parameters:
number mousekey- Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.
- Returns:
Object- The object that contains the interaction that will be executed.string- Name of the interaction.InterModel- Arguments of the interaction that will be executed when this listener is activated.boolean- 'True' if this listener is executed globally, 'false' if it is executed only locally.string- The channel of the listener.
getMouseButtonDoubleClickedListener
Object, string, InterModel, boolean, string getMouseButtonDoubleClickedListener (number mousekey)- Returns the 'mouse button double clicked' listener of the ToggleButton.
- Parameters:
number mousekey- Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.
- Returns:
Object- The object that contains the interaction that will be executed.string- Name of the interaction.InterModel- Arguments of the interaction that will be executed when this listener is activated.boolean- 'True' if this listener is executed globally, 'false' if it is executed only locally.string- The channel of the listener.
getMouseButtonDoubleClickedListener
Object, string, InterModel, boolean, string getMouseButtonDoubleClickedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)- Returns the 'mouse button double clicked' listener of the ToggleButton.
- Parameters:
number mousekey- Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.
- Returns:
Object- The object that contains the interaction that will be executed.string- Name of the interaction.InterModel- Arguments of the interaction that will be executed when this listener is activated.boolean- 'True' if this listener is executed globally, 'false' if it is executed only locally.string- The channel of the listener.
getMouseButtonPressedListener
Object, string, InterModel, boolean, string getMouseButtonPressedListener (number mousekey)- Returns the 'mouse button pressed' listener of the ToggleButton.
- Parameters:
number mousekey- Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.
- Returns:
Object- The object that contains the interaction that will be executed.string- Name of the interaction.InterModel- Arguments of the interaction that will be executed when this listener is activated.boolean- 'True' if this listener is executed globally, 'false' if it is executed only locally.string- The channel of the listener.
getMouseButtonPressedListener
Object, string, InterModel, boolean, string getMouseButtonPressedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)- Returns the 'mouse button pressed' listener of the ToggleButton.
- Parameters:
number mousekey- Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.
- Returns:
Object- The object that contains the interaction that will be executed.string- Name of the interaction.InterModel- Arguments of the interaction that will be executed when this listener is activated.boolean- 'True' if this listener is executed globally, 'false' if it is executed only locally.string- The channel of the listener.
getMouseButtonReleasedListener
Object, string, InterModel, boolean, string getMouseButtonReleasedListener (number mousekey)- Returns the 'mouse button released' listener of the ToggleButton.
- Parameters:
number mousekey- Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.
- Returns:
Object- The object that contains the interaction that will be executed.string- Name of the interaction.InterModel- Arguments of the interaction that will be executed when this listener is activated.boolean- 'True' if this listener is executed globally, 'false' if it is executed only locally.string- The channel of the listener.
getMouseButtonReleasedListener
Object, string, InterModel, boolean, string getMouseButtonReleasedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)- Returns the 'mouse button released' listener of the ToggleButton.
- Parameters:
number mousekey- Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.
- Returns:
Object- The object that contains the interaction that will be executed.string- Name of the interaction.InterModel- Arguments of the interaction that will be executed when this listener is activated.boolean- 'True' if this listener is executed globally, 'false' if it is executed only locally.string- The channel of the listener.
getMouseButtonTripleClickedListener
Object, string, InterModel, boolean, string getMouseButtonTripleClickedListener (number mousekey)- Returns the 'mouse button triple clicked' listener of the ToggleButton.
- Parameters:
number mousekey- Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.
- Returns:
Object- The object that contains the interaction that will be executed.string- Name of the interaction.InterModel- Arguments of the interaction that will be executed when this listener is activated.boolean- 'True' if this listener is executed globally, 'false' if it is executed only locally.string- The channel of the listener.
getMouseButtonTripleClickedListener
Object, string, InterModel, boolean, string getMouseButtonTripleClickedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)- Returns the 'mouse button triple clicked' listener of the ToggleButton.
- Parameters:
number mousekey- Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.
- Returns:
Object- The object that contains the interaction that will be executed.string- Name of the interaction.InterModel- Arguments of the interaction that will be executed when this listener is activated.boolean- 'True' if this listener is executed globally, 'false' if it is executed only locally.string- The channel of the listener.
getMouseCursor
string getMouseCursor (MediaItem cursorImage)- Sets the image of the mouse cursor when over the ToggleButton..
- Parameters:
MediaItem cursorImage- Media Item containing the look n' feel of the cursor.
- Returns:
string- The name of the image.
getMouseEnteredListener
Object, string, InterModel, boolean, string getMouseEnteredListener ()- Returns the 'mouse entered' listener of the ToggleButton.
- Returns:
Object- The object that contains the interaction that will be executed.string- Name of the interaction.InterModel- Arguments of the interaction that will be executed when this listener is activated.boolean- 'True' if this listener is executed globally, 'false' if it is executed only locally.string- The channel of the listener.
getMouseEnteredListener
Object, string, InterModel, boolean, string getMouseEnteredListener (boolean ctrl, boolean alt, boolean shift)- Returns the 'mouse entered' listener of the ToggleButton.
- Parameters:
boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.
- Returns:
Object- The object that contains the interaction that will be executed.string- Name of the interaction.InterModel- Arguments of the interaction that will be executed when this listener is activated.boolean- 'True' if this listener is executed globally, 'false' if it is executed only locally.string- The channel of the listener.
getMouseLeftListener
Object, string, InterModel, boolean, string getMouseLeftListener ()- Returns the 'mouse left' listener of the ToggleButton.
- Returns:
Object- The object that contains the interaction that will be executed.string- Name of the interaction.InterModel- Arguments of the interaction that will be executed when this listener is activated.boolean- 'True' if this listener is executed globally, 'false' if it is executed only locally.string- The channel of the listener.
getMouseLeftListener
Object, string, InterModel, boolean, string getMouseLeftListener (boolean ctrl, boolean alt, boolean shift)- Returns the 'mouse left' listener of the ToggleButton.
- Parameters:
boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.
- Returns:
Object- The object that contains the interaction that will be executed.string- Name of the interaction.InterModel- Arguments of the interaction that will be executed when this listener is activated.boolean- 'True' if this listener is executed globally, 'false' if it is executed only locally.string- The channel of the listener.
getMouseMovedListener
Object, string, InterModel, boolean, string getMouseMovedListener ()- Returns the 'mouse moved' listener of the ToggleButton.
- Returns:
Object- The object that contains the interaction that will be executed.string- Name of the interaction.InterModel- Arguments of the interaction that will be executed when this listener is activated.boolean- 'True' if this listener is executed globally, 'false' if it is executed only locally.string- The channel of the listener.
getMouseMovedListener
Object, string, InterModel, boolean, string getMouseMovedListener (boolean ctrl, boolean alt, boolean shift)- Returns the 'mouse moved' listener of the ToggleButton.
- Parameters:
boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.
- Returns:
Object- The object that contains the interaction that will be executed.string- Name of the interaction.InterModel- Arguments of the interaction that will be executed when this listener is activated.boolean- 'True' if this listener is executed globally, 'false' if it is executed only locally.string- The channel of the listener.
getMouseWheelMovedListener
Object, string, InterModel, boolean, string getMouseWheelMovedListener (number mousekey)- Returns the 'mouse wheel moved' listener of the ToggleButton.
- Parameters:
number mousekey- Mouse wheel movement that will trigger the event: MOUSE_WHEEL_DOWN or MOUSE_WHEEL_DOWN.
- Returns:
Object- The object that contains the interaction that will be executed.string- Name of the interaction.InterModel- Arguments of the interaction that will be executed when this listener is activated.boolean- 'True' if this listener is executed globally, 'false' if it is executed only locally.string- The channel of the listener.
getMouseWheelMovedListener
Object, string, InterModel, boolean, string getMouseWheelMovedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)- Returns the 'mouse wheel moved' listener of the ToggleButton.
- Parameters:
number mousekey- Mouse wheel movement that will trigger the event: MOUSE_WHEEL_DOWN or MOUSE_WHEEL_DOWN.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.
- Returns:
Object- The object that contains the interaction that will be executed.string- Name of the interaction.InterModel- Arguments of the interaction that will be executed when this listener is activated.boolean- 'True' if this listener is executed globally, 'false' if it is executed only locally.string- The channel of the listener.
getMovedListener
Object, string, InterModel, boolean, string getMovedListener (string key)- Returns the 'moved' listener of the ToggleButton.
- Parameters:
string key- The key that will trigger the event.
- Returns:
Object- The object that contains the interaction that will be executed.string- Name of the interaction.InterModel- Arguments of the interaction that will be executed when this listener is activated.boolean- 'True' if this listener is executed globally, 'false' if it is executed only locally.string- The channel of the listener.
getMovedListener
Object, string, InterModel, boolean, string getMovedListener (string key, boolean ctrl, boolean alt, boolean shift)- Returns the 'moved' listener of the ToggleButton.
- Parameters:
string key- The key that will trigger the event.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.
- Returns:
Object- The object that contains the interaction that will be executed.string- Name of the interaction.InterModel- Arguments of the interaction that will be executed when this listener is activated.boolean- 'True' if this listener is executed globally, 'false' if it is executed only locally.string- The channel of the listener.
getName
string getName ()- Returns the name of the ToggleButton
- Returns:
string- The name of the ToggleButton
getNormalImage
MediaItem getNormalImage ()- Returns the image of the ToggleButton.
- Returns:
MediaItem- Image of the ToggleButton.
getOverlay
Overlay getOverlay (string name)- Returns an Overlay identified by name contained in this ToggleButton.
- Parameters:
string name- Name of the Overlay.
- Returns:
Overlay- The child Overlay identified by name.
getOverlays
array{} getOverlays ()- Returns the Overlays contained in this ToggleButton.
- Returns:
array{}- Overlays contained in this ToggleButton.
getOverlayType
number getOverlayType ()- Returns the type of the Overlay.
- Returns:
number- The type of the Overlay: OVT_WINDOW, OVT_BUTTON, OVT_CHECK_BOX, OVT_COMBO_BOX, OVT_EDIT_BOX, OVT_MULTILINE_EDIT_BOX, OVT_PROGRESS_BAR, OVT_SPINNER, OVT_RADIO_BUTTON, OVT_SCROLL_BAR_VERT, OVT_SCROLL_BAR_HORZ, OVT_SLIDER_BAR, OVT_STATIC_TEXT, OVT_STATIC_IMAGE, OVT_TAB_PANE, OVT_LIST_BOX, OVT_MENU_BAR, OVT_MENU_ITEM, OVT_MENU_POPUP, OVT_MULTICOLUMN_LIST, OVT_CODE_EDIT_BOX, OVT_SCROLL_PANE, OVT_TOGGLE_BUTTON or OVT_TREE.
getPosition
number, number getPosition ()- Gets the position of the ToggleButton.
- Returns:
number- X coordinate of the position of the ToggleButton.number- Y coordinate of the position of the ToggleButton.
getPushedColour
number, number, number, number getPushedColour ()- Returns the colour of the ToggleButton's text when the ToggleButton is pushed.
- Returns:
number- Red colour value (between 0 and 255)number- Green colour value (between 0 and 255)number- Blue colour value (between 0 and 255)number- Alpha value (between 0 and 255)
getPushedImage
MediaItem getPushedImage ()- Returns the image of the ToggleButton when the ToggleButton is pushed.
- Returns:
MediaItem- Image of the ToggleButton when the ToggleButton is pushed.
getRepresentation
representation getRepresentation (string name, number type)- Returns the contained representation with the specified name and type.
- Parameters:
string name- The name of the contained representation.number type- The type of the contained representation.
- Returns:
representation- The contained representation with the specified name and type.
getRepresentationContainer
representation getRepresentationContainer ()- Returns the representation that contains this representation.
- Returns:
representation- The representation that contains this representation.
getRepresentations
array{} getRepresentations ()- Returns an array of the contained representations.
- Returns:
array{}- Array of the contained representations.
getSelectionChangedListener
Object, string, InterModel, boolean, string getSelectionChangedListener ()- Returns the 'selection changed' listener of the ToggleButton.
- Returns:
Object- The object that contains the interaction that will be executed.string- Name of the interaction.InterModel- Arguments of the interaction that will be executed when this listener is activated.boolean- 'true' if this listener is executed globally, 'false' if it is executed only locally.string- The channel of the listener.
getShownListener
Object, string, InterModel, boolean, string getShownListener (string key)- Returns the 'shown' listener of the ToggleButton.
- Parameters:
string key- The key that will trigger the event.
- Returns:
Object- The object that contains the interaction that will be executed.string- Name of the interaction.InterModel- Arguments of the interaction that will be executed when this listener is activated.boolean- 'True' if this listener is executed globally, 'false' if it is executed only locally.string- The channel of the listener.
getShownListener
Object, string, InterModel, boolean, string getShownListener (string key, boolean ctrl, boolean alt, boolean shift)- Returns the 'shown' listener of the ToggleButton.
- Parameters:
string key- The key that will trigger the event.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.
- Returns:
Object- The object that contains the interaction that will be executed.string- Name of the interaction.InterModel- Arguments of the interaction that will be executed when this listener is activated.boolean- 'True' if this listener is executed globally, 'false' if it is executed only locally.string- The channel of the listener.
getSize
number, number getSize ()- Gets the size of the ToggleButton.
- Returns:
number- Width of the ToggleButton.number- Height of the ToggleButton.
getSizedListener
Object, string, InterModel, boolean, string getSizedListener (string key)- Returns the 'sized' listener of the ToggleButton.
- Parameters:
string key- The key that will trigger the event.
- Returns:
Object- The object that contains the interaction that will be executed.string- Name of the interaction.InterModel- Arguments of the interaction that will be executed when this listener is activated.boolean- 'True' if this listener is executed globally, 'false' if it is executed only locally.string- The channel of the listener.
getSizedListener
Object, string, InterModel, boolean, string getSizedListener (string key, boolean ctrl, boolean alt, boolean shift)- Returns the 'sized' listener of the ToggleButton.
- Parameters:
string key- The key that will trigger the event.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.
- Returns:
Object- The object that contains the interaction that will be executed.string- Name of the interaction.InterModel- Arguments of the interaction that will be executed when this listener is activated.boolean- 'True' if this listener is executed globally, 'false' if it is executed only locally.string- The channel of the listener.
getText
string getText ()- Gets the text of the ToggleButton.
- Returns:
string- The text of the ToggleButton
getTextChangedListener
Object, string, InterModel, boolean, string getTextChangedListener (string key)- Returns the 'text changed' listener of the ToggleButton.
- Parameters:
string key- The key that will trigger the event.
- Returns:
Object- The object that contains the interaction that will be executed.string- Name of the interaction.InterModel- Arguments of the interaction that will be executed when this listener is activated.boolean- 'True' if this listener is executed globally, 'false' if it is executed only locally.string- The channel of the listener.
getTextChangedListener
Object, string, InterModel, boolean, string getTextChangedListener (string key, boolean ctrl, boolean alt, boolean shift)- Returns the 'text changed' listener of the ToggleButton.
- Parameters:
string key- The key that will trigger the event.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.
- Returns:
Object- The object that contains the interaction that will be executed.string- Name of the interaction.InterModel- Arguments of the interaction that will be executed when this listener is activated.boolean- 'True' if this listener is executed globally, 'false' if it is executed only locally.string- The channel of the listener.
getTextColour
number, number, number, number getTextColour ()- Returns the colour of the ToggleButton's text.
- Returns:
number- Red colour value (between 0 and 255)number- Green colour value (between 0 and 255)number- Blue colour value (between 0 and 255)number- Alpha value (between 0 and 255)
getType
number getType ()- Returns the representation type:
2 - MODEL,
3 - LIGHT,
4 - EFFECT,
5 - PLANE,
6 - WATER,
7 - SOUND,
8 - TERRAIN_MESH_DECAL,
9 - TERRAIN_HIGHLIGHTING_DECAL,
10 - BILLBOARD,
11 - OVERLAY - Returns:
number- The type of the representation.
hasActivatedListener
boolean hasActivatedListener (string key)- Returns 'true' if the ToggleButton has a listener for the 'activated' event, otherwise 'false'.
- Parameters:
string key- The key that will trigger the event when released.
- Returns:
boolean- 'True' if the ToggleButton has a listener for the 'activated' event, otherwise 'false'.
hasActivatedListener
boolean hasActivatedListener (string key, boolean ctrl, boolean alt, boolean shift)- Returns 'true' if the ToggleButton has a listener for the 'activated' event, otherwise 'false'.
- Parameters:
string key- The key that will trigger the event when released.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.
- Returns:
boolean- 'True' if the ToggleButton has a listener for the 'activated' event, otherwise 'false'.
hasAlphaChangedListener
boolean hasAlphaChangedListener (string key)- Returns 'true' if the ToggleButton has a listener for the 'alpha changed' event, otherwise 'false'.
- Parameters:
string key- The key that will trigger the event when released.
- Returns:
boolean- 'True' if the ToggleButton has a listener for the 'alpha changed' event, otherwise 'false'.
hasAlphaChangedListener
boolean hasAlphaChangedListener (string key, boolean ctrl, boolean alt, boolean shift)- Returns 'true' if the ToggleButton has a listener for the 'alpha changed' event, otherwise 'false'.
- Parameters:
string key- The key that will trigger the event when released.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.
- Returns:
boolean- 'True' if the ToggleButton has a listener for the 'alpha changed' event, otherwise 'false'.
hasCaptureGainedListener
boolean hasCaptureGainedListener (string key)- Returns 'true' if the ToggleButton has a listener for the 'capture gained' event, otherwise 'false'.
- Parameters:
string key- The key that will trigger the event when released.
- Returns:
boolean- 'True' if the ToggleButton has a listener for the 'capture gained' event, otherwise 'false'.
hasCaptureGainedListener
boolean hasCaptureGainedListener (string key, boolean ctrl, boolean alt, boolean shift)- Returns 'true' if the ToggleButton has a listener for the 'capture gained' event, otherwise 'false'.
- Parameters:
string key- The key that will trigger the event when released.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.
- Returns:
boolean- 'True' if the ToggleButton has a listener for the 'capture gained' event, otherwise 'false'.
hasCaptureLostListener
boolean hasCaptureLostListener (string key)- Returns 'true' if the ToggleButton has a listener for the 'capture lost' event, otherwise 'false'.
- Parameters:
string key- The key that will trigger the event when released.
- Returns:
boolean- 'True' if the ToggleButton has a listener for the 'capture lost' event, otherwise 'false'.
hasCaptureLostListener
boolean hasCaptureLostListener (string key, boolean ctrl, boolean alt, boolean shift)- Returns 'true' if the ToggleButton has a listener for the 'capture lost' event, otherwise 'false'.
- Parameters:
string key- The key that will trigger the event when released.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.
- Returns:
boolean- 'True' if the ToggleButton has a listener for the 'capture lost' event, otherwise 'false'.
hasCharacterKeyListener
boolean hasCharacterKeyListener (string key)- Returns 'true' if the ToggleButton has a listener for the 'character key pressed' event, otherwise 'false'.
- Parameters:
string key- The key that will trigger the event when released.
- Returns:
boolean- 'True' if the ToggleButton has a listener for the 'character key pressed' event, otherwise 'false'.
hasCharacterKeyListener
boolean hasCharacterKeyListener (string key, boolean ctrl, boolean alt, boolean shift)- Returns 'true' if the ToggleButton has a listener for the 'character key pressed' event, otherwise 'false'.
- Parameters:
string key- The key that will trigger the event when released.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.
- Returns:
boolean- 'True' if the ToggleButton has a listener for the 'character key pressed' event, otherwise 'false'.
hasDeactivatedListener
boolean hasDeactivatedListener (string key)- Returns 'true' if the ToggleButton has a listener for the 'deactivated' event, otherwise 'false'.
- Parameters:
string key- The key that will trigger the event when released.
- Returns:
boolean- 'True' if the ToggleButton has a listener for the 'deactivated' event, otherwise 'false'.
hasDeactivatedListener
boolean hasDeactivatedListener (string key, boolean ctrl, boolean alt, boolean shift)- Returns 'true' if the ToggleButton has a listener for the 'deactivated' event, otherwise 'false'.
- Parameters:
string key- The key that will trigger the event when released.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.
- Returns:
boolean- 'True' if the ToggleButton has a listener for the 'deactivated' event, otherwise 'false'.
hasDisabledListener
boolean hasDisabledListener (string key)- Returns 'true' if the ToggleButton has a listener for the 'disabled' event, otherwise 'false'.
- Parameters:
string key- The key that will trigger the event when released.
- Returns:
boolean- 'True' if the ToggleButton has a listener for the 'disabled' event, otherwise 'false'.
hasDisabledListener
boolean hasDisabledListener (string key, boolean ctrl, boolean alt, boolean shift)- Returns 'true' if the ToggleButton has a listener for the 'disabled' event, otherwise 'false'.
- Parameters:
string key- The key that will trigger the event when released.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.
- Returns:
boolean- 'True' if the ToggleButton has a listener for the 'disabled' event, otherwise 'false'.
hasDragDropListener
boolean hasDragDropListener (string key)- Returns 'true' if the ToggleButton has a listener for the 'drag and drop' event, otherwise 'false'.
- Parameters:
string key- The key that will trigger the event when released.
- Returns:
boolean- 'True' if the ToggleButton has a listener for the 'drag and drop' event, otherwise 'false'.
hasDragDropListener
boolean hasDragDropListener (string key, boolean ctrl, boolean alt, boolean shift)- Returns 'true' if the ToggleButton has a listener for the 'drag and drop' event, otherwise 'false'.
- Parameters:
string key- The key that will trigger the event when released.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.
- Returns:
boolean- 'True' if the ToggleButton has a listener for the 'drag and drop' event, otherwise 'false'.
hasEnabledListener
boolean hasEnabledListener (string key)- Returns 'true' if the ToggleButton has a listener for the 'enabled' event, otherwise 'false'.
- Parameters:
string key- The key that will trigger the event when released.
- Returns:
boolean- 'True' if the ToggleButton has a listener for the 'enabled' event, otherwise 'false'.
hasEnabledListener
boolean hasEnabledListener (string key, boolean ctrl, boolean alt, boolean shift)- Returns 'true' if the ToggleButton has a listener for the 'enabled' event, otherwise 'false'.
- Parameters:
string key- The key that will trigger the event when released.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.
- Returns:
boolean- 'True' if the ToggleButton has a listener for the 'enabled' event, otherwise 'false'.
hasHiddenListener
boolean hasHiddenListener (string key)- Returns 'true' if the ToggleButton has a listener for the 'hidden' event, otherwise 'false'.
- Parameters:
string key- The key that will trigger the event when released.
- Returns:
boolean- 'True' if the ToggleButton has a listener for the 'hidden' event, otherwise 'false'.
hasHiddenListener
boolean hasHiddenListener (string key, boolean ctrl, boolean alt, boolean shift)- Returns 'true' if the ToggleButton has a listener for the 'hidden' event, otherwise 'false'.
- Parameters:
string key- The key that will trigger the event when released.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.
- Returns:
boolean- 'True' if the ToggleButton has a listener for the 'hidden' event, otherwise 'false'.
hasKeyPressedListener
boolean hasKeyPressedListener (string key)- Returns 'true' if the ToggleButton has a listener for the 'key pressed' event, otherwise 'false'.
- Parameters:
string key- The key that will trigger the event.
- Returns:
boolean- 'True' if the ToggleButton has a listener for the 'key pressed' event, otherwise 'false'.
hasKeyPressedListener
boolean hasKeyPressedListener (string key, boolean ctrl, boolean alt, boolean shift)- Returns 'true' if the ToggleButton has a listener for the 'key pressed' event, otherwise 'false'.
- Parameters:
string key- The key that will trigger the event.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.
- Returns:
boolean- 'True' if the ToggleButton has a listener for the 'key pressed' event, otherwise 'false'.
hasKeyReleasedListener
boolean hasKeyReleasedListener (string key)- Returns 'true' if the ToggleButton has a listener for the 'key released' event, otherwise 'false'.
- Parameters:
string key- The key that will trigger the event when released.
- Returns:
boolean- 'True' if the ToggleButton has a listener for the 'key released' event, otherwise 'false'.
hasKeyReleasedListener
boolean hasKeyReleasedListener (string key, boolean ctrl, boolean alt, boolean shift)- Returns 'true' if the ToggleButton has a listener for the 'key released' event, otherwise 'false'.
- Parameters:
string key- The key that will trigger the event when released.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.
- Returns:
boolean- 'True' if the ToggleButton has a listener for the 'key released' event, otherwise 'false'.
hasMouseButtonClickedListener
boolean hasMouseButtonClickedListener (number mousekey)- Returns 'true' if the ToggleButton has a listener for the 'button clicked' event, otherwise 'false'.
- Parameters:
number mousekey- Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.
- Returns:
boolean- 'True' if the ToggleButton has a listener for the 'button clicked' event, otherwise 'false'.
hasMouseButtonClickedListener
boolean hasMouseButtonClickedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)- Returns 'true' if the ToggleButton has a listener for the 'button clicked' event, otherwise 'false'.
- Parameters:
number mousekey- Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.
- Returns:
boolean- 'True' if the ToggleButton has a listener for the 'button clicked' event, otherwise 'false'.
hasMouseButtonDoubleClickedListener
boolean hasMouseButtonDoubleClickedListener (number mousekey)- Returns 'true' if the ToggleButton has a listener for the 'button double clicked' event, otherwise 'false'.
- Parameters:
number mousekey- Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.
- Returns:
boolean- 'True' if the ToggleButton has a listener for the 'button double clicked' event, otherwise 'false'.
hasMouseButtonDoubleClickedListener
boolean hasMouseButtonDoubleClickedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)- Returns 'true' if the ToggleButton has a listener for the 'button double clicked' event, otherwise 'false'.
- Parameters:
number mousekey- Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.
- Returns:
boolean- 'True' if the ToggleButton has a listener for the 'button double clicked' event, otherwise 'false'.
hasMouseButtonPressedListener
boolean hasMouseButtonPressedListener (number mousekey)- Returns 'true' if the ToggleButton has a listener for the 'button pressed' event, otherwise 'false'.
- Parameters:
number mousekey- Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.
- Returns:
boolean- 'True' if the ToggleButton has a listener for the 'button pressed' event, otherwise 'false'.
hasMouseButtonPressedListener
boolean hasMouseButtonPressedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)- Returns 'true' if the ToggleButton has a listener for the 'button pressed' event, otherwise 'false'.
- Parameters:
number mousekey- Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.
- Returns:
boolean- 'True' if the ToggleButton has a listener for the 'button pressed' event, otherwise 'false'.
hasMouseButtonReleasedListener
boolean hasMouseButtonReleasedListener (number mousekey)- Returns 'true' if the ToggleButton has a listener for the 'button released' event, otherwise 'false'.
- Parameters:
number mousekey- Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.
- Returns:
boolean- 'True' if the ToggleButton has a listener for the 'button released' event, otherwise 'false'.
hasMouseButtonReleasedListener
boolean hasMouseButtonReleasedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)- Returns 'true' if the ToggleButton has a listener for the 'button released' event, otherwise 'false'.
- Parameters:
number mousekey- Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.
- Returns:
boolean- 'True' if the ToggleButton has a listener for the 'button released' event, otherwise 'false'.
hasMouseButtonTripleClickedListener
boolean hasMouseButtonTripleClickedListener (number mousekey)- Returns 'true' if the ToggleButton has a listener for the 'button triple clicked' event, otherwise 'false'.
- Parameters:
number mousekey- Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.
- Returns:
boolean- 'True' if the ToggleButton has a listener for the 'button triple clicked' event, otherwise 'false'.
hasMouseButtonTripleClickedListener
boolean hasMouseButtonTripleClickedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)- Returns 'true' if the ToggleButton has a listener for the 'button triple clicked' event, otherwise 'false'.
- Parameters:
number mousekey- Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.
- Returns:
boolean- 'True' if the ToggleButton has a listener for the 'button triple clicked' event, otherwise 'false'.
hasMouseEnteredListener
boolean hasMouseEnteredListener ()- Returns 'true' if the ToggleButton has a listener for the 'mouse entered' event, otherwise 'false'.
- Returns:
boolean- 'True' if the ToggleButton has a listener for the 'mouse entered' event, otherwise 'false'.
hasMouseEnteredListener
boolean hasMouseEnteredListener (boolean ctrl, boolean alt, boolean shift)- Returns 'true' if the ToggleButton has a listener for the 'mouse entered' event, otherwise 'false'.
- Parameters:
boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.
- Returns:
boolean- 'True' if the ToggleButton has a listener for the 'mouse entered' event, otherwise 'false'.
hasMouseLeftListener
boolean hasMouseLeftListener ()- Returns 'true' if the ToggleButton has a listener for the 'mouse left' event, otherwise 'false'.
- Returns:
boolean- 'True' if the ToggleButton has a listener for the 'mouse left' event, otherwise 'false'.
hasMouseLeftListener
boolean hasMouseLeftListener (boolean ctrl, boolean alt, boolean shift)- Returns 'true' if the ToggleButton has a listener for the 'mouse left' event, otherwise 'false'.
- Parameters:
boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.
- Returns:
boolean- 'True' if the ToggleButton has a listener for the 'mouse left' event, otherwise 'false'.
hasMouseMovedListener
boolean hasMouseMovedListener ()- Returns 'true' if the ToggleButton has a listener for the 'mouse moved' event, otherwise 'false'.
- Returns:
boolean- 'True' if the ToggleButton has a listener for the 'mouse moved' event, otherwise 'false'.
hasMouseMovedListener
boolean hasMouseMovedListener (boolean ctrl, boolean alt, boolean shift)- Returns 'true' if the ToggleButton has a listener for the 'mouse moved' event, otherwise 'false'.
- Parameters:
boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.
- Returns:
boolean- 'True' if the ToggleButton has a listener for the 'mouse moved' event, otherwise 'false'.
hasMouseWheelMovedListener
boolean hasMouseWheelMovedListener (number mousekey)- Returns 'true' if the ToggleButton has a listener for the 'mouse wheel moved' event, otherwise 'false'.
- Parameters:
number mousekey- Mouse wheel movement that will trigger the event: MOUSE_WHEEL_DOWN or MOUSE_WHEEL_DOWN.
- Returns:
boolean- 'True' if the ToggleButton has a listener for the 'mouse wheel moved' event, otherwise 'false'.
hasMouseWheelMovedListener
boolean hasMouseWheelMovedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)- Returns 'true' if the ToggleButton has a listener for the 'mouse wheel moved' event, otherwise 'false'.
- Parameters:
number mousekey- Mouse wheel movement that will trigger the event: MOUSE_WHEEL_DOWN or MOUSE_WHEEL_DOWN.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.
- Returns:
boolean- 'True' if the ToggleButton has a listener for the 'mouse wheel moved' event, otherwise 'false'.
hasMovedListener
boolean hasMovedListener (string key)- Returns 'true' if the ToggleButton has a listener for the 'moved' event, otherwise 'false'.
- Parameters:
string key- The key that will trigger the event when released.
- Returns:
boolean- 'True' if the ToggleButton has a listener for the 'moved' event, otherwise 'false'.
hasMovedListener
boolean hasMovedListener (string key, boolean ctrl, boolean alt, boolean shift)- Returns 'true' if the ToggleButton has a listener for the 'moved' event, otherwise 'false'.
- Parameters:
string key- The key that will trigger the event when released.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.
- Returns:
boolean- 'True' if the ToggleButton has a listener for the 'moved' event, otherwise 'false'.
hasRepresentation
boolean hasRepresentation (representation other)- Returns 'true' if this representation has the other representation, otherwise 'false'.
- Parameters:
representation other- The other representation.
- Returns:
boolean- 'True' if this representation has the other representation, otherwise 'false'.
hasRepresentation
boolean hasRepresentation (string name, number type)- Returns 'true' if this representation has another representation with the specified name and type, otherwise 'false'.
- Parameters:
string name- Name of the representation.number type- Type of the representation
- Returns:
boolean- 'True' if this representation has another representation with the specified name and type, otherwise 'false'.
hasSelectionChangedListener
boolean hasSelectionChangedListener ()- Returns 'true' if the ToggleButton has a 'selection changed' listener, otherwise 'false'.
- Returns:
boolean- 'True' if the ToggleButton has a 'selection changed' listener, otherwise 'false'.
hasShownListener
boolean hasShownListener (string key)- Returns 'true' if the ToggleButton has a listener for the 'shown' event, otherwise 'false'.
- Parameters:
string key- The key that will trigger the event when released.
- Returns:
boolean- 'True' if the ToggleButton has a listener for the 'shown' event, otherwise 'false'.
hasShownListener
boolean hasShownListener (string key, boolean ctrl, boolean alt, boolean shift)- Returns 'true' if the ToggleButton has a listener for the 'shown' event, otherwise 'false'.
- Parameters:
string key- The key that will trigger the event when released.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.
- Returns:
boolean- 'True' if the ToggleButton has a listener for the 'shown' event, otherwise 'false'.
hasSizedListener
boolean hasSizedListener (string key)- Returns 'true' if the ToggleButton has a listener for the 'sized' event, otherwise 'false'.
- Parameters:
string key- The key that will trigger the event when released.
- Returns:
boolean- 'True' if the ToggleButton has a listener for the 'resize' event, otherwise 'false'.
hasSizedListener
boolean hasSizedListener (string key, boolean ctrl, boolean alt, boolean shift)- Returns 'true' if the ToggleButton has a listener for the 'sized' event, otherwise 'false'.
- Parameters:
string key- The key that will trigger the event when released.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.
- Returns:
boolean- 'True' if the ToggleButton has a listener for the 'resize' event, otherwise 'false'.
hasTextChangedListener
boolean hasTextChangedListener (string key)- Returns 'true' if the ToggleButton has a listener for the 'text changed' event, otherwise 'false'.
- Parameters:
string key- The key that will trigger the event when released.
- Returns:
boolean- 'True' if the ToggleButton has a listener for the 'text changed' event, otherwise 'false'.
hasTextChangedListener
boolean hasTextChangedListener (string key, boolean ctrl, boolean alt, boolean shift)- Returns 'true' if the ToggleButton has a listener for the 'text changed' event, otherwise 'false'.
- Parameters:
string key- The key that will trigger the event when released.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.
- Returns:
boolean- 'True' if the ToggleButton has a listener for the 'text changed' event, otherwise 'false'.
isEnabled
boolean isEnabled ()- Returns 'true' if the ToggleButton is enabled, otherwise 'false'.
- Returns:
boolean- 'True' if the ToggleButton is enabled, otherwise 'false'.
isInheritsAlpha
boolean isInheritsAlpha ()- Returns 'true' if the ToggleButton is set to inherit the alpha level from its parent, otherwise 'false'.
- Returns:
boolean- 'True' if the ToggleButton is set to inherit the alpha level from its parent, otherwise 'false'.
isOnTop
boolean isOnTop ()- Returns 'true' if the ToggleButton is set to show on top, otherwise 'false'.
- Returns:
boolean- 'True' if the ToggleButton is set to show on top, otherwise 'false'.
isPersistent
boolean isPersistent ()- Returns true if the representation is persistent, false otherwise.
- Returns:
boolean- Whether the ToggleButton is persistent or not.
isVisible
boolean isVisible ()- Returns 'true' if the representation is visible, 'false' otherwise.
- Returns:
boolean- Whether the ToggleButton is visible or not.
- Prints the ToggleButton data and attributes to the console.
removeActivatedListener
nil removeActivatedListener (string key)- Removes the listener for the 'activated' event on the ToggleButton.
- Parameters:
string key- The key that will trigger the event.
removeActivatedListener
nil removeActivatedListener (string key, boolean ctrl, boolean alt, boolean shift)- Removes the listener for the 'activated' event on the ToggleButton.
- Parameters:
string key- The key that will trigger the event.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.
removeAllOverlays
nil removeAllOverlays ()- Removes all Overlays contained in this ToggleButton.
removeAllRepresentations
nil removeAllRepresentations ()- Removes all representations contained in this representation.
removeAlphaChangedListener
nil removeAlphaChangedListener (string key)- Removes the listener for the 'alpha changed' event on the ToggleButton.
- Parameters:
string key- The key that will trigger the event.
removeAlphaChangedListener
nil removeAlphaChangedListener (string key, boolean ctrl, boolean alt, boolean shift)- Removes the listener for the 'alpha changed' event on the ToggleButton.
- Parameters:
string key- The key that will trigger the event.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.
removeCaptureGainedListener
nil removeCaptureGainedListener (string key)- Removes the listener for the 'capture gained' event on the ToggleButton.
- Parameters:
string key- The key that will trigger the event.
removeCaptureGainedListener
nil removeCaptureGainedListener (string key, boolean ctrl, boolean alt, boolean shift)- Removes the listener for the 'capture gained' event on the ToggleButton.
- Parameters:
string key- The key that will trigger the event.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.
removeCaptureLostListener
nil removeCaptureLostListener (string key)- Removes the listener for the 'capture lost' event on the ToggleButton.
- Parameters:
string key- The key that will trigger the event.
removeCaptureLostListener
nil removeCaptureLostListener (string key, boolean ctrl, boolean alt, boolean shift)- Removes the listener for the 'capture lost' event on the ToggleButton.
- Parameters:
string key- The key that will trigger the event.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.
removeCharacterKeyListener
nil removeCharacterKeyListener (string key)- Removes the listener for the 'character key pressed' event on the ToggleButton.
- Parameters:
string key- The key that will trigger the event.
removeCharacterKeyListener
nil removeCharacterKeyListener (string key, boolean ctrl, boolean alt, boolean shift)- Removes the listener for the 'character key pressed' event on the ToggleButton.
- Parameters:
string key- The key that will trigger the event.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.
removeDeactivatedListener
nil removeDeactivatedListener (string key)- Removes the listener for the 'deactivated' event on the ToggleButton.
- Parameters:
string key- The key that will trigger the event.
removeDeactivatedListener
nil removeDeactivatedListener (string key, boolean ctrl, boolean alt, boolean shift)- Removes the listener for the 'deactivated' event on the ToggleButton.
- Parameters:
string key- The key that will trigger the event.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.
removeDisabledListener
nil removeDisabledListener (string key)- Removes the listener for the 'disabled' event on the ToggleButton.
- Parameters:
string key- The key that will trigger the event.
removeDisabledListener
nil removeDisabledListener (string key, boolean ctrl, boolean alt, boolean shift)- Removes the listener for the 'disabled' event on the ToggleButton.
- Parameters:
string key- The key that will trigger the event.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.
removeDragDropListener
nil removeDragDropListener (string key)- Removes the listener for the 'drag and drop' event on the ToggleButton.
- Parameters:
string key- The key that will trigger the event.
removeDragDropListener
nil removeDragDropListener (string key, boolean ctrl, boolean alt, boolean shift)- Removes the listener for the 'drag and drop' event on the ToggleButton.
- Parameters:
string key- The key that will trigger the event.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.
removeEnabledListener
nil removeEnabledListener (string key)- Removes the listener for the 'enabled' event on the ToggleButton.
- Parameters:
string key- The key that will trigger the event.
removeEnabledListener
nil removeEnabledListener (string key, boolean ctrl, boolean alt, boolean shift)- Removes the listener for the 'enabled' event on the ToggleButton.
- Parameters:
string key- The key that will trigger the event.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.
removeHiddenListener
nil removeHiddenListener (string key)- Removes the listener for the 'hidden' event on the ToggleButton.
- Parameters:
string key- The key that will trigger the event.
removeHiddenListener
nil removeHiddenListener (string key, boolean ctrl, boolean alt, boolean shift)- Removes the listener for the 'hidden' event on the ToggleButton.
- Parameters:
string key- The key that will trigger the event.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.
removeKeyPressedListener
nil removeKeyPressedListener (string key)- Removes the listener for the 'key pressed' event on the ToggleButton.
- Parameters:
string key- The key that will trigger the event.
removeKeyPressedListener
nil removeKeyPressedListener (string key, boolean ctrl, boolean alt, boolean shift)- Removes the listener for the 'key pressed' event on the ToggleButton.
- Parameters:
string key- The key that will trigger the event.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.
removeKeyReleasedListener
nil removeKeyReleasedListener (string key)- Removes the listener for the 'key released' event on the ToggleButton.
- Parameters:
string key- The key that will trigger the event.
removeKeyReleasedListener
nil removeKeyReleasedListener (string key, boolean ctrl, boolean alt, boolean shift)- Removes the listener for the 'key released' event on the ToggleButton.
- Parameters:
string key- The key that will trigger the event.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.
removeMouseButtonClickedListener
nil removeMouseButtonClickedListener (number mousekey)- Removes the 'mouse button clicked' event listener of the ToggleButton.
- Parameters:
number mousekey- Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.
removeMouseButtonClickedListener
nil removeMouseButtonClickedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)- Removes the 'mouse button clicked' event listener of the ToggleButton.
- Parameters:
number mousekey- Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.
removeMouseButtonDoubleClickedListener
nil removeMouseButtonDoubleClickedListener (number mousekey)- Removes the 'mouse button double clicked' event listener of the ToggleButton.
- Parameters:
number mousekey- Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.
removeMouseButtonDoubleClickedListener
nil removeMouseButtonDoubleClickedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)- Removes the 'mouse button double clicked' event listener of the ToggleButton.
- Parameters:
number mousekey- Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.
removeMouseButtonPressedListener
nil removeMouseButtonPressedListener (number mousekey)- Removes the 'mouse button pressed' event listener of the ToggleButton.
- Parameters:
number mousekey- Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.
removeMouseButtonPressedListener
nil removeMouseButtonPressedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)- Removes the 'mouse button pressed' event listener of the ToggleButton.
- Parameters:
number mousekey- Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.
removeMouseButtonReleasedListener
nil removeMouseButtonReleasedListener (number mousekey)- Removes the 'mouse button released' event listener of the ToggleButton.
- Parameters:
number mousekey- Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.
removeMouseButtonReleasedListener
nil removeMouseButtonReleasedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)- Removes the 'mouse button released' event listener of the ToggleButton.
- Parameters:
number mousekey- Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.
removeMouseButtonTripleClickedListener
nil removeMouseButtonTripleClickedListener (number mousekey)- Removes the 'mouse button triple clicked' event listener of the ToggleButton.
- Parameters:
number mousekey- Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.
removeMouseButtonTripleClickedListener
nil removeMouseButtonTripleClickedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)- Removes the 'mouse button triple clicked' event listener of the ToggleButton.
- Parameters:
number mousekey- Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.
removeMouseEnteredListener
nil removeMouseEnteredListener ()- Removes the 'mouse entered' event listener of the ToggleButton.
removeMouseEnteredListener
nil removeMouseEnteredListener (boolean ctrl, boolean alt, boolean shift)- Removes the 'mouse entered' event listener of the ToggleButton.
- Parameters:
boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.
removeMouseLeftListener
nil removeMouseLeftListener ()- Removes the 'mouse left' event listener of the ToggleButton.
removeMouseLeftListener
nil removeMouseLeftListener (boolean ctrl, boolean alt, boolean shift)- Removes the 'mouse left' event listener of the ToggleButton.
- Parameters:
boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.
removeMouseMovedListener
nil removeMouseMovedListener ()- Removes the 'mouse moved' event listener of the ToggleButton.
removeMouseMovedListener
nil removeMouseMovedListener (boolean ctrl, boolean alt, boolean shift)- Removes the 'mouse moved' event listener of the ToggleButton.
- Parameters:
boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.
removeMouseWheelMovedListener
nil removeMouseWheelMovedListener (number mousekey)- Removes the 'mouse wheel moved' event listener of the ToggleButton.
- Parameters:
number mousekey- Mouse wheel movement that will trigger the event: MOUSE_WHEEL_DOWN or MOUSE_WHEEL_DOWN.
removeMouseWheelMovedListener
nil removeMouseWheelMovedListener (number mousekey, boolean ctrl, boolean alt, boolean shift)- Removes the 'mouse wheel moved' event listener of the ToggleButton.
- Parameters:
number mousekey- Mouse wheel movement that will trigger the event: MOUSE_WHEEL_DOWN or MOUSE_WHEEL_DOWN.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.
removeMovedListener
nil removeMovedListener (string key)- Removes the listener for the 'moved' event on the ToggleButton.
- Parameters:
string key- The key that will trigger the event.
removeMovedListener
nil removeMovedListener (string key, boolean ctrl, boolean alt, boolean shift)- Removes the listener for the 'moved' event on the ToggleButton.
- Parameters:
string key- The key that will trigger the event.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.
removeOverlay
nil removeOverlay (string name)- Removes an Overlay identified by name contained in this ToggleButton.
- Parameters:
string name- Name of the Overlay.
removeRepresentation
nil removeRepresentation (representation other)- Removes a representation from this representation.
- Parameters:
representation other- The representation to be removed.
removeRepresentation
nil removeRepresentation (string name, number type)- Removes a representation with the specified name and type from this representation.
- Parameters:
string name- Name of the representation.number type- Type of the representation
removeSelectionChangedListener
nil removeSelectionChangedListener ()- Removes the 'selection changed' listener from the ToggleButton.
removeShownListener
nil removeShownListener (string key)- Removes the listener for the 'shown' event on the ToggleButton.
- Parameters:
string key- The key that will trigger the event.
removeShownListener
nil removeShownListener (string key, boolean ctrl, boolean alt, boolean shift)- Removes the listener for the 'shown' event on the ToggleButton.
- Parameters:
string key- The key that will trigger the event.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.
removeSizedListener
nil removeSizedListener (string key)- Removes the listener for the 'sized' event on the ToggleButton.
- Parameters:
string key- The key that will trigger the event.
removeSizedListener
nil removeSizedListener (string key, boolean ctrl, boolean alt, boolean shift)- Removes the listener for the 'sized' event on the ToggleButton.
- Parameters:
string key- The key that will trigger the event.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.
removeTextChangedListener
nil removeTextChangedListener (string key)- Removes the listener for the 'text changed' event on the ToggleButton.
- Parameters:
string key- The key that will trigger the event.
removeTextChangedListener
nil removeTextChangedListener (string key, boolean ctrl, boolean alt, boolean shift)- Removes the listener for the 'text changed' event on the ToggleButton.
- Parameters:
string key- The key that will trigger the event.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.
setActivatedListener
nil setActivatedListener (string key, Object target, string name, InterModel interactionModel)- Sets a listener to be invoked upon a 'activated' event on the ToggleButton.
- Parameters:
string key- The key that will trigger the event when released.Object target- The object that contains the interaction that will be executed.string name- Name of the interaction.InterModel interactionModel- Arguments of the interaction that will be executed when this listener is activated.
setActivatedListener
nil setActivatedListener (string key, Object target, string name, InterModel interactionModel, boolean ctrl, boolean alt, boolean shift, boolean global, string channel)- Sets a listener to be invoked upon a 'activated' event on the ToggleButton.
- Parameters:
string key- The key that will trigger the event when released.Object target- The object that contains the interaction that will be executed.string name- Name of the interaction.InterModel interactionModel- Arguments of the interaction that will be executed when this listener is activated.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.boolean global- 'true' if this listener is executed globally, 'false' if it is executed only locally.string channel- The channel of the listener.
setAlpha
nil setAlpha (number The)- Sets the alpha level of the ToggleButton.
- Parameters:
number The- new transparency (alpha) level to be applied on the ToggleButton (between 0 and 255).
setAlphaChangedListener
nil setAlphaChangedListener (string key, Object target, string name, InterModel interactionModel)- Sets a listener to be invoked upon a 'alpha changed' event on the ToggleButton.
- Parameters:
string key- The key that will trigger the event when released.Object target- The object that contains the interaction that will be executed.string name- Name of the interaction.InterModel interactionModel- Arguments of the interaction that will be executed when this listener is activated.
setAlphaChangedListener
nil setAlphaChangedListener (string key, Object target, string name, InterModel interactionModel, boolean ctrl, boolean alt, boolean shift, boolean global, string channel)- Sets a listener to be invoked upon a 'alpha changed' event on the ToggleButton.
- Parameters:
string key- The key that will trigger the event when released.Object target- The object that contains the interaction that will be executed.string name- Name of the interaction.InterModel interactionModel- Arguments of the interaction that will be executed when this listener is activated.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.boolean global- 'true' if this listener is executed globally, 'false' if it is executed only locally.string channel- The channel of the listener.
setCaptureGainedListener
nil setCaptureGainedListener (string key, Object target, string name, InterModel interactionModel)- Sets a listener to be invoked upon a 'capture gained' event on the ToggleButton.
- Parameters:
string key- The key that will trigger the event when released.Object target- The object that contains the interaction that will be executed.string name- Name of the interaction.InterModel interactionModel- Arguments of the interaction that will be executed when this listener is activated.
setCaptureGainedListener
nil setCaptureGainedListener (string key, Object target, string name, InterModel interactionModel, boolean ctrl, boolean alt, boolean shift, boolean global, string channel)- Sets a listener to be invoked upon a 'capture gained' event on the ToggleButton.
- Parameters:
string key- The key that will trigger the event when released.Object target- The object that contains the interaction that will be executed.string name- Name of the interaction.InterModel interactionModel- Arguments of the interaction that will be executed when this listener is activated.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.boolean global- 'true' if this listener is executed globally, 'false' if it is executed only locally.string channel- The channel of the listener.
setCaptureLostListener
nil setCaptureLostListener (string key, Object target, string name, InterModel interactionModel)- Sets a listener to be invoked upon a 'capture lost' event on the ToggleButton.
- Parameters:
string key- The key that will trigger the event when released.Object target- The object that contains the interaction that will be executed.string name- Name of the interaction.InterModel interactionModel- Arguments of the interaction that will be executed when this listener is activated.
setCaptureLostListener
nil setCaptureLostListener (string key, Object target, string name, InterModel interactionModel, boolean ctrl, boolean alt, boolean shift, boolean global, string channel)- Sets a listener to be invoked upon a 'capture lost' event on the ToggleButton.
- Parameters:
string key- The key that will trigger the event when released.Object target- The object that contains the interaction that will be executed.string name- Name of the interaction.InterModel interactionModel- Arguments of the interaction that will be executed when this listener is activated.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.boolean global- 'true' if this listener is executed globally, 'false' if it is executed only locally.string channel- The channel of the listener.
setCharacterKeyListener
nil setCharacterKeyListener (string key, Object target, string name, InterModel interactionModel)- Sets a listener to be invoked upon a 'character key pressed' event on the ToggleButton.
- Parameters:
string key- The key that will trigger the event when released.Object target- The object that contains the interaction that will be executed.string name- Name of the interaction.InterModel interactionModel- Arguments of the interaction that will be executed when this listener is activated.
setCharacterKeyListener
nil setCharacterKeyListener (string key, Object target, string name, InterModel interactionModel, boolean ctrl, boolean alt, boolean shift, boolean global, string channel)- Sets a listener to be invoked upon a 'character key pressed' event on the ToggleButton.
- Parameters:
string key- The key that will trigger the event when released.Object target- The object that contains the interaction that will be executed.string name- Name of the interaction.InterModel interactionModel- Arguments of the interaction that will be executed when this listener is activated.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.boolean global- 'true' if this listener is executed globally, 'false' if it is executed only locally.string channel- The channel of the listener.
setDeactivatedListener
nil setDeactivatedListener (string key, Object target, string name, InterModel interactionModel)- Sets a listener to be invoked upon a 'deactivated' event on the ToggleButton.
- Parameters:
string key- The key that will trigger the event when released.Object target- The object that contains the interaction that will be executed.string name- Name of the interaction.InterModel interactionModel- Arguments of the interaction that will be executed when this listener is activated.
setDeactivatedListener
nil setDeactivatedListener (string key, Object target, string name, InterModel interactionModel, boolean ctrl, boolean alt, boolean shift, boolean global, string channel)- Sets a listener to be invoked upon a 'deactivated' event on the ToggleButton.
- Parameters:
string key- The key that will trigger the event when released.Object target- The object that contains the interaction that will be executed.string name- Name of the interaction.InterModel interactionModel- Arguments of the interaction that will be executed when this listener is activated.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.boolean global- 'true' if this listener is executed globally, 'false' if it is executed only locally.string channel- The channel of the listener.
setDisabledColour
nil setDisabledColour (number r, number g, number b, number a)- Changes the colour of the ToggleButton's text when the ToggleButton is disabled.
- Parameters:
number r- Red Colour value (between 0 and 255).number g- Green Colour value (between 0 and 255).number b- Blue Colour value (between 0 and 255).number a- Alpha value (between 0 and 255).
setDisabledImage
nil setDisabledImage (MediaItem image)- Sets the image of the ToggleButton when the ToggleButton is disabled.
- Parameters:
MediaItem image- Image of the ToggleButton when the ToggleButton is disabled.
setDisabledListener
nil setDisabledListener (string key, Object target, string name, InterModel interactionModel)- Sets a listener to be invoked upon a 'disabled' event on the ToggleButton.
- Parameters:
string key- The key that will trigger the event when released.Object target- The object that contains the interaction that will be executed.string name- Name of the interaction.InterModel interactionModel- Arguments of the interaction that will be executed when this listener is activated.
setDisabledListener
nil setDisabledListener (string key, Object target, string name, InterModel interactionModel, boolean ctrl, boolean alt, boolean shift, boolean global, string channel)- Sets a listener to be invoked upon a 'disabled' event on the ToggleButton.
- Parameters:
string key- The key that will trigger the event when released.Object target- The object that contains the interaction that will be executed.string name- Name of the interaction.InterModel interactionModel- Arguments of the interaction that will be executed when this listener is activated.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.boolean global- 'true' if this listener is executed globally, 'false' if it is executed only locally.string channel- The channel of the listener.
setDragDropListener
nil setDragDropListener (number mousekey, Object target, string name, InterModel interactionModel)- Sets a listener to be invoked upon a 'drag and drop' event on the ToggleButton.
- Parameters:
number mousekey- Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.Object target- The object that contains the interaction that will be executed.string name- Name of the interaction.InterModel interactionModel- Arguments of the interaction that will be executed when this listener is activated.
setDragDropListener
nil setDragDropListener (number mousekey, Object target, string name, InterModel interactionModel, boolean ctrl, boolean alt, boolean shift, boolean global, string channel)- Sets a listener to be invoked upon a 'drag and drop' event on the ToggleButton.
- Parameters:
number mousekey- Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.Object target- The object that contains the interaction that will be executed.string name- Name of the interaction.InterModel interactionModel- Arguments of the interaction that will be executed when this listener is activated.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.boolean global- 'true' if this listener is executed globally, 'false' if it is executed only locally.string channel- The channel of the listener.
setEnabled
nil setEnabled (boolean enable)- Enables or disables the ToggleButton.
- Parameters:
boolean enable- 'True' if the ToggleButton is enabled, otherwise 'false'.
setEnabledListener
nil setEnabledListener (string key, Object target, string name, InterModel interactionModel)- Sets a listener to be invoked upon a 'enabled' event on the ToggleButton.
- Parameters:
string key- The key that will trigger the event when released.Object target- The object that contains the interaction that will be executed.string name- Name of the interaction.InterModel interactionModel- Arguments of the interaction that will be executed when this listener is activated.
setEnabledListener
nil setEnabledListener (string key, Object target, string name, InterModel interactionModel, boolean ctrl, boolean alt, boolean shift, boolean global, string channel)- Sets a listener to be invoked upon a 'enabled' event on the ToggleButton.
- Parameters:
string key- The key that will trigger the event when released.Object target- The object that contains the interaction that will be executed.string name- Name of the interaction.InterModel interactionModel- Arguments of the interaction that will be executed when this listener is activated.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.boolean global- 'true' if this listener is executed globally, 'false' if it is executed only locally.string channel- The channel of the listener.
setFont
nil setFont (MediaItem font, number size)- Changes the text font to be applied on the ToggleButton.
- Parameters:
MediaItem font- The Media Item containing the font for the ToggleButton.number size- The size of the font.
setHiddenListener
nil setHiddenListener (string key, Object target, string name, InterModel interactionModel)- Sets a listener to be invoked upon a 'hidden' event on the ToggleButton.
- Parameters:
string key- The key that will trigger the event when released.Object target- The object that contains the interaction that will be executed.string name- Name of the interaction.InterModel interactionModel- Arguments of the interaction that will be executed when this listener is activated.
setHiddenListener
nil setHiddenListener (string key, Object target, string name, InterModel interactionModel, boolean ctrl, boolean alt, boolean shift, boolean global, string channel)- Sets a listener to be invoked upon a 'hidden' event on the ToggleButton.
- Parameters:
string key- The key that will trigger the event when released.Object target- The object that contains the interaction that will be executed.string name- Name of the interaction.InterModel interactionModel- Arguments of the interaction that will be executed when this listener is activated.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.boolean global- 'true' if this listener is executed globally, 'false' if it is executed only locally.string channel- The channel of the listener.
setHoverColour
nil setHoverColour (number r, number g, number b, number a)- Changes the colour of the ToggleButton's text when the mouse is hovering it.
- Parameters:
number r- Red Colour value (between 0 and 255).number g- Green Colour value (between 0 and 255).number b- Blue Colour value (between 0 and 255).number a- Alpha value (between 0 and 255).
setHoverImage
nil setHoverImage (MediaItem image)- Sets the image of the ToggleButton when the mouse is hovering it.
- Parameters:
MediaItem image- Image of the ToggleButton when the mouse is hovering it.
setInheritsAlpha
nil setInheritsAlpha (boolean inAlpha)- Sets whether the ToggleButton inherits the alpha level from the parent component of not.
- Parameters:
boolean inAlpha- Whether the ToggleButton inherits the alpha level from the parent component of not.
setKeyPressedListener
nil setKeyPressedListener (string key, Object target, string name, InterModel interactionModel)- Sets a listener to be invoked upon a 'key pressed' event on the ToggleButton.
- Parameters:
string key- The key that will trigger the event.Object target- The object that contains the interaction that will be executed.string name- Name of the interaction.InterModel interactionModel- Arguments of the interaction that will be executed when this listener is activated.
setKeyPressedListener
nil setKeyPressedListener (string key, Object target, string name, InterModel interactionModel, boolean ctrl, boolean alt, boolean shift, boolean global, string channel)- Sets a listener to be invoked upon a 'key pressed' event on the ToggleButton.
- Parameters:
string key- The key that will trigger the event.Object target- The object that contains the interaction that will be executed.string name- Name of the interaction.InterModel interactionModel- Arguments of the interaction that will be executed when this listener is activated.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.boolean global- 'true' if this listener is executed globally, 'false' if it is executed only locally.string channel- The channel of the listener.
setKeyReleasedListener
nil setKeyReleasedListener (string key, Object target, string name, InterModel interactionModel)- Sets a listener to be invoked upon a 'key released' event on the ToggleButton.
- Parameters:
string key- The key that will trigger the event when released.Object target- The object that contains the interaction that will be executed.string name- Name of the interaction.InterModel interactionModel- Arguments of the interaction that will be executed when this listener is activated.
setKeyReleasedListener
nil setKeyReleasedListener (string key, Object target, string name, InterModel interactionModel, boolean ctrl, boolean alt, boolean shift, boolean global, string channel)- Sets a listener to be invoked upon a 'key released' event on the ToggleButton.
- Parameters:
string key- The key that will trigger the event when released.Object target- The object that contains the interaction that will be executed.string name- Name of the interaction.InterModel interactionModel- Arguments of the interaction that will be executed when this listener is activated.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.boolean global- 'true' if this listener is executed globally, 'false' if it is executed only locally.string channel- The channel of the listener.
setMaxSize
nil setMaxSize (number w, number h)- Sets the maximum size of the ToggleButton.
- Parameters:
number w- Maximum width of the ToggleButton.number h- Maximum height of the ToggleButton.
setMinSize
nil setMinSize (number w, number h)- Sets the minimum size of the ToggleButton.
- Parameters:
number w- Minimum width of the ToggleButton.number h- Minimum height of the ToggleButton.
setMouseButtonDoubleClickedListener
nil setMouseButtonDoubleClickedListener (number mousekey, Object target, string name, InterModel interactionModel)- Sets a listener to be invoked upon a 'mouse button double clicked' event on the ToggleButton.
- Parameters:
number mousekey- Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.Object target- The object that contains the interaction that will be executed.string name- Name of the interaction.InterModel interactionModel- Arguments of the interaction that will be executed when this listener is activated.
setMouseButtonDoubleClickedListener
nil setMouseButtonDoubleClickedListener (number mousekey, Object target, string name, InterModel interactionModel, boolean ctrl, boolean alt, boolean shift, boolean global, string channel)- Sets a listener to be invoked upon a 'mouse button double clicked' event on the ToggleButton.
- Parameters:
number mousekey- Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.Object target- The object that contains the interaction that will be executed.string name- Name of the interaction.InterModel interactionModel- Arguments of the interaction that will be executed when this listener is activated.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.boolean global- 'true' if this listener is executed globally, 'false' if it is executed only locally.string channel- The channel of the listener.
setMouseButtonPressedListener
nil setMouseButtonPressedListener (number mousekey, Object target, string name, InterModel interactionModel)- Sets a listener to be invoked upon a 'mouse button pressed' event on the ToggleButton.
- Parameters:
number mousekey- Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.Object target- The object that contains the interaction that will be executed.string name- Name of the interaction.InterModel interactionModel- Arguments of the interaction that will be executed when this listener is activated.
setMouseButtonPressedListener
nil setMouseButtonPressedListener (number mousekey, Object target, string name, InterModel interactionModel, boolean ctrl, boolean alt, boolean shift, boolean global, string channel)- Sets a listener to be invoked upon a 'mouse button pressed' event on the ToggleButton.
- Parameters:
number mousekey- Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.Object target- The object that contains the interaction that will be executed.string name- Name of the interaction.InterModel interactionModel- Arguments of the interaction that will be executed when this listener is activated.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.boolean global- 'true' if this listener is executed globally, 'false' if it is executed only locally.string channel- The channel of the listener.
setMouseButtonReleasedListener
nil setMouseButtonReleasedListener (number mousekey, Object target, string name, InterModel interactionModel)- Sets a listener to be invoked upon a 'mouse button released' event on the ToggleButton.
- Parameters:
number mousekey- Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.Object target- The object that contains the interaction that will be executed.string name- Name of the interaction.InterModel interactionModel- Arguments of the interaction that will be executed when this listener is activated.
setMouseButtonReleasedListener
nil setMouseButtonReleasedListener (number mousekey, Object target, string name, InterModel interactionModel, boolean ctrl, boolean alt, boolean shift, boolean global, string channel)- Sets a listener to be invoked upon a 'mouse button released' event on the ToggleButton.
- Parameters:
number mousekey- Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.Object target- The object that contains the interaction that will be executed.string name- Name of the interaction.InterModel interactionModel- Arguments of the interaction that will be executed when this listener is activated.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.boolean global- 'true' if this listener is executed globally, 'false' if it is executed only locally.string channel- The channel of the listener.
setMouseButtonTripleClickedListener
nil setMouseButtonTripleClickedListener (number mousekey, Object target, string name, InterModel interactionModel)- Sets a listener to be invoked upon a 'mouse button triple clicked' event on the ToggleButton.
- Parameters:
number mousekey- Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.Object target- The object that contains the interaction that will be executed.string name- Name of the interaction.InterModel interactionModel- Arguments of the interaction that will be executed when this listener is activated.
setMouseButtonTripleClickedListener
nil setMouseButtonTripleClickedListener (number mousekey, Object target, string name, InterModel interactionModel, boolean ctrl, boolean alt, boolean shift, boolean global, string channel)- Sets a listener to be invoked upon a 'mouse button triple clicked' event on the ToggleButton.
- Parameters:
number mousekey- Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.Object target- The object that contains the interaction that will be executed.string name- Name of the interaction.InterModel interactionModel- Arguments of the interaction that will be executed when this listener is activated.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.boolean global- 'true' if this listener is executed globally, 'false' if it is executed only locally.string channel- The channel of the listener.
setMouseCursor
nil setMouseCursor (MediaItem cursorImage, string imageName)- Sets an image to the mouse cursor when over the ToggleButton..
- Parameters:
MediaItem cursorImage- Media Item containing the look n' feel for the cursor.string imageName- Name of the image to apply.
setMouseEnteredListener
nil setMouseEnteredListener (Object target, string name, InterModel interactionModel)- Sets a listener to be invoked upon a 'mouse enter' event on the ToggleButton.
- Parameters:
Object target- The object that contains the interaction that will be executed.string name- Name of the interaction.InterModel interactionModel- Arguments of the interaction that will be executed when this listener is activated.
setMouseEnteredListener
nil setMouseEnteredListener (Object target, string name, InterModel interactionModel, boolean ctrl, boolean alt, boolean shift, boolean global, string channel)- Sets a listener to be invoked upon a 'mouse enter' event on the ToggleButton.
- Parameters:
Object target- The object that contains the interaction that will be executed.string name- Name of the interaction.InterModel interactionModel- Arguments of the interaction that will be executed when this listener is activated.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.boolean global- 'true' if this listener is executed globally, 'false' if it is executed only locally.string channel- The channel of the listener.
setMouseLeftListener
nil setMouseLeftListener (Object target, string name, InterModel interactionModel)- Sets a listener to be invoked upon a 'mouse leave' event on the ToggleButton.
- Parameters:
Object target- The object that contains the interaction that will be executed.string name- Name of the interaction.InterModel interactionModel- Arguments of the interaction that will be executed when this listener is activated.
setMouseLeftListener
nil setMouseLeftListener (Object target, string name, InterModel interactionModel, boolean ctrl, boolean alt, boolean shift, boolean global, string channel)- Sets a listener to be invoked upon a 'mouse leave' event on the ToggleButton.
- Parameters:
Object target- The object that contains the interaction that will be executed.string name- Name of the interaction.InterModel interactionModel- Arguments of the interaction that will be executed when this listener is activated.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.boolean global- 'true' if this listener is executed globally, 'false' if it is executed only locally.string channel- The channel of the listener.
setMouseMovedListener
nil setMouseMovedListener (Object target, string name, InterModel interactionModel)- Sets a listener to be invoked upon a 'mouse move' event on the ToggleButton.
- Parameters:
Object target- The object that contains the interaction that will be executed.string name- Name of the interaction.InterModel interactionModel- Arguments of the interaction that will be executed when this listener is activated.
setMouseMovedListener
nil setMouseMovedListener (Object target, string name, InterModel interactionModel, boolean ctrl, boolean alt, boolean shift, boolean global, string channel)- Sets a listener to be invoked upon a 'mouse move' event on the ToggleButton.
- Parameters:
Object target- The object that contains the interaction that will be executed.string name- Name of the interaction.InterModel interactionModel- Arguments of the interaction that will be executed when this listener is activated.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.boolean global- 'true' if this listener is executed globally, 'false' if it is executed only locally.string channel- The channel of the listener.
setMouseWheelMovedListener
nil setMouseWheelMovedListener (number mousekey, Object target, string name, InterModel interactionModel)- Sets a listener to be invoked upon a 'mouse wheel moved' event on the ToggleButton.
- Parameters:
number mousekey- Mouse wheel movement that will trigger the event: MOUSE_WHEEL_DOWN or MOUSE_WHEEL_DOWN.Object target- The object that contains the interaction that will be executed.string name- Name of the interaction.InterModel interactionModel- Arguments of the interaction that will be executed when this listener is activated.
setMouseWheelMovedListener
nil setMouseWheelMovedListener (number mousekey, Object target, string name, InterModel interactionModel, boolean ctrl, boolean alt, boolean shift, boolean global, string channel)- Sets a listener to be invoked upon a 'mouse wheel moved' event on the ToggleButton.
- Parameters:
number mousekey- Mouse wheel movement that will trigger the event: MOUSE_WHEEL_DOWN or MOUSE_WHEEL_DOWN.Object target- The object that contains the interaction that will be executed.string name- Name of the interaction.InterModel interactionModel- Arguments of the interaction that will be executed when this listener is activated.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.boolean global- 'true' if this listener is executed globally, 'false' if it is executed only locally.string channel- The channel of the listener.
setMovedListener
nil setMovedListener (string key, Object target, string name, InterModel interactionModel)- Sets a listener to be invoked upon a 'moved' event on the ToggleButton.
- Parameters:
string key- The key that will trigger the event when released.Object target- The object that contains the interaction that will be executed.string name- Name of the interaction.InterModel interactionModel- Arguments of the interaction that will be executed when this listener is activated.
setMovedListener
nil setMovedListener (string key, Object target, string name, InterModel interactionModel, boolean ctrl, boolean alt, boolean shift, boolean global, string channel)- Sets a listener to be invoked upon a 'moved' event on the ToggleButton.
- Parameters:
string key- The key that will trigger the event when released.Object target- The object that contains the interaction that will be executed.string name- Name of the interaction.InterModel interactionModel- Arguments of the interaction that will be executed when this listener is activated.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.boolean global- 'true' if this listener is executed globally, 'false' if it is executed only locally.string channel- The channel of the listener.
setNormalImage
nil setNormalImage (MediaItem image)- Sets the image of the ToggleButton.
- Parameters:
MediaItem image- Image of the ToggleButton.
setOnTop
nil setOnTop (boolean onTop)- Sets the ToggleButton to show on top or not.
- Parameters:
boolean onTop- Whether the ToggleButton is set to show on top or not.
setPersistent
nil setPersistent (boolean persistent)- Makes the ToggleButton persistent or not persistent.
- Parameters:
boolean persistent- Whether the ToggleButton is persistent or not.
setPosition
nil setPosition (number x, number y)- Sets the position of the ToggleButton without a smooth transition.
- Parameters:
number x- X coordinate of the position of the ToggleButton.number y- Y coordinate of the position of the ToggleButton.
setPosition
nil setPosition (number x, number y, bool Smooth)- Sets the position of the ToggleButton.
- Parameters:
number x- X coordinate of the position of the ToggleButton.number y- Y coordinate of the position of the ToggleButton.bool Smooth- Whether the position changes with a smooth transition.
setPushedColour
nil setPushedColour (number r, number g, number b, number a)- Changes the colour of the ToggleButton's text when the ToggleButton is pushed.
- Parameters:
number r- Red Colour value (between 0 and 255).number g- Green Colour value (between 0 and 255).number b- Blue Colour value (between 0 and 255).number a- Alpha value (between 0 and 255).
setPushedImage
nil setPushedImage (MediaItem image)- Sets the image of the ToggleButton when the ToggleButton is pushed.
- Parameters:
MediaItem image- Image of the ToggleButton when the ToggleButton is pushed.
setSelected
nil setSelected (boolean state)- Selects or deselects the ToggleButton.
- Parameters:
boolean state- 'True' to select the ToggleButton, 'false' to deselect it.
setSelectionChangedListener
nil setSelectionChangedListener (Object target, string name, InterModel interactionModel)- Sets a listener to be invoked upon a 'selection changed' event on the ToggleButton.
- Parameters:
Object target- The object that contains the interaction that will be executed.string name- Name of the interaction.InterModel interactionModel- Arguments of the interaction that will be executed when this listener is activated.
setSelectionChangedListener
nil setSelectionChangedListener (Object target, string name, InterModel interactionModel, boolean global, string channel)- Sets a listener to be invoked upon a 'selection changed' event on the ToggleButton.
- Parameters:
Object target- The object that contains the interaction that will be executed.string name- Name of the interaction.InterModel interactionModel- Arguments of the interaction that will be executed when this listener is activated.boolean global- 'true' if this listener is executed globally, 'false' if it is executed only locally.string channel- The channel of the listener.
setShownListener
nil setShownListener (string key, Object target, string name, InterModel interactionModel)- Sets a listener to be invoked upon a 'shown' event on the ToggleButton.
- Parameters:
string key- The key that will trigger the event when released.Object target- The object that contains the interaction that will be executed.string name- Name of the interaction.InterModel interactionModel- Arguments of the interaction that will be executed when this listener is activated.
setShownListener
nil setShownListener (string key, Object target, string name, InterModel interactionModel, boolean ctrl, boolean alt, boolean shift, boolean global, string channel)- Sets a listener to be invoked upon a 'shown' event on the ToggleButton.
- Parameters:
string key- The key that will trigger the event when released.Object target- The object that contains the interaction that will be executed.string name- Name of the interaction.InterModel interactionModel- Arguments of the interaction that will be executed when this listener is activated.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.boolean global- 'true' if this listener is executed globally, 'false' if it is executed only locally.string channel- The channel of the listener.
setSize
nil setSize (number w, number h)- Sets the size of the ToggleButton without a smooth transition.
- Parameters:
number w- Width of the ToggleButton.number h- Height of the ToggleButton.
setSize
nil setSize (number w, number h, bool smooth)- Sets the size of the ToggleButton.
- Parameters:
number w- Width of the ToggleButton.number h- Height of the ToggleButton.bool smooth- Whether the size changes with a smooth transition.
setSizedListener
nil setSizedListener (number mousekey, Object target, string name, InterModel interactionModel)- Sets a listener to be invoked upon a 'resize' event on the ToggleButton.
- Parameters:
number mousekey- Mouse key that will trigger the event: MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE or MOUSE_BUTTON_RIGHT.Object target- The object that contains the interaction that will be executed.string name- Name of the interaction.InterModel interactionModel- Arguments of the interaction that will be executed when this listener is activated.
setSizedListener
nil setSizedListener (Object target, string name, InterModel interactionModel, boolean ctrl, boolean alt, boolean shift, boolean global, string channel)- Sets a listener to be invoked upon a 'resize' event on the ToggleButton.
- Parameters:
Object target- The object that contains the interaction that will be executed.string name- Name of the interaction.InterModel interactionModel- Arguments of the interaction that will be executed when this listener is activated.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.boolean global- 'true' if this listener is executed globally, 'false' if it is executed only locally.string channel- The channel of the listener.
setText
nil setText (string text)- Sets the text of the ToggleButton.
- Parameters:
string text- The text of the ToggleButton
setTextChangedListener
nil setTextChangedListener (string key, Object target, string name, InterModel interactionModel)- Sets a listener to be invoked upon a 'text changed' event on the ToggleButton.
- Parameters:
string key- The key that will trigger the event when released.Object target- The object that contains the interaction that will be executed.string name- Name of the interaction.InterModel interactionModel- Arguments of the interaction that will be executed when this listener is activated.
setTextChangedListener
nil setTextChangedListener (string key, Object target, string name, InterModel interactionModel, boolean ctrl, boolean alt, boolean shift, boolean global, string channel)- Sets a listener to be invoked upon a 'text changed' event on the ToggleButton.
- Parameters:
string key- The key that will trigger the event when released.Object target- The object that contains the interaction that will be executed.string name- Name of the interaction.InterModel interactionModel- Arguments of the interaction that will be executed when this listener is activated.boolean ctrl- Whether the key combination includes the 'ctrl' modifier key.boolean alt- Whether the key combination includes the 'alt' modifier key.boolean shift- Whether the key combination includes the 'shift' modifier key.boolean global- 'true' if this listener is executed globally, 'false' if it is executed only locally.string channel- The channel of the listener.
setTextColour
nil setTextColour (number r, number g, number b, number a)- Changes the colour of the ToggleButton's text.
- Parameters:
number r- Red Colour value (between 0 and 255).number g- Green Colour value (between 0 and 255).number b- Blue Colour value (between 0 and 255).number a- Alpha value (between 0 and 255).
setTooltip
nil setTooltip (string tooltip)- Sets the tooltip text of the ToggleButton.
- Parameters:
string tooltip- The new tooltip text.
setVisible
nil setVisible (boolean visible)- Makes the ToggleButton visible or invisible without a smooth transition.
- Parameters:
boolean visible- Whether the ToggleButton is visible or not.
setVisible
nil setVisible (boolean visible, bool smooth)- Makes the ToggleButton visible or invisible.
- Parameters:
boolean visible- Whether the ToggleButton is visible or not.bool smooth- Whether the ToggleButton appears or disappears smoothly.

