goog.ui.tree.BaseNode
Provided By | |
---|---|
Extends | |
All Implemented Interfaces | |
All Known Direct Subclasses |
An abstract base class for a node in the tree.
new BaseNode( content, opt_config, opt_domHelper )
Parameters |
|
---|
Instance Methods
this.add( child, opt_before ) → goog.ui.tree.BaseNode
goog.ui.tree.BaseNode
Adds a node as a child to the current node.
Parameters |
| ||||||||
---|---|---|---|---|---|---|---|---|---|
Returns |
|
this.addChild( child, opt_render ) → void
void
Adds the specified component as the last child of this component. See
goog.ui.Component#addChildAt
for detailed semantics.
Defined by | |||||||||
---|---|---|---|---|---|---|---|---|---|
Parameters |
| ||||||||
See Also |
this.addChildAt( child, index, opt_render ) → ?
?
The method assumes that the child doesn't have parent node yet.
The opt_render
argument is not used. If the parent node is expanded,
the child node's state will be the same as the parent's. Otherwise the
child's DOM tree won't be created.
Overrides | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Parameters |
| ||||||||||||
Returns |
|
this.addEventListener( type, handler, opt_capture, opt_handlerScope ) → void
void
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.
warning Deprecated | Use |
---|
Defined by | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Parameters |
|
this.addOnDisposeCallback<T>( callback, opt_scope ) → void
void
Invokes a callback function when this object is disposed. Callbacks are invoked in the order in which they were added. If a callback is added to an already disposed Disposable, it will be called immediately.
Defined by | |||||||||
---|---|---|---|---|---|---|---|---|---|
Parameters |
|
this.canDecorate( element ) → boolean
boolean
Determines if a given element can be decorated by this type of component. This method should be overridden by inheriting objects.
Defined by | |||||
---|---|---|---|---|---|
Parameters |
| ||||
Returns |
|
this.collapse() → void
void
Collapses the node.
this.collapseAll() → void
void
Collapses the children and the node.
this.collapseChildren() → void
void
Collapses the children of the node.
this.contains( node ) → boolean
boolean
Returns true if the node is a descendant of this node
Parameters |
| ||||
---|---|---|---|---|---|
Returns |
|
this.createDom() → void
void
Creates the initial DOM representation for the component. The default implementation is to set this.element_ = div.
Overrides | |
---|---|
Parameters | None. |
this.decorate( element ) → void
void
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.
Defined by | |||||
---|---|---|---|---|---|
Parameters |
|
this.decorateInternal( element ) → void
void
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.
Defined by | |||||
---|---|---|---|---|---|
Parameters |
|
this.deselect() → void
void
Originally it was intended to deselect the node but never worked.
warning Deprecated | Use |
---|
Parameters | None. |
---|
this.dispatchEvent( e ) → boolean
boolean
Dispatches an event (or event like object) and calls all listeners listening for events of this type. The type of the event is decided by the type property on the event object.
If any of the listeners returns false OR calls preventDefault then this function will return false. If one of the capture listeners calls stopPropagation, then the bubble listeners won't fire.
Overrides | |||||
---|---|---|---|---|---|
Specified by | |||||
Parameters |
| ||||
Returns |
|
this.dispose() → ?
?
Disposes of the object and its resources.
Overrides | ||
---|---|---|
Specified by | ||
Parameters | None. | |
Returns |
|
this.disposeInternal() → void
void
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.
Overrides | |
---|---|
Parameters | None. |
this.enterDocument() → void
void
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.
Overrides | |
---|---|
Parameters | None. |
this.exitDocument() → void
void
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.
Overrides | |
---|---|
Parameters | None. |
this.expand() → void
void
Expands the node.
this.expandAll() → void
void
Expands the children and the node.
this.expandChildren() → void
void
Expands the children of the node.
this.fireListeners<EVENTOBJ>( type, capture, eventObject ) → boolean
boolean
Fires all registered listeners in this listenable for the given type and capture mode, passing them the given eventObject. This does not perform actual capture/bubble. Only implementors of the interface should be using this.
Overrides | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Specified by | |||||||||||||
Parameters |
| ||||||||||||
Returns |
|
this.forEachChild<T>( f, opt_obj ) → void
void
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.
Defined by | |||||||||
---|---|---|---|---|---|---|---|---|---|
Parameters |
|
this.getAfterLabelElement() → (Element|null)
(Element|null)
Parameters | None. | ||
---|---|---|---|
Returns |
|
this.getAfterLabelHtml() → string
string
Returns the html that appears after the label. This is useful if you want to put extra UI on the row of the label but not inside the anchor tag.
Parameters | None. | ||
---|---|---|---|
Returns |
|
this.getAfterLabelSafeHtml() → goog.html.SafeHtml
goog.html.SafeHtml
Returns the html that appears after the label. This is useful if you want to put extra UI on the row of the label but not inside the anchor tag.
Parameters | None. | ||
---|---|---|---|
Returns |
|
this.getBackgroundPosition() → string
string
Parameters | None. | ||
---|---|---|---|
Returns |
|
this.getCalculatedIconClass() → void
void
Gets the calculated icon class.
this.getChild( id ) → (goog.ui.Component|null)
(goog.ui.Component|null)
Returns the child with the given ID, or null if no such child exists.
Defined by | |||||
---|---|---|---|---|---|
Parameters |
| ||||
Returns |
|
this.getChildAt( index ) → (goog.ui.tree.BaseNode|null)
(goog.ui.tree.BaseNode|null)
Returns the child at the given index, or null if the index is out of bounds.
Overrides | |||||
---|---|---|---|---|---|
Parameters |
| ||||
Returns |
|
this.getChildCount() → number
number
Returns the number of children of this component.
Defined by | |||
---|---|---|---|
Parameters | None. | ||
Returns |
|
this.getChildren() → Array<goog.ui.tree.BaseNode>
Array<goog.ui.tree.BaseNode>
Returns the children of this node.
Parameters | None. | ||
---|---|---|---|
Returns |
|
this.getChildrenElement() → (Element|null)
(Element|null)
Parameters | None. | ||
---|---|---|---|
Returns |
|
this.getClientData() → *
*
this.getConfig() → (Object|null)
(Object|null)
Parameters | None. | ||
---|---|---|---|
Returns |
|
this.getContentElement() → (Element|null)
(Element|null)
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.
Defined by | |||
---|---|---|---|
Parameters | None. | ||
Returns |
|
this.getDepth() → number
number
Returns the depth of the node in the tree. Should not be overridden.
Parameters | None. | ||
---|---|---|---|
Returns |
|
this.getDisposed() → boolean
boolean
warning Deprecated | Use |
---|
Defined by | |||
---|---|---|---|
Parameters | None. | ||
Returns |
|
this.getDomHelper() → goog.dom.DomHelper
goog.dom.DomHelper
Returns the dom helper that is being used on this component.
Defined by | |||
---|---|---|---|
Parameters | None. | ||
Returns |
|
this.getElement() → (Element|null)
(Element|null)
Gets the component's element.
Overrides | |||
---|---|---|---|
Parameters | None. | ||
Returns |
|
this.getElementByClass( className ) → (Element|null)
(Element|null)
Returns the first element in this component's DOM with the provided className.
Defined by | |||||
---|---|---|---|---|---|
Parameters |
| ||||
Returns |
|
this.getElementByFragment( idFragment ) → (Element|null)
(Element|null)
Helper function for returning an element in the document with a unique id generated using makeId().
Defined by | |||||
---|---|---|---|---|---|
Parameters |
| ||||
Returns |
|
this.getElementStrict() → Element
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).
Defined by | |||
---|---|---|---|
Parameters | None. | ||
Returns |
|
this.getElementsByClass( className ) → IArrayLike<Element>
IArrayLike<Element>
Returns an array of all the elements in this component's DOM with the provided className.
Defined by | |||||
---|---|---|---|---|---|
Parameters |
| ||||
Returns |
|
this.getExpandIconClass() → string
string
Parameters | None. | ||
---|---|---|---|
Returns |
|
this.getExpandIconElement() → (Element|null)
(Element|null)
Parameters | None. | ||
---|---|---|---|
Returns |
|
this.getExpandIconSafeHtml() → goog.html.SafeHtml
goog.html.SafeHtml
Parameters | None. | ||
---|---|---|---|
Returns |
|
this.getExpanded() → boolean
boolean
Parameters | None. | ||
---|---|---|---|
Returns |
|
this.getExpandedIconClass() → string
string
Gets the icon class for when the node is expanded.
Parameters | None. | ||
---|---|---|---|
Returns |
|
this.getFirstChild() → (goog.ui.tree.BaseNode|null)
(goog.ui.tree.BaseNode|null)
Parameters | None. | ||
---|---|---|---|
Returns |
|
this.getFragmentFromId( id ) → string
string
this.getHandler<T>() → goog.events.EventHandler<(T|null)>
goog.events.EventHandler<(T|null)>
Returns the event handler for this component, lazily created the first time this method is called.
Defined by | |||
---|---|---|---|
Parameters | None. | ||
Returns |
|
this.getHtml() → string
string
Returns the html of the label.
Parameters | None. | ||
---|---|---|---|
Returns |
|
this.getIconClass() → string
string
this.getIconElement() → (Element|null)
(Element|null)
Parameters | None. | ||
---|---|---|---|
Returns |
|
this.getIconSafeHtml() → goog.html.SafeHtml
goog.html.SafeHtml
Parameters | None. | ||
---|---|---|---|
Returns |
|
this.getId() → string
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.
Defined by | |||
---|---|---|---|
Parameters | None. | ||
Returns |
|
this.getLabelElement() → (Element|null)
(Element|null)
Parameters | None. | ||
---|---|---|---|
Returns |
|
this.getLabelSafeHtml() → goog.html.SafeHtml
goog.html.SafeHtml
Parameters | None. | ||
---|---|---|---|
Returns |
|
this.getLastChild() → (goog.ui.tree.BaseNode|null)
(goog.ui.tree.BaseNode|null)
Parameters | None. | ||
---|---|---|---|
Returns |
|
this.getLastShownDescendant() → (goog.ui.tree.BaseNode|null)
(goog.ui.tree.BaseNode|null)
Parameters | None. | ||
---|---|---|---|
Returns |
|
this.getLineStyle() → goog.html.SafeStyle
goog.html.SafeStyle
Parameters | None. | ||
---|---|---|---|
Returns |
|
this.getListener<SCOPE, EVENTOBJ>( type, listener, capture, opt_listenerScope ) → (goog.events.ListenableKey|null)
(goog.events.ListenableKey|null)
Gets the goog.events.ListenableKey for the event or null if no such listener is in use.
Overrides | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Specified by | |||||||||||||||||
Parameters |
| ||||||||||||||||
Returns |
|
this.getListeners<EVENTOBJ>( type, capture ) → Array<goog.events.ListenableKey>
Array<goog.events.ListenableKey>
Gets all listeners in this listenable for the given type and capture mode.
Overrides | |||||||||
---|---|---|---|---|---|---|---|---|---|
Specified by | |||||||||
Parameters |
| ||||||||
Returns |
|
this.getModel() → *
*
Returns the model associated with the UI component.
Defined by | |||
---|---|---|---|
Parameters | None. | ||
Returns |
|
this.getNextShownNode() → (goog.ui.tree.BaseNode|null)
(goog.ui.tree.BaseNode|null)
Parameters | None. | ||
---|---|---|---|
Returns |
|
this.getNextSibling() → (goog.ui.tree.BaseNode|null)
(goog.ui.tree.BaseNode|null)
Parameters | None. | ||
---|---|---|---|
Returns |
|
this.getParent() → (goog.ui.Component|null)
(goog.ui.Component|null)
Returns the component's parent, if any.
Defined by | |||
---|---|---|---|
Parameters | None. | ||
Returns |
|
this.getParentEventTarget() → (goog.events.Listenable|null)
(goog.events.Listenable|null)
Returns the parent of this event target to use for capture/bubble mechanism.
NOTE(chrishenry): The name reflects the original implementation of
custom event target (goog.events.EventTarget
). We decided
that changing the name is not worth it.
Overrides | |||
---|---|---|---|
Specified by | |||
Parameters | None. | ||
Returns |
|
this.getPreviousShownNode() → (goog.ui.tree.BaseNode|null)
(goog.ui.tree.BaseNode|null)
Parameters | None. | ||
---|---|---|---|
Returns |
|
this.getPreviousSibling() → (goog.ui.tree.BaseNode|null)
(goog.ui.tree.BaseNode|null)
Parameters | None. | ||
---|---|---|---|
Returns |
|
this.getRequiredElementByClass( className ) → Element
Element
Similar to getElementByClass
except that it expects the
element to be present in the dom thus returning a required value. Otherwise,
will assert.
Defined by | |||||
---|---|---|---|---|---|
Parameters |
| ||||
Returns |
|
this.getRowClassName() → string
string
Parameters | None. | ||
---|---|---|---|
Returns |
|
this.getRowElement() → (Element|null)
(Element|null)
Parameters | None. | ||
---|---|---|---|
Returns |
|
this.getRowSafeHtml() → goog.html.SafeHtml
goog.html.SafeHtml
Parameters | None. | ||
---|---|---|---|
Returns |
|
this.getSafeHtml() → goog.html.SafeHtml
goog.html.SafeHtml
Returns the html of the label.
Parameters | None. | ||
---|---|---|---|
Returns |
|
this.getText() → string
string
Returns the text of the label. If the text was originally set as HTML, the return value is unspecified.
Parameters | None. | ||
---|---|---|---|
Returns |
|
this.getToolTip() → (string|null)
(string|null)
this.getTree() → (goog.ui.tree.TreeControl|null)
(goog.ui.tree.TreeControl|null)
this.hasChildren() → boolean
boolean
Returns true if the component has children.
Defined by | |||
---|---|---|---|
Parameters | None. | ||
Returns |
|
this.hasListener<EVENTOBJ>( opt_type, opt_capture ) → boolean
boolean
Whether there is any active listeners matching the specified signature. If either the type or capture parameters are unspecified, the function will match on the remaining criteria.
Overrides | |||||||||
---|---|---|---|---|---|---|---|---|---|
Specified by | |||||||||
Parameters |
| ||||||||
Returns |
|
this.indexOfChild( child ) → number
number
Returns the 0-based index of the given child component, or -1 if no such child is found.
Defined by | |||||
---|---|---|---|---|---|
Parameters |
| ||||
Returns |
|
this.initAccessibility() → void
void
Adds roles and states.
this.isDisposed() → boolean
boolean
Overrides | |||
---|---|---|---|
Specified by | |||
Parameters | None. | ||
Returns |
|
this.isInDocument() → boolean
boolean
Determines whether the component has been added to the document.
Defined by | |||
---|---|---|---|
Parameters | None. | ||
Returns |
|
this.isLastSibling() → boolean
boolean
Parameters | None. | ||
---|---|---|---|
Returns |
|
this.isRightToLeft() → boolean
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.
Defined by | |||
---|---|---|---|
Parameters | None. | ||
Returns |
|
this.isSelected() → boolean
boolean
Parameters | None. | ||
---|---|---|---|
Returns |
|
this.isUserCollapsible() → boolean
boolean
Parameters | None. | ||
---|---|---|---|
Returns |
|
this.listen<SCOPE, EVENTOBJ>( type, listener, opt_useCapture, opt_listenerScope ) → goog.events.ListenableKey
goog.events.ListenableKey
Adds an event listener. A listener can only be added once to an object and if it is added again the key for the listener is returned. Note that if the existing listener is a one-off listener (registered via listenOnce), it will no longer be a one-off listener after a call to listen().
Overrides | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Specified by | |||||||||||||||||
Parameters |
| ||||||||||||||||
Returns |
|
this.listenOnce<SCOPE, EVENTOBJ>( type, listener, opt_useCapture, opt_listenerScope ) → goog.events.ListenableKey
goog.events.ListenableKey
Adds an event listener that is removed automatically after the listener fired once.
If an existing listener already exists, listenOnce will do nothing. In particular, if the listener was previously registered via listen(), listenOnce() will not turn the listener into a one-off listener. Similarly, if there is already an existing one-off listener, listenOnce does not modify the listeners (it is still a once listener).
Overrides | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Specified by | |||||||||||||||||
Parameters |
| ||||||||||||||||
Returns |
|
this.makeId( idFragment ) → string
string
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.
Defined by | |||||
---|---|---|---|---|---|
Parameters |
| ||||
Returns |
|
this.onClick_( e ) → void
void
this.onDoubleClick_( e ) → void
void
this.onKeyDown( e ) → boolean
boolean
Handles a key down event.
Parameters |
| ||||
---|---|---|---|---|---|
Returns |
|
this.onMouseDown( e ) → void
void
this.pointerEventsEnabled() → boolean
boolean
Returns whether this component should listen for PointerEvent types rather than MouseEvent types. This allows supporting drag gestures for touch/stylus input.
Defined by | ||
---|---|---|
Parameters | None. | |
Returns |
|
this.registerDisposable( disposable ) → void
void
Associates a disposable object with this object so that they will be disposed together.
Defined by | |||||
---|---|---|---|---|---|
Parameters |
|
this.remove( arg0, arg1 ) → goog.ui.tree.BaseNode
goog.ui.tree.BaseNode
warning Deprecated | Use |
---|
Parameters |
| ||||||||
---|---|---|---|---|---|---|---|---|---|
Returns |
|
this.removeAllListeners( opt_type ) → number
number
Removes all listeners from this listenable. If type is specified, it will only remove listeners of the particular type. otherwise all registered listeners will be removed.
Overrides | |||||
---|---|---|---|---|---|
Specified by | |||||
Parameters |
| ||||
Returns |
|
this.removeChild( childNode, opt_unrender ) → goog.ui.tree.BaseNode
goog.ui.tree.BaseNode
Removes a child. The caller is responsible for disposing the node.
Overrides | |||||||||
---|---|---|---|---|---|---|---|---|---|
Parameters |
| ||||||||
Returns |
|
this.removeChildAt( index, opt_unrender ) → (goog.ui.Component|null)
(goog.ui.Component|null)
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.
Defined by | |||||||||
---|---|---|---|---|---|---|---|---|---|
Parameters |
| ||||||||
Returns |
| ||||||||
See Also |
this.removeChildren( opt_unrender ) → Array<(goog.ui.Component|null)>
Array<(goog.ui.Component|null)>
Removes every child component attached to this one and returns them.
Defined by | |||||
---|---|---|---|---|---|
Parameters |
| ||||
Returns |
| ||||
See Also |
this.removeEventListener( type, handler, opt_capture, opt_handlerScope ) → void
void
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.
warning Deprecated | Use |
---|
Defined by | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Parameters |
|
this.render( opt_parentElement ) → void
void
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.
Defined by | |||||
---|---|---|---|---|---|
Parameters |
|
this.renderBefore( sibling ) → void
void
Renders the component before another element. The other element should be in the document already.
Throws an Error if the component is already rendered.
Defined by | |||||
---|---|---|---|---|---|
Parameters |
|
this.reveal() → void
void
Expands the parent chain of this node so that it is visible.
this.select() → void
void
Selects the node.
this.setAfterLabelSafeHtml( html ) → void
void
Sets the html that appears after the label. This is useful if you want to put extra UI on the row of the label but not inside the anchor tag.
Parameters |
|
---|
this.setClientData( data ) → void
void
Sets client data to associate with the node.
warning Deprecated | Use |
---|
Parameters |
|
---|
this.setElementInternal( element ) → void
void
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.
Defined by | |||||
---|---|---|---|---|---|
Parameters |
|
this.setExpanded( expanded ) → void
void
Sets the node to be expanded.
Parameters |
|
---|
this.setExpandedIconClass( s ) → void
void
Sets the icon class for when the node is expanded.
Parameters |
|
---|
this.setExpandedInternal( expanded ) → void
void
Sets the node to be expanded internally, without state change events.
Parameters |
|
---|
this.setIconClass( s ) → void
void
this.setId( id ) → void
void
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.
Defined by | |||||
---|---|---|---|---|---|
Parameters |
|
this.setIsUserCollapsible( isCollapsible ) → void
void
Sets whether the node will allow the user to collapse it.
Parameters |
|
---|
this.setModel( obj ) → void
void
Sets the model associated with the UI component.
Defined by | |||||
---|---|---|---|---|---|
Parameters |
|
this.setParent( parent ) → void
void
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.
Defined by | |||||
---|---|---|---|---|---|
Parameters |
| ||||
See Also |
this.setParentEventTarget( parent ) → void
void
Overrides goog.events.EventTarget#setParentEventTarget
to throw an
error if the parent component is set, and the argument is not the parent.
Defined by | |||||
---|---|---|---|---|---|
Overrides | |||||
Parameters |
|
this.setPointerEventsEnabled( enable ) → void
void
Indicates whether this component should listen for PointerEvent types rather than MouseEvent types. This allows supporting drag gestures for touch/stylus input. Must be called before enterDocument to listen for the correct event types.
Defined by | |||||
---|---|---|---|---|---|
Parameters |
|
this.setRightToLeft( rightToLeft ) → void
void
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).
Defined by | |||||
---|---|---|---|---|---|
Parameters |
|
this.setSafeHtml( html ) → void
void
Sets the HTML of the label.
Parameters |
|
---|
this.setSelectedInternal( selected ) → void
void
Called from the tree to instruct the node change its selection state.
Parameters |
|
---|
this.setTargetForTesting( target ) → void
void
Sets the target to be used for event.target
when firing
event. Mainly used for testing. For example, see
goog.testing.events.mixinListenable
.
Defined by | |||||
---|---|---|---|---|---|
Parameters |
|
this.setText( s ) → void
void
this.setToolTip( s ) → void
void
this.setTreeInternal( tree ) → void
void
Internal method that is used to set the tree control on the node.
Parameters |
|
---|
this.toSafeHtml() → goog.html.SafeHtml
goog.html.SafeHtml
this.toggle() → void
void
Toggles the expanded state of the node.
this.unlisten<SCOPE, EVENTOBJ>( type, listener, opt_useCapture, opt_listenerScope ) → boolean
boolean
Removes an event listener which was added with listen() or listenOnce().
Overrides | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Specified by | |||||||||||||||||
Parameters |
| ||||||||||||||||
Returns |
|
this.unlistenByKey( key ) → boolean
boolean
Removes an event listener which was added with listen() by the key returned by listen().
Overrides | |||||
---|---|---|---|---|---|
Specified by | |||||
Parameters |
| ||||
Returns |
|
this.updateExpandIcon() → void
void
Updates the expand icon of the node.
this.updateRow() → void
void
Updates the row styles.
this.wasDecorated() → boolean
boolean
Defined by | |||
---|---|---|---|
Parameters | None. | ||
Returns |
|
Instance Properties
this.creationStack → (string|undefined)
(string|undefined)
If monitoring the goog.Disposable instances is enabled, stores the creation stack trace of the Disposable instance.
this.dom_ → goog.dom.DomHelper
goog.dom.DomHelper
DomHelper used to interact with the document, allowing components to be created in a different window.
this.tree → (goog.ui.tree.TreeControl|null)
(goog.ui.tree.TreeControl|null)
No information.