com.google.gwt.visualization.client.visualizations
Class Table

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.google.gwt.visualization.client.visualizations.Visualization<Table.Options>
              extended by com.google.gwt.visualization.client.visualizations.Table
All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.IsWidget, Selectable

public class Table
extends Visualization<Table.Options>
implements Selectable

Table visualization.

See Also:
Table Visualization Reference

Nested Class Summary
static class Table.Options
          Options for drawing the table visualization.
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
 
Field Summary
static java.lang.String PACKAGE
           
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
Table()
           
Table(AbstractDataTable data, Table.Options options)
           
 
Method Summary
 void addPageHandler(PageHandler handler)
           
 void addSelectHandler(SelectHandler handler)
          Add a SelectHandler to the visualization.
 void addSortHandler(SortHandler handler)
           
protected  com.google.gwt.core.client.JavaScriptObject createJso(com.google.gwt.dom.client.Element parent)
          Creates an instance of the underlying JavaScriptObject for this visualization.
 com.google.gwt.core.client.JsArray<Selection> getSelections()
          Get the Selections that are currently selected.
 void setSelections(com.google.gwt.core.client.JsArray<Selection> sel)
          Set the Selections on the Selectable visualization.
 
Methods inherited from class com.google.gwt.visualization.client.visualizations.Visualization
createDiv, draw, draw, getJso, onLoad, setSize
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onUnload, removeFromParent, setLayoutData, sinkEvents
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PACKAGE

public static final java.lang.String PACKAGE
See Also:
Constant Field Values
Constructor Detail

Table

public Table()

Table

public Table(AbstractDataTable data,
             Table.Options options)
Method Detail

addPageHandler

public final void addPageHandler(PageHandler handler)

addSelectHandler

public final void addSelectHandler(SelectHandler handler)
Description copied from interface: Selectable
Add a SelectHandler to the visualization.

Specified by:
addSelectHandler in interface Selectable
Parameters:
handler - A SelectHandler.

addSortHandler

public final void addSortHandler(SortHandler handler)

getSelections

public final com.google.gwt.core.client.JsArray<Selection> getSelections()
Description copied from interface: Selectable
Get the Selections that are currently selected.

Specified by:
getSelections in interface Selectable
Returns:
A JsArray of Selections.

setSelections

public final void setSelections(com.google.gwt.core.client.JsArray<Selection> sel)
Description copied from interface: Selectable
Set the Selections on the Selectable visualization.

Specified by:
setSelections in interface Selectable
Parameters:
sel - An array of Selections.

createJso

protected com.google.gwt.core.client.JavaScriptObject createJso(com.google.gwt.dom.client.Element parent)
Description copied from class: Visualization
Creates an instance of the underlying JavaScriptObject for this visualization. Subclasses must override this with JSNI that calls the JavaScript constructor for their visualization.

Specified by:
createJso in class Visualization<Table.Options>
Parameters:
parent - The container for the visualization.
Returns:
The underlying JavaScriptObject for the visualization.