|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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.widgets.table.TreeTable
public class TreeTable
Layout the token tree in GWT FlexTable.
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 |
---|
Fields inherited from class com.google.gwt.user.client.ui.UIObject |
---|
DEBUG_ID_PREFIX |
Constructor Summary | |
---|---|
TreeTable()
|
Method Summary | |
---|---|
void |
buildTable(Node root)
|
private void |
buildTable(Node<Token> node,
int columnIndex)
Build table for node passed in at columnIndex |
NodeWidget |
getNodeWidget(Node node)
|
int |
getParentRowIndex(Node node)
Get the starting row for node passed in |
NodeWidget |
getRootNodeWidget()
|
private int |
getRowIndexAmongSibings(Node node)
Get the row index for siblings |
private void |
initTable(Node root)
|
void |
mergeCellAcrossColumn(int row,
int column)
Merge columns |
void |
mergeCellAcrossRow(int row,
int column,
int count)
Merge rows. |
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 |
Constructor Detail |
---|
public TreeTable()
Method Detail |
---|
public NodeWidget getRootNodeWidget()
private void initTable(Node root)
public void buildTable(Node root)
private int getRowIndexAmongSibings(Node node)
public NodeWidget getNodeWidget(Node node)
public int getParentRowIndex(Node node)
node
- target nodeprivate void buildTable(Node<Token> node, int columnIndex)
node
- target nodepublic void mergeCellAcrossRow(int row, int column, int count)
row
- row indexcolumn
- column indexcount
- row countpublic void mergeCellAcrossColumn(int row, int column)
row
- row indexcolumn
- column index
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |