ui.emoji.EmojiPicker Extends goog.ui.Component
Creates a new, empty emoji picker. An emoji picker is a grid of emoji, each cell of the grid containing a single emoji. The picker may contain multiple pages of emoji. When a user selects an emoji, by either clicking or pressing enter, the picker fires a goog.ui.Component.EventType.ACTION event with the id. The client listens on this event and in the handler can retrieve the id of the selected emoji and do something with it, for instance, inserting an image tag into a rich text control. An emoji picker does not maintain state. That is, once an emoji is selected, the emoji picker does not remember which emoji was selected. The emoji picker is implemented as a tabpane with each tabpage being a table. Each of the tables are the same size to prevent jittering when switching between pages.

Inheritance

Constructor

goog.ui.emoji.EmojiPicker(defaultImgUrlopt_domHelper)

Parameters

defaultImgUrl : string
Url of the img that should be used to fill up the cells in the emoji table, to prevent jittering. Should be the same size as the emoji.
opt_domHelper : goog.dom.DomHelper=
Optional DOM helper.

Instance Methods

Public Protected Private
addEmojiGroup(titleemojiGroup)
Adds a group of emoji to the picker.
Arguments:
title : string | Element
Title for the group.
emojiGroup : Array.<Array.<string>>
A new group of emoji to be added Each internal array contains [emojiUrl, emojiId].
code »
adjustNumRowsIfNecessary_()
Adjusts the number of rows to be the maximum row count out of all the emoji groups, in order to prevent jitter in switching among the tabs.
code »
canDecorate(element) boolean
EmojiPickers cannot be used to decorate pre-existing html, since the structure they build is fairly complicated.
Arguments:
element : Element
Element to decorate.
Returns: boolean  Returns always false.
code »
createDom()
No description.
code »
createEmojiPage_(emojiindex) goog.ui.emoji.EmojiPalette
Creates a page if it has not already been loaded. This has the side effects of setting the load status of the page to true.
Arguments:
emoji : Array.<Array.<string>>
Emoji for this page. See addEmojiGroup for more details.
index : number
Index of the page in the emojipicker.
Returns: goog.ui.emoji.EmojiPalette  the emoji page.
code »
createPlaceholderEmojiPage_(emoji) !goog.ui.emoji.EmojiPalette
Creates an emoji page using placeholder emoji pointing to the default img instead of the real emoji. Used for delayed loading.
Arguments:
emoji : Array.<Array.<string>>
Emoji for this page. See addEmojiGroup for more details.
Returns: !goog.ui.emoji.EmojiPalette  the emoji page.
code »
disposeInternal()
No description.
code »
enterDocument()
No description.
code »
exitDocument()
No description.
code »
getActivePage_() goog.ui.emoji.EmojiPalette
No description.
Returns: goog.ui.emoji.EmojiPalette  The active page of the emoji picker.
code »
getCssClass() string
No description.
Returns: string  CSS class for the root element of EmojiPicker.
code »
getNumColumns() number
Gets the number of columns per grid in the emoji picker.
Returns: number  number of columns per grid.
code »
getNumEmojiGroups() number
Returns the number of emoji groups in this picker.
Returns: number  The number of emoji groups in this picker.
code »
getNumRows() number
Gets the number of rows per grid in the emoji picker.
Returns: number  number of rows per grid.
code »
getPage(index) ?goog.ui.emoji.EmojiPalette
Returns a page from the picker. This should be considered protected, and is ONLY FOR TESTING.
Arguments:
index : number
Index of the page to return.
Returns: ?goog.ui.emoji.EmojiPalette  the page at the specified index or null if none exists.
code »
getPages() ?Array.<goog.ui.emoji.EmojiPalette>
Returns all the pages from the picker. This should be considered protected, and is ONLY FOR TESTING.
Returns: ?Array.<goog.ui.emoji.EmojiPalette>  the pages in the picker or null if none exist.
code »
getPlaceholderEmoji_(emoji) !Array.<!Array.<string>>
Returns an array of emoji whose real URLs have been replaced with the default img URL. Used for delayed loading.
Arguments:
emoji : Array.<Array.<string>>
Original emoji array.
Returns: !Array.<!Array.<string>>  emoji array with all emoji pointing to the default img.
code »
getSelectedEmoji() goog.ui.emoji.Emoji
Returns the currently selected emoji from this picker. If the picker is using the URL prefix optimization, allocates a new emoji object with the full URL. This method is meant to be used by clients of the emojipicker, e.g., in a listener on goog.ui.component.EventType.ACTION that wants to use the just-selected emoji.
Returns: goog.ui.emoji.Emoji  The currently selected emoji from this picker.
code »
getTabPane() goog.ui.TabPane
Returns the tabpane if this is a multipage picker. This should be considered protected, and is ONLY FOR TESTING.
Returns: goog.ui.TabPane  the tabpane if it is a multipage picker, or null if it does not exist or is a single page picker.
code »
isFocusable() boolean
Returns true if the component is focusable, false otherwise. The default is true. Focusable components always have a tab index and allocate a key handler to handle keyboard events while focused.
Returns: boolean  Whether the component is focusable.
code »
loadImages()
Causes the emoji imgs to be loaded into the picker. Used for delayed loading. No-op if delayed loading is not set.
code »
loadPage_(index)
Loads a page into the picker if it has not yet been loaded.
Arguments:
index : number
Index of the page to load.
code »
manuallyLoadAnimatedEmoji()
Used by unittests to manually load the animated emoji for this picker.
code »
onEmojiPaletteAction_(e)
Handles actions from the EmojiPalettes that this picker contains.
Arguments:
e : goog.ui.Component.EventType
The event object.
code »
onPageChanged_(e)
Handles changes in the active page in the tabpane.
Arguments:
e : goog.ui.TabPaneEvent
The event object.
code »
setAutoSizeByColumnCount(autoSize)
Sets whether to automatically size the emojipicker based on the number of columns and the number of emoji in each group, so as to reduce jitter.
Arguments:
autoSize : boolean
Whether to automatically size the picker.
code »
setDelayedLoad(shouldDelay)
Sets whether loading of images should be delayed until after dom creation. Thus, this function must be called before #createDom. If set to true, the client must call #loadImages when they wish the images to be loaded.
Arguments:
shouldDelay : boolean
Whether to delay loading the images.
code »
setFocusable(focusable)
Sets whether the component is focusable. The default is true. Focusable components always have a tab index and allocate a key handler to handle keyboard events while focused.
Arguments:
focusable : boolean
Whether the component is focusable.
code »
setManualLoadOfAnimatedEmoji(manual)
Sets whether to require the caller to manually specify when to start loading animated emoji. This is primarily for unittests to be able to test the structure of the emojipicker palettes before and after the animated emoji have been loaded. This only affects sprited emojipickers with sprite data for animated emoji.
Arguments:
manual : boolean
Whether to load animated emoji manually.
code »
setNumColumns(numCols)
Sets the number of columns per grid in the emoji picker. This should only be called before the picker has been rendered.
Arguments:
numCols : number
Number of columns per grid.
code »
setNumRows(numRows)
Sets the number of rows per grid in the emoji picker. This should only be called before the picker has been rendered.
Arguments:
numRows : number
Number of rows per grid.
code »
setProgressiveRender(progressive)
Sets the progressive rendering aspect of this emojipicker. Must be called before createDom to have an effect.
Arguments:
progressive : boolean
Whether this picker should render progressively.
code »
setTabLocation(tabLocation)
Sets the location of the tabs in relation to the emoji grids. This should only be called before the picker has been rendered.
Arguments:
tabLocation : goog.ui.TabPane.TabLocation
The location of the tabs.
code »
setUrlPrefix(urlPrefix)
Sets the URL prefix for the emoji URLs.
Arguments:
urlPrefix : string
Prefix that should be prepended to all URLs.
code »
addChild(childopt_render)
Adds the specified component as the last child of this component. See goog.ui.Component#addChildAt for detailed semantics.
Arguments:
child : goog.ui.Component
The new child component.
opt_render : boolean=
If true, the child component will be rendered into the parent.
code »
addChildAt(childindexopt_render) void
Adds the specified component as a child of this component at the given 0-based index. Both addChild and addChildAt assume the following contract between parent and child components:
  • the child component's element must be a descendant of the parent component's element, and
  • the DOM state of the child component must be consistent with the DOM state of the parent component (see isInDocument) in the steady state -- the exception is to addChildAt(child, i, false) and then immediately decorate/render the child.
In particular, parent.addChild(child) will throw an error if the child component is already in the document, but the parent isn't. Clients of this API may call addChild and addChildAt with opt_render set to true. If opt_render is true, calling these methods will automatically render the child component's element into the parent component's element. If the parent does not yet have an element, then createDom will automatically be invoked on the parent before rendering the child. Invoking parent.addChild(child, true) will throw an error if the child component is already in the document, regardless of the parent's DOM state. If opt_render is true and the parent component is not already in the document, enterDocument will not be called on this component at this point. Finally, this method also throws an error if the new child already has a different parent, or the given index is out of bounds.
Arguments:
child : goog.ui.Component
The new child component.
index : number
0-based index at which the new child component is to be added; must be between 0 and the current child count (inclusive).
opt_render : boolean=
If true, the child component will be rendered into the parent.
Returns: void  Nada.
code »
canDecorate(element) boolean
Determines if a given element can be decorated by this type of component. This method should be overridden by inheriting objects.
Arguments:
element : Element
Element to decorate.
Returns: boolean  True if the element can be decorated, false otherwise.
code »
createDom()
Creates the initial DOM representation for the component. The default implementation is to set this.element_ = div.
code »
decorate(element)
Decorates the element for the UI component. If the element is in the document, the enterDocument method will be called. If goog.ui.Component.ALLOW_DETACHED_DECORATION is false, the caller must pass an element that is in the document.
Arguments:
element : Element
Element to decorate.
code »
decorateInternal(element)
Actually decorates the element. Should be overridden by inheriting objects. This method can assume there are checks to ensure the component has not already been rendered have occurred and that enter document will be called afterwards. This method is considered protected.
Arguments:
element : Element
Element to decorate.
code »
disposeInternal()
Disposes of the component. Calls exitDocument, which is expected to remove event handlers and clean up the component. Propagates the call to the component's children, if any. Removes the component's DOM from the document unless it was decorated.
code »
enterDocument()
Called when the component's element is known to be in the document. Anything using document.getElementById etc. should be done at this stage. If the component contains child components, this call is propagated to its children.
code »
exitDocument()
Called by dispose to clean up the elements and listeners created by a component, or by a parent component/application who has removed the component from the document but wants to reuse it later. If the component contains child components, this call is propagated to its children. It should be possible for the component to be rendered again once this method has been called.
code »
forEachChild(fopt_obj)
Calls the given function on each of this component's children in order. If opt_obj is provided, it will be used as the 'this' object in the function when called. The function should take two arguments: the child component and its 0-based index. The return value is ignored.
Arguments:
f : function(this:T,?,number):?
The function to call for every child component; should take 2 arguments (the child and its index).
opt_obj : T=
Used as the 'this' object in f when called.
code »
getChild(id) ?goog.ui.Component
Returns the child with the given ID, or null if no such child exists.
Arguments:
id : string
Child component ID.
Returns: ?goog.ui.Component  The child with the given ID; null if none.
code »
getChildAt(index) ?goog.ui.Component
Returns the child at the given index, or null if the index is out of bounds.
Arguments:
index : number
0-based index.
Returns: ?goog.ui.Component  The child at the given index; null if none.
code »
getChildCount() number
Returns the number of children of this component.
Returns: number  The number of children.
code »
getChildIds() !Array.<string>
Returns an array containing the IDs of the children of this component, or an empty array if the component has no children.
Returns: !Array.<string>  Child component IDs.
code »
getContentElement() Element
Returns the DOM element into which child components are to be rendered, or null if the component itself hasn't been rendered yet. This default implementation returns the component's root element. Subclasses with complex DOM structures must override this method.
Returns: Element  Element to contain child elements (null if none).
code »
getDomHelper() !goog.dom.DomHelper
Returns the dom helper that is being used on this component.
Returns: !goog.dom.DomHelper  The dom helper used on this component.
code »
getElement() Element
Gets the component's element.
Returns: Element  The element for the component.
code »
getElementByClass(className) Element
Returns the first element in this component's DOM with the provided className.
Arguments:
className : string
The name of the class to look for.
Returns: Element  The first item with the class name provided.
code »
getElementByFragment(idFragment) Element
Helper function for returning an element in the document with a unique id generated using makeId().
Arguments:
idFragment : string
The partial id.
Returns: Element  The element with the unique id, or null if it cannot be found.
code »
getElementStrict() !Element
Gets the component's element. This differs from getElement in that it assumes that the element exists (i.e. the component has been rendered/decorated) and will cause an assertion error otherwise (if assertion is enabled).
Returns: !Element  The element for the component.
code »
getElementsByClass(className) !goog.array.ArrayLike
Returns an array of all the elements in this component's DOM with the provided className.
Arguments:
className : string
The name of the class to look for.
Returns: !goog.array.ArrayLike  The items found with the class name provided.
code »
getFragmentFromId(id) string
Helper function for returning the fragment portion of an id generated using makeId().
Arguments:
id : string
Id generated with makeId().
Returns: string  Fragment.
code »
getHandler() !goog.events.EventHandler.<T>
Returns the event handler for this component, lazily created the first time this method is called.
Returns: !goog.events.EventHandler.<T>  Event handler for this component.
code »
getId() string
Gets the unique ID for the instance of this component. If the instance doesn't already have an ID, generates one on the fly.
Returns: string  Unique component ID.
code »
getModel() *
Returns the model associated with the UI component.
Returns: *  The model.
code »
getParent() ?goog.ui.Component
Returns the component's parent, if any.
Returns: ?goog.ui.Component  The parent component.
code »
getRequiredElementByClass(className) !Element
Similar to getElementByClass except that it expects the element to be present in the dom thus returning a required value. Otherwise, will assert.
Arguments:
className : string
The name of the class to look for.
Returns: !Element  The first item with the class name provided.
code »
hasChildren() boolean
Returns true if the component has children.
Returns: boolean  True if the component has children.
code »
indexOfChild(child) number
Returns the 0-based index of the given child component, or -1 if no such child is found.
Arguments:
child : ?goog.ui.Component
The child component.
Returns: number  0-based index of the child component; -1 if not found.
code »
isInDocument() boolean
Determines whether the component has been added to the document.
Returns: boolean  TRUE if rendered. Otherwise, FALSE.
code »
isRightToLeft() boolean
Returns true if the component is rendered right-to-left, false otherwise. The first time this function is invoked, the right-to-left rendering property is set if it has not been already.
Returns: boolean  Whether the control is rendered right-to-left.
code »
makeId(idFragment) string
Helper function for subclasses that gets a unique id for a given fragment, this can be used by components to generate unique string ids for DOM elements.
Arguments:
idFragment : string
A partial id.
Returns: string  Unique element id.
code »
makeIds(object) !Object
Makes a collection of ids. This is a convenience method for makeId. The object's values are the id fragments and the new values are the generated ids. The key will remain the same.
Arguments:
object : Object
The object that will be used to create the ids.
Returns: !Object  An object of id keys to generated ids.
code »
removeChild(childopt_unrender) goog.ui.Component
Removes the given child from this component, and returns it. Throws an error if the argument is invalid or if the specified child isn't found in the parent component. The argument can either be a string (interpreted as the ID of the child component to remove) or the child component itself. If opt_unrender is true, calls goog.ui.component#exitDocument on the removed child, and subsequently detaches the child's DOM from the document. Otherwise it is the caller's responsibility to clean up the child component's DOM.
Arguments:
child : string | goog.ui.Component | null
The ID of the child to remove, or the child component itself.
opt_unrender : boolean=
If true, calls exitDocument on the removed child component, and detaches its DOM from the document.
Returns: goog.ui.Component  The removed component, if any.
code »
removeChildAt(indexopt_unrender) goog.ui.Component
Removes the child at the given index from this component, and returns it. Throws an error if the argument is out of bounds, or if the specified child isn't found in the parent. See goog.ui.Component#removeChild for detailed semantics.
Arguments:
index : number
0-based index of the child to remove.
opt_unrender : boolean=
If true, calls exitDocument on the removed child component, and detaches its DOM from the document.
Returns: goog.ui.Component  The removed component, if any.
code »
removeChildren(opt_unrender) !Array.<goog.ui.Component>
Removes every child component attached to this one and returns them.
Arguments:
opt_unrender : boolean=
If true, calls #exitDocument on the removed child components, and detaches their DOM from the document.
Returns: !Array.<goog.ui.Component>  The removed components if any.
code »
render(opt_parentElement)
Renders the component. If a parent element is supplied, the component's element will be appended to it. If there is no optional parent element and the element doesn't have a parentNode then it will be appended to the document body. If this component has a parent component, and the parent component is not in the document already, then this will not call enterDocument on this component. Throws an Error if the component is already rendered.
Arguments:
opt_parentElement : Element=
Optional parent element to render the component into.
code »
renderBefore(sibling)
Renders the component before another element. The other element should be in the document already. Throws an Error if the component is already rendered.
Arguments:
sibling : Node
Node to render the component before.
code »
render_(opt_parentElementopt_beforeNode)
Renders the component. If a parent element is supplied, the component's element will be appended to it. If there is no optional parent element and the element doesn't have a parentNode then it will be appended to the document body. If this component has a parent component, and the parent component is not in the document already, then this will not call enterDocument on this component. Throws an Error if the component is already rendered.
Arguments:
opt_parentElement : Element=
Optional parent element to render the component into.
opt_beforeNode : Node=
Node before which the component is to be rendered. If left out the node is appended to the parent element.
code »
setElementInternal(element)
Sets the component's root element to the given element. Considered protected and final. This should generally only be called during createDom. Setting the element does not actually change which element is rendered, only the element that is associated with this UI component. This should only be used by subclasses and its associated renderers.
Arguments:
element : Element
Root element for the component.
code »
setId(id)
Assigns an ID to this component instance. It is the caller's responsibility to guarantee that the ID is unique. If the component is a child of a parent component, then the parent component's child index is updated to reflect the new ID; this may throw an error if the parent already has a child with an ID that conflicts with the new ID.
Arguments:
id : string
Unique component ID.
code »
setModel(obj)
Sets the model associated with the UI component.
Arguments:
obj : *
The model.
code »
setParent(parent)
Sets the parent of this component to use for event bubbling. Throws an error if the component already has a parent or if an attempt is made to add a component to itself as a child. Callers must use removeChild or removeChildAt to remove components from their containers before calling this method.
Arguments:
parent : goog.ui.Component
The parent component.
code »
setParentEventTarget()
Overrides goog.events.EventTarget#setParentEventTarget to throw an error if the parent component is set, and the argument is not the parent.
code »
setRightToLeft(rightToLeft)
Set is right-to-left. This function should be used if the component needs to know the rendering direction during dom creation (i.e. before #enterDocument is called and is right-to-left is set).
Arguments:
rightToLeft : boolean
Whether the component is rendered right-to-left.
code »
wasDecorated() boolean
No description.
Returns: boolean  Whether the component was decorated.
code »
addEventListener(typeopt_captureopt_handlerScope)
Use #listen instead, when possible. Otherwise, use goog.events.listen if you are passing Object (instead of Function) as handler. Adds an event listener to the event target. The same handler can only be added once per the type. Even if you add the same handler multiple times using the same type then it will only be called once when the event is dispatched.
Arguments:
type : string
The type of the event to listen for.
: ?function():? | ?{handleEvent:function():?
No description.
opt_capture : boolean=
In DOM-compliant browsers, this determines whether the listener is fired during the capture or bubble phase of the event.
opt_handlerScope : Object=
Object in whose scope to call the listener.
code »
assertInitialized_()
Asserts that the event target instance is initialized properly.
code »
dispatchEvent()
No description.
code »
disposeInternal()
Removes listeners from this object. Classes that extend EventTarget may need to override this method in order to remove references to DOM Elements and additional listeners.
code »
fireListeners()
No description.
code »
getListener()
No description.
code »
getListeners()
No description.
code »
getParentEventTarget() goog.events.EventTarget
Returns the parent of this event target to use for bubbling.
Returns: goog.events.EventTarget  The parent EventTarget or null if there is no parent.
code »
hasListener()
No description.
code »
listen()
No description.
code »
listenOnce()
No description.
code »
removeAllListeners()
No description.
code »
removeEventListener(typeopt_captureopt_handlerScope)
Use #unlisten instead, when possible. Otherwise, use goog.events.unlisten if you are passing Object (instead of Function) as handler. Removes an event listener from the event target. The handler must be the same object as the one added. If the handler has not been added then nothing is done.
Arguments:
type : string
The type of the event to listen for.
: ?function():? | ?{handleEvent:function():?
No description.
opt_capture : boolean=
In DOM-compliant browsers, this determines whether the listener is fired during the capture or bubble phase of the event.
opt_handlerScope : Object=
Object in whose scope to call the listener.
code »
setParentEventTarget(parent)
Sets the parent of this event target to use for capture/bubble mechanism.
Arguments:
parent : goog.events.EventTarget
Parent listenable (null if none).
code »
setTargetForTesting(target)
Sets the target to be used for event.target when firing event. Mainly used for testing. For example, see goog.testing.events.mixinListenable.
Arguments:
target : !Object
The target.
code »
unlisten()
No description.
code »
unlistenByKey()
No description.
code »
addOnDisposeCallback(callbackopt_scope)
Invokes a callback function when this object is disposed. Callbacks are invoked in the order in which they were added.
Arguments:
callback : function(this:T):?
The callback function.
opt_scope : T=
An optional scope to call the callback in.
code »
dispose() void
Disposes of the object. If the object hasn't already been disposed of, calls #disposeInternal. Classes that extend goog.Disposable should override #disposeInternal in order to delete references to COM objects, DOM nodes, and other disposable objects. Reentrant.
Returns: void  Nothing.
code »
disposeInternal()
Deletes or nulls out any references to COM objects, DOM nodes, or other disposable objects. Classes that extend goog.Disposable should override this method. Not reentrant. To avoid calling it twice, it must only be called from the subclass' disposeInternal method. Everywhere else the public dispose method must be used. For example:
  mypackage.MyClass = function() {
    mypackage.MyClass.base(this, 'constructor');
    // Constructor logic specific to MyClass.
    ...
  };
  goog.inherits(mypackage.MyClass, goog.Disposable);

  mypackage.MyClass.prototype.disposeInternal = function() {
    // Dispose logic specific to MyClass.
    ...
    // Call superclass's disposeInternal at the end of the subclass's, like
    // in C++, to avoid hard-to-catch issues.
    mypackage.MyClass.base(this, 'disposeInternal');
  };
code »
getDisposed() boolean
Use #isDisposed instead. No description.
Returns: boolean  Whether the object has been disposed of.
code »
isDisposed() boolean
No description.
Returns: boolean  Whether the object has been disposed of.
code »
registerDisposable(disposable)
Associates a disposable object with this object so that they will be disposed together.
Arguments:
disposable : goog.disposable.IDisposable
that will be disposed when this object is disposed.
code »

Instance Properties

activePage_ :
Index of the active page in the picker.
Code »
autoSizeByColumnCount_ :
Whether the number of rows in the picker should be automatically determined by the specified number of columns so as to minimize/eliminate jitter when switching between tabs.
Code »
constructor :
No description.
Code »
defaultImgUrl_ :
Url of the img that should be used for cells in the emoji picker that are not filled with emoji, i.e., after all the emoji have already been placed on a page.
Code »
delayedLoad_ :
If true, delay loading the images for the emojipalettes until after construction. This gives a better user experience before the images are in the cache, since other widgets waiting for construction of the emojipalettes won't have to wait for all the images (which may be a substantial amount) to load.
Code »
emoji_ :
Emoji that this picker displays.
Code »
focusable_ :
Whether the component is focusable.
Code »
logger_ : goog.debug.Logger
Logger for the emoji picker.
Code »
manualLoadOfAnimatedEmoji_ :
Whether to require the caller to manually specify when to start loading animated emoji. This is primarily for unittests to be able to test the structure of the emojipicker palettes before and after the animated emoji have been loaded.
Code »
numCols_ :
Number of columns per grid of emoji.
Code »
numRows_ :
Number of rows per grid of emoji.
Code »
pageLoadStatus_ :
Keeps track of which pages in the picker have been loaded. Used for delayed loading of tabs.
Code »
pages_ :
Pages of this emoji picker.
Code »
progressiveRender_ :
Whether to use progressive rendering in the emojipicker's palette, if using sprited imgs. If true, then uses img tags, which most browsers render progressively (i.e., as the data comes in). If false, then uses div tags with the background-image, which some newer browsers render progressively but older ones do not.
Code »
tabLocation_ :
Location of the tabs for the picker tabpane.
Code »
tabPane_ : goog.ui.TabPane
Tabpane to hold the pages of this emojipicker.
Code »
urlPrefix_ :
If present, indicates a prefix that should be prepended to all URLs of images in this emojipicker. This provides an optimization if the URLs are long, so that the client does not have to send a long string for each emoji.
Code »
childIndex_ :
Map of child component IDs to child components. Used for constant-time random access to child components by ID. Lazily initialized on first use. Must be kept in sync with children_. This property is strictly private and must not be accessed directly outside of this class! We use a plain Object, not a goog.structs.Map, for simplicity. This means components can't have children with IDs such as 'constructor' or 'valueOf', but this shouldn't really be an issue in practice, and if it is, we can always fix it later without changing the API.
Code »
children_ :
Array of child components. Lazily initialized on first use. Must be kept in sync with childIndex_. This property is strictly private and must not be accessed directly outside of this class!
Code »
constructor :
No description.
Code »
DomHelper used to interact with the document, allowing components to be created in a different window.
Code »
element_ :
The DOM element for the component.
Code »
googUiComponentHandler_ : goog.events.EventHandler
Event handler. TODO(user): rename it to handler_ after all component subclasses in inside Google have been cleaned up. Code search: http://go/component_code_search
Code »
idGenerator_ : goog.ui.IdGenerator
Generator for unique IDs.
Code »
id_ :
Unique ID of the component, lazily initialized in goog.ui.Component#getId if needed. This property is strictly private and must not be accessed directly outside of this class!
Code »
inDocument_ :
Whether the component is in the document.
Code »
model_ :
Arbitrary data object associated with the component. Such as meta-data.
Code »
parent_ : goog.ui.Component
Parent component to which events will be propagated. This property is strictly private and must not be accessed directly outside of this class!
Code »
rightToLeft_ :
Whether the component is rendered right-to-left. Right-to-left is set lazily when #isRightToLeft is called the first time, unless it has been set by calling #setRightToLeft explicitly.
Code »
wasDecorated_ :
Flag used to keep track of whether a component decorated an already existing element or whether it created the DOM itself. If an element is decorated, dispose will leave the node in the document. It is up to the app to remove the node. If an element was rendered, dispose will remove the node automatically.
Code »
actualEventTarget_ : goog.events.EventTarget
The object to use for event.target. Useful when mixing in an EventTarget to another object.
Code »
constructor :
No description.
Code »
eventTargetListeners_ : goog.events.ListenerMap
Maps of event type to an array of listeners.
Code »
parentEventTarget_ : goog.events.EventTarget
Parent event target, used during event bubbling. TODO(user): Change this to goog.events.Listenable. This currently breaks people who expect getParentEventTarget to return goog.events.EventTarget.
Code »
creationStack :
If monitoring the goog.Disposable instances is enabled, stores the creation stack trace of the Disposable instance.
Code »
disposed_ :
Whether the object has been disposed of.
Code »
onDisposeCallbacks_ :
Callbacks to invoke when this object is disposed.
Code »

Static Properties

goog.ui.emoji.EmojiPicker.DEFAULT_NUM_COLS :
Default number of columns per grid of emoji.
Code »
goog.ui.emoji.EmojiPicker.DEFAULT_NUM_ROWS :
Default number of rows per grid of emoji.
Code »
goog.ui.emoji.EmojiPicker.DEFAULT_TAB_LOCATION :
Default location of the tabs in relation to the emoji grids.
Code »
goog.ui.emoji.EmojiPicker.superClass_ :
No description.
Code »

Package ui.emoji

Package Reference