org.kuali.student.common.ui.client.configurable.mvc.multiplicity
Class MultiplicityTable

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.Panel
              extended by com.google.gwt.user.client.ui.HTMLTable
                  extended by com.google.gwt.user.client.ui.FlexTable
                      extended by org.kuali.student.common.ui.client.configurable.mvc.multiplicity.MultiplicityTable
All Implemented Interfaces:
com.google.gwt.event.dom.client.HasClickHandlers, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.HasWidgets, com.google.gwt.user.client.ui.SourcesTableEvents, Iterable<com.google.gwt.user.client.ui.Widget>

public class MultiplicityTable
extends com.google.gwt.user.client.ui.FlexTable

A MultiplicityTable displays data in a GWT FlexTable, one cell per field defined, one row per iteration in the supplied data. Data is displayed as defined in the MultiplicityConfiguration passed in the ctor If concatenated fields have been defined the values will be concatenated (comma delimited) and displayed in a single table cell Fields are included in the table based on the FieldDescriptors added to the configuration


Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.FlexTable
com.google.gwt.user.client.ui.FlexTable.FlexCellFormatter
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.HTMLTable
com.google.gwt.user.client.ui.HTMLTable.Cell, com.google.gwt.user.client.ui.HTMLTable.CellFormatter, com.google.gwt.user.client.ui.HTMLTable.ColumnFormatter, com.google.gwt.user.client.ui.HTMLTable.RowFormatter
 
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
private static String BLANK_STRING
           
private  int col
           
private  MultiplicityConfiguration config
           
private  String parentPath
           
protected  int row
           
private static String STYLE_CELL
           
private static String STYLE_CELL_BORDER
           
private static String STYLE_HEADER_CELL
           
private static String STYLE_TABLE
           
private static String STYLE_TABLE_BORDER
           
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
MultiplicityTable(MultiplicityConfiguration config)
          Creates an instance of a MultiplicityTable based on the options in the MultiplicityConfiguration
 
Method Summary
 void addEmptyCell()
           
 void addHeaderCell(String fieldValue)
           
 void addNextCell(String fieldValue)
           
 void buildHeaders()
           
 MultiplicityConfiguration getConfig()
           
 String getParentPath()
           
 void initTable()
           
 void nextRow()
           
private  void setCellText(int row, int cell, String fieldValue)
           
 void setConfig(MultiplicityConfiguration config)
           
 void setParentPath(String parentPath)
           
 
Methods inherited from class com.google.gwt.user.client.ui.FlexTable
addCell, getCellCount, getFlexCellFormatter, getRowCount, insertCell, insertRow, prepareCell, prepareRow, removeAllRows, removeCell, removeCells, removeRow
 
Methods inherited from class com.google.gwt.user.client.ui.HTMLTable
addClickHandler, addTableListener, checkCellBounds, checkRowBounds, clear, clear, clearCell, createCell, getBodyElement, getCellForEvent, getCellFormatter, getCellPadding, getCellSpacing, getColumnFormatter, getDOMCellCount, getDOMCellCount, getDOMRowCount, getDOMRowCount, getEventTargetCell, getHTML, getRowFormatter, getText, getWidget, insertCells, internalClearCell, isCellPresent, iterator, onEnsureDebugId, prepareColumn, remove, removeTableListener, setBorderWidth, setCellFormatter, setCellPadding, setCellSpacing, setColumnFormatter, setHTML, setRowFormatter, setText, setWidget
 
Methods inherited from class com.google.gwt.user.client.ui.Panel
add, adopt, adopt, disown, doAttachChildren, doDetachChildren, onLoad, onUnload, orphan
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addDomHandler, addHandler, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, 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, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.google.gwt.event.shared.HasHandlers
fireEvent
 

Field Detail

config

private MultiplicityConfiguration config

STYLE_TABLE

private static final String STYLE_TABLE
See Also:
Constant Field Values

STYLE_TABLE_BORDER

private static final String STYLE_TABLE_BORDER
See Also:
Constant Field Values

STYLE_CELL

private static final String STYLE_CELL
See Also:
Constant Field Values

STYLE_CELL_BORDER

private static final String STYLE_CELL_BORDER
See Also:
Constant Field Values

STYLE_HEADER_CELL

private static final String STYLE_HEADER_CELL
See Also:
Constant Field Values

BLANK_STRING

private static final String BLANK_STRING
See Also:
Constant Field Values

col

private int col

row

protected int row

parentPath

private String parentPath
Constructor Detail

MultiplicityTable

public MultiplicityTable(MultiplicityConfiguration config)
Creates an instance of a MultiplicityTable based on the options in the MultiplicityConfiguration

Parameters:
config -
Method Detail

initTable

public void initTable()

buildHeaders

public void buildHeaders()

addHeaderCell

public void addHeaderCell(String fieldValue)

addNextCell

public void addNextCell(String fieldValue)

setCellText

private void setCellText(int row,
                         int cell,
                         String fieldValue)

addEmptyCell

public void addEmptyCell()

nextRow

public void nextRow()

getConfig

public MultiplicityConfiguration getConfig()

setConfig

public void setConfig(MultiplicityConfiguration config)

getParentPath

public String getParentPath()

setParentPath

public void setParentPath(String parentPath)


Copyright © 2007-2011 The Kuali Foundation. All Rights Reserved.