tweak.ButtonAction Extends goog.tweak.BaseEntry
A registry action (a button).

Inheritance

Constructor

goog.tweak.ButtonAction(iddescriptioncallback)

Parameters

id : string
The ID for the setting.
description : string
A description of what the setting does.
callback : !Function
Function to call when the button is clicked.

Instance Methods

Public Protected Private
addCallback(callback)
Adds a callback that should be called when the setting has changed (or when an action has been clicked).
Arguments:
callback : !Function
The callback to add.
code »
fireCallbacks()
Calls all registered callbacks.
code »
getId() string
No description.
Returns: string  Returns the entry's ID.
code »
isRestartRequired() boolean
Returns whether a restart is required for changes to the setting to take effect.
Returns: boolean  The value.
code »
removeCallback(callback)
Removes a callback that was added by addCallback.
Arguments:
callback : !Function
The callback to add.
code »
setRestartRequired(value)
Sets whether a restart is required for changes to the setting to take effect.
Arguments:
value : boolean
The new value.
code »

Instance Properties

constructor :
No description.
Code »
callbacks_ :
Functions to be called whenever a setting is changed or a button is clicked.
Code »
description :
A description of what this entry does.
Code »
id_ :
An ID to uniquely identify the entry.
Code »
label :
A descriptive label for the entry.
Code »
The logger for this class.
Code »
restartRequired_ :
Whether a restart is required for changes to the setting to take effect.
Code »

Static Properties

goog.tweak.ButtonAction.superClass_ :
No description.
Code »

Package tweak

Package Reference