goog.ui.menuBar
s, based on
goog.ui.ContainerRenderer
.
goog.ui.ContainerRenderer | |
goog.ui.MenuBarRenderer | goog.ui.ContainerRenderer |
![]()
No description.
|
code » | |
![]()
Returns the default orientation of containers rendered or decorated by this
renderer. This implementation returns
HORIZONTAL .
Returns: goog.ui.Container.Orientation
Default orientation for containers
created or decorated by this renderer.
|
code » |
Default implementation of
canDecorate ; returns true if the element
is a DIV, false otherwise.
|
code » | ||||
Creates and returns the container's root element. The default
simply creates a DIV and applies the renderer's own CSS class name to it.
To be overridden in subclasses.
Arguments:
Returns: Element
Root element for the container.
|
code » | ||||
Default implementation of
decorate for goog.ui.Container s.
Decorates the element with the container, and attempts to decorate its child
elements. Returns the decorated element.
Arguments:
Returns: !Element
Decorated element.
|
code » | ||||
![]()
Takes a container and an element that may contain child elements, decorates
the child elements, and adds the corresponding components to the container
as child components. Any non-element child nodes (e.g. empty text nodes
introduced by line breaks in the HTML source) are removed from the element.
Arguments:
|
code » | ||||
![]()
Enables or disables the tab index of the element. Only elements with a
valid tab index can receive focus.
|
code » | ||||
Returns the ARIA role to be applied to the container.
See http://wiki/Main/ARIA for more info.
|
code » | ||||
Returns all CSS class names applicable to the given container, based on its
state. The array of class names returned includes the renderer's own CSS
class, followed by a CSS class indicating the container's orientation,
followed by any state-specific CSS classes.
Arguments:
|
code » | ||||
Returns the DOM element into which child components are to be rendered,
or null if the container hasn't been rendered yet.
|
code » | ||||
Returns the CSS class to be applied to the root element of containers
rendered using this renderer.
Returns: string
Renderer-specific CSS class.
|
code » | ||||
Inspects the element, and creates an instance of
goog.ui.Control or
an appropriate subclass best suited to decorate it. Returns the control (or
null if no suitable class was found). This default implementation uses the
element's CSS class to find the appropriate control class to instantiate.
May be overridden in subclasses.
Arguments:
Returns: ?goog.ui.Control
A new control suitable to decorate the element
(null if none).
|
code » | ||||
![]()
Returns the default orientation of containers rendered or decorated by this
renderer. The base class implementation returns
VERTICAL .
Returns: goog.ui.Container.Orientation
Default orientation for containers
created or decorated by this renderer.
|
code » | ||||
Returns the element within the container's DOM that should receive keyboard
focus (null if none). The default implementation returns the container's
root element.
Arguments:
Returns: Element
Key event target (null if none).
|
code » | ||||
![]()
Initializes the container's DOM when the container enters the document.
Called from
goog.ui.Container#enterDocument .
Arguments:
|
code » | ||||
![]()
Sets the container's state based on the given CSS class name, encountered
during decoration. CSS class names that don't represent container states
are ignored. Considered protected; subclasses should override this method
to support more states and CSS class names.
Arguments:
|
code » |
![]()
No description.
|
Code » |
![]()
No description.
|
Code » |
![]()
No description.
|
code » |
![]()
Default CSS class to be applied to the root element of elements rendered
by this renderer.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » |