component.js
Abstract class for all UI components. This defines the standard design pattern that all UI components should follow.

File Location

ui/component.js

Classes

goog.ui.Component
Default implementation of UI component.

Public Protected Private

Global Functions

goog.ui.Component.getStateTransitionEvent(stateisEntering)
goog.ui.Component.EventType
Static helper method; returns the type of event components are expected to dispatch when transitioning to or from the given state.
Arguments:
state :
goog.ui.Component.State
State to/from which the component is transitioning.
isEntering :
Whether the component is entering or leaving the state.
Returns: 
goog.ui.Component.EventType
  Event type to dispatch.
code »
goog.ui.Component.setDefaultRightToLeft(rightToLeft)
Set the default right-to-left value. This causes all component's created from this point foward to have the given value. This is useful for cases where a given page is always in one directionality, avoiding unnecessary right to left determinations.
Arguments:
rightToLeft :
Whether the components should be rendered right-to-left. Null iff components should determine their directionality.
code »

Global Properties

goog.ui.Component.defaultRightToLeft_ :
The default right to left value.
Code »

Directory ui

File Reference