public class MasterDetailPanel extends com.google.gwt.user.client.ui.FlexTable implements MasterDetailLayout, AdvancedWidget
com.google.gwt.user.client.ui.FlexTable.FlexCellFormatter
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
Constructor and Description |
---|
MasterDetailPanel()
Constructs a new MasterDetailPanel with 2 rows and 1 column.
|
MasterDetailPanel(int rows,
int columns)
Constructs a master-detail panel with the specified number of rows and columns.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addGridPanel(GridPanel panel,
GridPanel parent,
String caption)
This method adds a grid panel into the master-detail panel automatically choosing a cell to put it in.
|
void |
display()
Use this method just to apply CSS.
|
boolean |
removeGridPanel(GridPanel panel)
This method removes a grid panel from this master-detail panel automatically finding it in cells.
|
protected void |
removeGridPanelSubtree(GridPanel panel)
This method removes the subtree of panel grids specified by the root panel.
|
void |
resize()
This method is loaded required to invoke similar methods in all nested grid panels.
|
protected void |
setGridPanel(int row,
int column,
GridPanel panel,
GridPanel parent,
String caption)
This method puts the specified panel into the cell.
|
addCell, getCellCount, getFlexCellFormatter, getRowCount, insertCell, insertRow, prepareCell, prepareRow, removeAllRows, removeCell, removeCells, removeRow
addClickHandler, addDoubleClickHandler, addDragEndHandler, addDragEnterHandler, addDragHandler, addDragLeaveHandler, addDragOverHandler, addDragStartHandler, addDropHandler, 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
add, add, adopt, adopt, disown, doAttachChildren, doDetachChildren, orphan, remove
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString, unsinkEvents
public MasterDetailPanel()
public MasterDetailPanel(int rows, int columns)
rows
- is a number of rows.columns
- is a number of columns.public boolean addGridPanel(GridPanel panel, GridPanel parent, String caption)
addGridPanel
in interface MasterDetailLayout
panel
- is a grid panel to be placed in.parent
- is a parent grid panel. It can be equal to null
.caption
- is a caption of the grid panel.true
if the panel has been placed into the master-detail panel.public boolean removeGridPanel(GridPanel panel)
removeGridPanel
in interface MasterDetailLayout
panel
- is a panel to be removed.true
is the widget has been found and removed.public void display()
display
in interface AdvancedWidget
public void resize()
protected void setGridPanel(int row, int column, GridPanel panel, GridPanel parent, String caption)
row
- is a row number.column
- is a column number.panel
- is a grid panel to be put in.parent
- is a parent grid panel.caption
- is a caption of the grid panel.protected void removeGridPanelSubtree(GridPanel panel)
panel
- is a root grid panel.Copyright © 2008–2013. All rights reserved.