goog.tweak.BooleanGroup
Classgoog.tweak.BooleanGroup
> goog.tweak.BaseSetting
> goog.tweak.BaseEntry
goog.tweak.BooleanGroup(id, description)
A registry setting that contains a group of boolean subfield, where all entries modify the same query parameter. For example: ?foo=setting1,-setting2
id
{string
}
description
{string
}
.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
}
.addChild(boolEntry)
Adds the given BooleanSetting to the group.
boolEntry
{goog.tweak.BooleanInGroupSetting
}
.assertNotInitialized(funcName)
[protected]Inherited from goog.tweak.BaseSetting
.
Asserts that this tweak has not been initialized yet.
funcName
{string
}
.ensureInitialized()
[protected]Inherited from goog.tweak.BaseSetting
.
Applies the default value or query param value if this is the first time that the function has been called.
.fireCallbacks()
Inherited from goog.tweak.BaseEntry
.
Calls all registered callbacks.
.getChildEntries()
Returns the map of token->boolean settings.
Object
.<!goog.tweak.BooleanSetting
>}
.getId()
Inherited from goog.tweak.BaseEntry
.
string
}
.getNewValueEncoded()
Returns the value to be used in the query parameter for this tweak.
string
}
.getParamName()
Inherited from goog.tweak.BaseSetting
.
Returns the name of the query parameter used for this setting.
string
}
.initialize(value)
[protected]Sets the value of the entry based on the value of the query parameter. Once this is called, configuration settings (associated query parameter, token, etc) may not be changed.
value
{?string
}
.isInitializing()
[protected]Inherited from goog.tweak.BaseSetting
.
Returns whether the setting is currently being initialized.
boolean
}
.isRestartRequired()
Inherited from goog.tweak.BaseEntry
.
Returns whether a restart is required for changes to the setting to take effect.
boolean
}
.logger
[protected] {!goog.debug.Logger
}The logger for this class.
.removeCallback(callback)
Inherited from goog.tweak.BaseEntry
.
Removes a callback that was added by addCallback.
callback
{!Function
}
.setInitialQueryParamValue(value)
Inherited from goog.tweak.BaseSetting
.
Sets the initial query parameter value for this setting. May not be called after the setting has been initialized.
value
{string
}
.setParamName(value)
Inherited from goog.tweak.BaseSetting
.
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
}
.setRestartRequired(value)
Inherited from goog.tweak.BaseEntry
.
Sets whether a restart is required for changes to the setting to take effect.
value
{boolean
}