org.kuali.student.common.ui.client.widgets.table.scroll
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.user.client.ui.Composite
              extended by org.kuali.student.common.ui.client.widgets.table.scroll.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, HasSelectionChangeHandlers, HasRetrieveAdditionalDataHandlers

public class Table
extends com.google.gwt.user.client.ui.Composite
implements HasRetrieveAdditionalDataHandlers, HasSelectionChangeHandlers

A table with UiBinder.


Nested Class Summary
private static class Table.FocusType
           
(package private) static interface Table.SelectionStyle
           
(package private) static interface Table.TableUiBinder
           
 
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
(package private)  com.google.gwt.user.client.ui.FocusPanel focusPanel
           
private  Table.FocusType focusType
           
(package private)  com.google.gwt.user.client.ui.FlexTable header
           
(package private)  com.google.gwt.user.client.ui.FocusPanel headerFocusPanel
           
private  int headerSelectedCellIndex
           
private  LoadingDiv loading
           
(package private)  com.google.gwt.user.client.ui.HTMLPanel panel
           
private  List<RetrieveAdditionalDataHandler> retrieveDataHandlers
           
(package private)  com.google.gwt.user.client.ui.ScrollPanel scrollPanel
           
(package private)  Table.SelectionStyle selectionStyle
           
(package private)  MouseHoverFlexTable table
           
private  TableModel tableModel
           
private static Table.TableUiBinder uiBinder
           
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
Table()
           
 
Method Summary
 void addContent()
           
private  void addHandlers()
           
 com.google.gwt.event.shared.HandlerRegistration addRetrieveAdditionalDataHandler(RetrieveAdditionalDataHandler handler)
           
 com.google.gwt.event.shared.HandlerRegistration addSelectionChangeHandler(SelectionChangeHandler handler)
           
private  void changeFocus(Table.FocusType focusType)
           
 void displayLoading(boolean isLoading)
           
 com.google.gwt.user.client.ui.FlexTable getContent()
           
 com.google.gwt.user.client.ui.FlexTable getHeader()
           
 com.google.gwt.user.client.ui.ScrollPanel getScrollPanel()
           
 TableModel getTableModel()
           
private  void onTableCellChanged(int rowIndex, String columnId, TableCellWidget cellWidget)
           
(package private)  void onTableClicked(com.google.gwt.event.dom.client.ClickEvent event)
           
private  void onTableClicked(int row, String columnId, TableCellWidget cellWidget)
           
(package private)  void onTableHeaderClicked(com.google.gwt.event.dom.client.ClickEvent event)
           
private  void onTableHeaderClicked(int cellIndex, boolean propagateEventIfNotSortingColumn)
           
private  void processKeyDownOnHeader()
           
private  void processKeyLeftRight(TablePredicateFactory.Predicate tablePredicate)
           
private  void processKeyUpAndDownEvent(TablePredicateFactory.Predicate tablePredicate)
           
private  void processSpaceClick()
           
 void removeAllRows()
           
 void removeContent()
           
private  void removeHeaderSelection()
           
 void setTableModel(TableModel m)
           
 void updateTable(TableModelEvent event)
           
private  void updateTableCell(int r, int c)
           
private  void updateTableData()
           
private  void updateTableSelection()
           
private  void updateTableStructure()
           
 
Methods inherited from class com.google.gwt.user.client.ui.Composite
getWidget, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, setWidget
 
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, isOrWasAttached, onLoad, 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

headerSelectedCellIndex

private int headerSelectedCellIndex

focusType

private Table.FocusType focusType

uiBinder

private static Table.TableUiBinder uiBinder

retrieveDataHandlers

private final List<RetrieveAdditionalDataHandler> retrieveDataHandlers

header

@UiField
com.google.gwt.user.client.ui.FlexTable header

table

@UiField
MouseHoverFlexTable table

selectionStyle

@UiField
Table.SelectionStyle selectionStyle

scrollPanel

@UiField
com.google.gwt.user.client.ui.ScrollPanel scrollPanel

focusPanel

@UiField
com.google.gwt.user.client.ui.FocusPanel focusPanel

headerFocusPanel

@UiField
com.google.gwt.user.client.ui.FocusPanel headerFocusPanel

panel

@UiField
com.google.gwt.user.client.ui.HTMLPanel panel

tableModel

private TableModel tableModel

loading

private final LoadingDiv loading
Constructor Detail

Table

public Table()
Method Detail

removeAllRows

public void removeAllRows()

removeContent

public void removeContent()

addContent

public void addContent()

addHandlers

private void addHandlers()

processKeyDownOnHeader

private void processKeyDownOnHeader()

removeHeaderSelection

private void removeHeaderSelection()

processKeyLeftRight

private void processKeyLeftRight(TablePredicateFactory.Predicate tablePredicate)

processSpaceClick

private void processSpaceClick()

processKeyUpAndDownEvent

private void processKeyUpAndDownEvent(TablePredicateFactory.Predicate tablePredicate)

getHeader

public com.google.gwt.user.client.ui.FlexTable getHeader()

getContent

public com.google.gwt.user.client.ui.FlexTable getContent()

getScrollPanel

public com.google.gwt.user.client.ui.ScrollPanel getScrollPanel()

setTableModel

public void setTableModel(TableModel m)

getTableModel

public TableModel getTableModel()

onTableClicked

@UiHandler(value="table")
void onTableClicked(com.google.gwt.event.dom.client.ClickEvent event)

onTableHeaderClicked

@UiHandler(value="header")
void onTableHeaderClicked(com.google.gwt.event.dom.client.ClickEvent event)

onTableHeaderClicked

private void onTableHeaderClicked(int cellIndex,
                                  boolean propagateEventIfNotSortingColumn)

onTableClicked

private void onTableClicked(int row,
                            String columnId,
                            TableCellWidget cellWidget)

onTableCellChanged

private void onTableCellChanged(int rowIndex,
                                String columnId,
                                TableCellWidget cellWidget)

updateTableSelection

private void updateTableSelection()

changeFocus

private void changeFocus(Table.FocusType focusType)

updateTable

public void updateTable(TableModelEvent event)

updateTableData

private void updateTableData()

updateTableCell

private void updateTableCell(int r,
                             int c)

updateTableStructure

private void updateTableStructure()

addRetrieveAdditionalDataHandler

public com.google.gwt.event.shared.HandlerRegistration addRetrieveAdditionalDataHandler(RetrieveAdditionalDataHandler handler)
Specified by:
addRetrieveAdditionalDataHandler in interface HasRetrieveAdditionalDataHandlers

displayLoading

public void displayLoading(boolean isLoading)

addSelectionChangeHandler

public com.google.gwt.event.shared.HandlerRegistration addSelectionChangeHandler(SelectionChangeHandler handler)
Specified by:
addSelectionChangeHandler in interface HasSelectionChangeHandlers
See Also:
HasSelectionChangeHandlers.addSelectionChangeHandler(org.kuali.student.common.ui.client.widgets.list.SelectionChangeHandler)


Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.