The goog.tweak.BaseEntry Class

goog.tweak.BaseEntry(id, description)

Base class for all Registry entries.

id {string}
The ID for the entry. Must contain only letters, numbers, underscores and periods.
description {string}
A description of what the entry does.

.addCallback(callback)

Adds a callback that should be called when the setting has changed (or when an action has been clicked).

callback {!Function}
The callback to add.

.description {string}

A description of what this entry does.

.fireCallbacks()

Calls all registered callbacks.

.getId()

returns {string}
Returns the entry's ID.

.isRestartRequired()

Returns whether a restart is required for changes to the setting to take effect.

returns {boolean}
The value.

.label {string}

A descriptive label for the entry.

.removeCallback(callback)

Removes a callback that was added by addCallback.

callback {!Function}
The callback to add.

.setRestartRequired(value)

Sets whether a restart is required for changes to the setting to take effect.

value {boolean}
The new value.