|
||||||||||
| 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.sencha.gxt.widget.core.client.Component
com.sencha.gxt.widget.core.client.grid.ColumnHeader<M>
public class ColumnHeader<M>
A column header component.
| Nested Class Summary | |
|---|---|
static interface |
ColumnHeader.ColumnHeaderAppearance
|
static interface |
ColumnHeader.ColumnHeaderStyles
|
class |
ColumnHeader.GridSplitBar
|
class |
ColumnHeader.Group
|
class |
ColumnHeader.Head
|
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled |
| Field Summary |
|---|
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
ColumnHeader(Widget container,
ColumnModel<M> cm)
Creates a new column header. |
|
ColumnHeader(Widget container,
ColumnModel<M> cm,
ColumnHeader.ColumnHeaderAppearance appearance)
Creates a new column header. |
|
| Method Summary | |
|---|---|
ColumnHeader.ColumnHeaderAppearance |
getAppearance()
Returns the column header appearance. |
Widget |
getContainer()
Returns the header's container widget. |
ColumnHeader.Head |
getHead(int column)
Returns the head at the current index. |
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 |
isEnableColumnReorder()
Returns true if column reordering is enabled. |
void |
refresh()
Refreshes the columns. |
void |
release()
Do not call. |
void |
setEnableColumnReorder(boolean enable)
True to enable column reordering. |
void |
setEnableColumnResizing(boolean enable)
True to enable column resizing. |
void |
setHeader(int column,
SafeHtml header)
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 |
updateColumnHidden(int index,
boolean hidden)
Updates the visibility of a column. |
void |
updateColumnWidth(int column,
int width)
Updates the column width. |
void |
updateSortIcon(int colIndex,
SortDir dir)
Updates the sort icon of a column. |
void |
updateTotalWidth(int offset,
int width)
Updates the total width of the header. |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, getLayoutData, getParent, isAttached, removeFromParent, setLayoutData, sinkEvents |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleName, getStylePrimaryName, getTitle, isVisible, removeStyleDependentName, removeStyleName, setStyleDependentName, setStyleName, setStyleName, setStylePrimaryName, setTitle, setVisible, sinkBitlessEvent, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ColumnHeader(Widget container,
ColumnModel<M> cm)
container - the containing widgetcm - the column model
public ColumnHeader(Widget container,
ColumnModel<M> cm,
ColumnHeader.ColumnHeaderAppearance appearance)
container - the containing widgetcm - the column modelappearance - the column header appearance| Method Detail |
|---|
public Widget getContainer()
public ColumnHeader.Head getHead(int column)
column - the column index
public int getMinColumnWidth()
public int getSplitterWidth()
public int indexOf(ColumnHeader.Head head)
head - the column head
public boolean isEnableColumnReorder()
public ColumnHeader.ColumnHeaderAppearance getAppearance()
public void refresh()
public void release()
public void setEnableColumnReorder(boolean enable)
enable - true to enablepublic void setEnableColumnResizing(boolean enable)
enable - true to enable, otherwise false
public void setHeader(int column,
SafeHtml header)
column - the column indexheader - 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 index
public void updateColumnHidden(int index,
boolean hidden)
index - the column indexhidden - true to hide, otherwise false
public void updateColumnWidth(int column,
int width)
column - the column indexwidth - the new width
public void updateSortIcon(int colIndex,
SortDir dir)
colIndex - the column indexdir - the sort direction
public void updateTotalWidth(int offset,
int width)
offset - the offsetwidth - the new width
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||