|
|||||||||
| 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.extjs.gxt.ui.client.widget.Component
com.extjs.gxt.ui.client.widget.BoxComponent
com.extjs.gxt.ui.client.widget.grid.ColumnHeader
public class ColumnHeader
ColumnHeader Component.
| Nested Class Summary | |
|---|---|
class |
ColumnHeader.GridSplitBar
|
class |
ColumnHeader.Group
|
class |
ColumnHeader.Head
|
| 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 | |
|---|---|
protected ColumnHeader.GridSplitBar |
bar
|
protected ColumnModel |
cm
|
protected int[] |
columnToHead
Maps actual column indexes to the TABLE TH and TD index. |
protected BoxComponent |
container
|
protected java.util.List<ColumnHeader.Group> |
groups
|
protected boolean |
headerDisabled
|
protected java.util.List<ColumnHeader.Head> |
heads
|
protected Menu |
menu
|
protected int |
minColumnWidth
|
protected Draggable |
reorderer
|
protected int |
rows
|
protected int |
splitterWidth
|
protected com.google.gwt.user.client.ui.FlexTable |
table
|
| Fields inherited from class com.extjs.gxt.ui.client.widget.BoxComponent |
|---|
adjustSize, cacheSizes, ensureVisibilityOnSizing, height, lastSize, layer, shim, width |
| Fields inherited from class com.extjs.gxt.ui.client.widget.Component |
|---|
afterRender, attachables, baseStyle, disabled, disabledStyle, disableTextSelection, dummy, focusable, hidden, mask, maskMessage, maskMessageStyleName, monitorWindowResize, rendered, resizeHandler, setElementRender, stateId, swallowEvents, toolTip, windowResizeDelay, windowResizeTask |
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
ColumnHeader(BoxComponent container,
ColumnModel cm)
Creates a new column header. |
|
| Method Summary | |
|---|---|
protected void |
adjustCellWidth(com.google.gwt.user.client.Element cell,
int width)
|
protected void |
adjustColumnWidths(int[] columnWidths)
|
protected void |
adjustHeights()
|
protected void |
cleanCells()
|
protected ComponentEvent |
createColumnEvent(ColumnHeader header,
int column,
Menu menu)
|
protected ColumnHeader.Group |
createNewGroup(HeaderGroupConfig config)
|
protected ColumnHeader.Head |
createNewHead(ColumnConfig config)
|
protected void |
doAttachChildren()
|
protected void |
doDetachChildren()
|
protected int |
getColumnIndexByDom(int domIndex)
|
protected int[] |
getColumnWidths()
|
protected int |
getColumnWidths(int start,
int end)
|
BoxComponent |
getContainer()
Returns the header's container component. |
protected Menu |
getContextMenu(int column)
|
protected int |
getDomIndexByColumn(int column)
|
com.google.gwt.user.client.Element |
getElement()
|
ColumnHeader.Head |
getHead(int column)
|
int |
getMinColumnWidth()
Returns the minimum column width. |
int |
getSplitterWidth()
Returns the splitter width. |
int |
indexOf(ColumnHeader.Head head)
Returns the index of the given column head. |
boolean |
isAttached()
|
protected void |
onAttach()
|
void |
onBrowserEvent(com.google.gwt.user.client.Event event)
Components delegate event handling to Component.onComponentEvent(ComponentEvent). |
protected void |
onColumnSplitterMoved(int colIndex,
int width)
|
protected void |
onDetach()
|
protected void |
onDropDownClick(ComponentEvent ce,
int column)
|
protected void |
onHeaderClick(ComponentEvent ce,
int column)
|
protected void |
onHeaderDoubleClick(ComponentEvent ce,
int column)
|
protected void |
onHeaderMouseDown(ComponentEvent ce,
int column)
|
protected void |
onKeyDown(ComponentEvent ce,
int index)
|
protected void |
onRender(com.google.gwt.user.client.Element target,
int index)
Subclasses must override and ensure setElement is called for lazy rendered components. |
void |
refresh()
|
void |
release()
Do not call. |
protected java.lang.String |
renderHiddenHeaders(int[] columnWidths)
|
protected void |
selectHeader(int index)
|
void |
setEnableColumnReorder(boolean enable)
|
void |
setEnableColumnResizing(boolean enable)
True to enable column resizing. |
void |
setHeaderHtml(int column,
java.lang.String headerHtml)
Sets the column's header HTML. |
void |
setHeaderText(int column,
java.lang.String text)
Sets the column's header text. |
void |
setMenu(Menu menu)
Sets the header's context menu. |
void |
setMinColumnWidth(int minColumnWidth)
Sets the minimum column width. |
void |
setSplitterWidth(int splitterWidth)
Sets the splitter width. |
void |
showColumnMenu(int column)
Shows the column's header context menu. |
void |
sinkEvents(int eventBitsToAdd)
|
void |
updateAllColumnWidths()
|
void |
updateColumnHidden(int index,
boolean hidden)
|
void |
updateColumnWidth(int column,
int width)
|
void |
updateSortIcon(int colIndex,
Style.SortDir dir)
|
void |
updateTotalWidth(int offset,
int width)
|
| Methods inherited from class com.extjs.gxt.ui.client.widget.BoxComponent |
|---|
adjustPosition, adjustSize, afterRender, createComponentEvent, getBounds, getHeight, getHeight, getPosition, getPositionEl, getResizeEl, getShadow, getShadowOffset, getShadowPosition, getSize, getWidth, getWidth, hideShadow, hideShim, hideUnders, isAutoHeight, isAutoWidth, isDeferHeight, isShim, onHide, onPosition, onResize, onShow, onUnload, setAutoHeight, setAutoWidth, setBounds, setBounds, setDeferHeight, setHeight, setHeight, setPagePosition, setPagePosition, setPixelSize, setPosition, setShadow, setShadowOffset, setShadowPosition, setShim, setSize, setSize, setWidth, setWidth, sync, syncSize |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, setLayoutData, unsinkEvents |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, removeStyleDependentName, resolvePotentialElement, setElement, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, sinkBitlessEvent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected ColumnHeader.GridSplitBar bar
protected ColumnModel cm
protected BoxComponent container
protected java.util.List<ColumnHeader.Group> groups
protected boolean headerDisabled
protected java.util.List<ColumnHeader.Head> heads
protected Menu menu
protected int minColumnWidth
protected Draggable reorderer
protected int rows
protected int splitterWidth
protected com.google.gwt.user.client.ui.FlexTable table
protected int[] columnToHead
| Constructor Detail |
|---|
public ColumnHeader(BoxComponent container,
ColumnModel cm)
container - the containing componentcm - the column model| Method Detail |
|---|
public BoxComponent getContainer()
public com.google.gwt.user.client.Element getElement()
getElement in class Componentpublic ColumnHeader.Head getHead(int column)
public int getMinColumnWidth()
public int getSplitterWidth()
public int indexOf(ColumnHeader.Head head)
head - the column head
public boolean isAttached()
isAttached in interface com.google.gwt.event.logical.shared.HasAttachHandlersisAttached in class com.google.gwt.user.client.ui.Widgetpublic void onBrowserEvent(com.google.gwt.user.client.Event event)
ComponentComponent.onComponentEvent(ComponentEvent). Subclasses should not override.
onBrowserEvent in interface com.google.gwt.user.client.EventListeneronBrowserEvent in class Componentevent - the dom eventpublic void refresh()
public void release()
public void setEnableColumnReorder(boolean enable)
public void setEnableColumnResizing(boolean enable)
enable - true to enable, otherwise false
public void setHeaderHtml(int column,
java.lang.String headerHtml)
column - the column indexheaderHtml - the header text as HTML
public void setHeaderText(int column,
java.lang.String text)
column - the column indextext - the header textpublic void setMenu(Menu menu)
menu - the context menupublic void setMinColumnWidth(int minColumnWidth)
minColumnWidth - the minimum column widthpublic void setSplitterWidth(int splitterWidth)
splitterWidth - the splitter widthpublic void showColumnMenu(int column)
column - the column indexpublic void sinkEvents(int eventBitsToAdd)
sinkEvents in class Componentpublic void updateAllColumnWidths()
public void updateColumnHidden(int index,
boolean hidden)
public void updateColumnWidth(int column,
int width)
public void updateSortIcon(int colIndex,
Style.SortDir dir)
public void updateTotalWidth(int offset,
int width)
protected void adjustCellWidth(com.google.gwt.user.client.Element cell,
int width)
protected void adjustColumnWidths(int[] columnWidths)
protected void adjustHeights()
protected void cleanCells()
protected ComponentEvent createColumnEvent(ColumnHeader header,
int column,
Menu menu)
protected ColumnHeader.Group createNewGroup(HeaderGroupConfig config)
protected ColumnHeader.Head createNewHead(ColumnConfig config)
protected void doAttachChildren()
doAttachChildren in class Componentprotected void doDetachChildren()
doDetachChildren in class Componentprotected int getColumnIndexByDom(int domIndex)
protected int[] getColumnWidths()
protected int getColumnWidths(int start,
int end)
protected Menu getContextMenu(int column)
protected int getDomIndexByColumn(int column)
protected void onAttach()
onAttach in class Component
protected void onColumnSplitterMoved(int colIndex,
int width)
protected void onDetach()
onDetach in class Component
protected void onDropDownClick(ComponentEvent ce,
int column)
protected void onHeaderClick(ComponentEvent ce,
int column)
protected void onHeaderDoubleClick(ComponentEvent ce,
int column)
protected void onHeaderMouseDown(ComponentEvent ce,
int column)
protected void onKeyDown(ComponentEvent ce,
int index)
protected void onRender(com.google.gwt.user.client.Element target,
int index)
Component
onRender in class Componenttarget - the target elementindex - the insert locationprotected java.lang.String renderHiddenHeaders(int[] columnWidths)
protected void selectHeader(int index)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||