|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Panel
com.google.gwt.user.client.ui.HTMLTable
com.google.gwt.user.client.ui.FlexTable
org.kuali.student.common.ui.client.configurable.mvc.multiplicity.MultiplicityTable
public class MultiplicityTable
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 |
Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets |
---|
com.google.gwt.user.client.ui.HasWidgets.ForIsWidget |
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, addDoubleClickHandler, 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, setHTML, setRowFormatter, setText, setWidget, setWidget |
Methods inherited from class com.google.gwt.user.client.ui.Panel |
---|
add, add, adopt, adopt, disown, doAttachChildren, doDetachChildren, orphan, remove |
Methods inherited from class com.google.gwt.user.client.ui.Widget |
---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, 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, 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 |
Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
---|
fireEvent |
Field Detail |
---|
private MultiplicityConfiguration config
private static final String STYLE_TABLE
private static final String STYLE_TABLE_BORDER
private static final String STYLE_CELL
private static final String STYLE_CELL_BORDER
private static final String STYLE_HEADER_CELL
private static final String BLANK_STRING
private int col
protected int row
private String parentPath
Constructor Detail |
---|
public MultiplicityTable(MultiplicityConfiguration config)
config
- Method Detail |
---|
public void initTable()
public void buildHeaders()
public void addHeaderCell(String fieldValue)
public void addNextCell(String fieldValue)
private void setCellText(int row, int cell, String fieldValue)
public void addEmptyCell()
public void nextRow()
public MultiplicityConfiguration getConfig()
public void setConfig(MultiplicityConfiguration config)
public String getParentPath()
public void setParentPath(String parentPath)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |