The goog.tweak.BaseSetting Class

goog.tweak.BaseSetting
> goog.tweak.BaseEntry

goog.tweak.BaseSetting(id, description)

Base class for all tweak entries that are settings. Settings are entries that are associated with a query parameter.

id {string}
The ID for the setting.
description {string}
A description of what the setting does.

.addCallback(callback)

Inherited from goog.tweak.BaseEntry .

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.

.fireCallbacks()

Inherited from goog.tweak.BaseEntry .

Calls all registered callbacks.

.getId()

Inherited from goog.tweak.BaseEntry .

returns {string}
Returns the entry's ID.

.getNewValueEncoded()

Returns the value to be used in the query parameter for this tweak.

returns {?string}
The encoded value. Null if the value is set to its default.

.getParamName()

Returns the name of the query parameter used for this setting.

returns {?string}
The param name. Null if no query parameter is directly associated with the setting.

.isRestartRequired()

Inherited from goog.tweak.BaseEntry .

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

returns {boolean}
The value.

.removeCallback(callback)

Inherited from goog.tweak.BaseEntry .

Removes a callback that was added by addCallback.

callback {!Function}
The callback to add.

.setInitialQueryParamValue(value)

Sets the initial query parameter value for this setting. May not be called after the setting has been initialized.

value {string}
The inital query parameter value for this setting.

.setParamName(value)

Sets the name of the query parameter used for this setting. If null is passed the the setting will not appear in the top-level query string.

value {?string}
The new value.

.setRestartRequired(value)

Inherited from goog.tweak.BaseEntry .

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

value {boolean}
The new value.