goog.tweak.Registry
Provided By |
---|
Singleton that manages all tweaks. This should be instantiated only from goog.tweak.getRegistry().
new Registry( queryParams )
Parameters |
|
---|
Instance Methods
this.addOnRegisterListener( func ) → void
void
Adds a callback to be called whenever a new tweak is added.
Parameters |
|
---|
this.extractEntries( excludeChildEntries, excludeNonSettings ) → Array<goog.tweak.BaseSetting>
Array<goog.tweak.BaseSetting>
Creates and returns an array of all BaseSetting objects with an associted query parameter.
Parameters |
| ||||||||
---|---|---|---|---|---|---|---|---|---|
Returns |
|
this.getBooleanSetting( id ) → goog.tweak.BooleanSetting
goog.tweak.BooleanSetting
Returns the boolean setting with the given ID. Asserts if the ID does not refer to a registered entry or if it refers to one of the wrong type.
Parameters |
| ||||
---|---|---|---|---|---|
Returns |
|
this.getEntry( id ) → goog.tweak.BaseEntry
goog.tweak.BaseEntry
Returns the BaseEntry with the given ID. Asserts if it does not exists.
Parameters |
| ||||
---|---|---|---|---|---|
Returns |
|
this.getNumericSetting( id ) → goog.tweak.NumericSetting
goog.tweak.NumericSetting
Returns the numeric setting with the given ID. Asserts if the ID does not refer to a registered entry or if it refers to one of the wrong type.
Parameters |
| ||||
---|---|---|---|---|---|
Returns |
|
this.getStringSetting( id ) → goog.tweak.StringSetting
goog.tweak.StringSetting
Returns the string setting with the given ID. Asserts if the ID does not refer to a registered entry or if it refers to one of the wrong type.
Parameters |
| ||||
---|---|---|---|---|---|
Returns |
|
this.hasEntry( id ) → boolean
boolean
this.makeUrlQuery( opt_existingSearchStr ) → string
string
this.register( entry ) → void
void
Registers the given tweak setting/action.
Parameters |
|
---|