|
||||||||||
| 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.Composite
org.jboss.errai.widgets.client.WSGrid
public class WSGrid
A Grid/Table implementation for working with structured data.
| Nested Class Summary | |
|---|---|
static class |
WSGrid.GridType
|
class |
WSGrid.WSAbstractGrid
This is the actual grid implementation. |
class |
WSGrid.WSCell
|
| 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 | |
|---|---|
WSGrid()
|
|
WSGrid(boolean scrollable,
boolean editable)
|
|
WSGrid(FocusManager fm)
|
|
| Method Summary | |
|---|---|
void |
addAfterCellChangeHandler(com.google.gwt.event.dom.client.ChangeHandler handler)
|
void |
addCellChangeHandler(com.google.gwt.event.dom.client.ChangeHandler handler)
Registers a ChangeHandler with the grid. |
void |
blurAll()
Blur all currently selected columns. |
void |
clear()
|
static void |
disableTextSelection(com.google.gwt.dom.client.Element elem,
boolean disable)
|
WSGrid.WSCell |
getCell(int row,
int col)
Returns an instance of the WSCell based on the row and col specified. |
int |
getCols()
Return the total number of columns in the grid. |
boolean |
getColumnSortOrder(int col)
Returns the sort order of the specified column. |
int |
getRowCount()
|
Stack<WSGrid.WSCell> |
getSelectionList()
|
WSGrid.WSCell |
getSortedColumnHeader()
If there is a sorted column, this will return an instance of the header cell for that sorted column. |
Map<Integer,Boolean> |
getSortedColumns()
|
int |
getTitlebarOffsetHeight()
Returns the offsite high of the title row |
static String |
getUserAgent()
|
void |
growWidth(int amount)
Increase or decrease the width by a relative amount. |
static boolean |
isEmpty(String input)
|
static boolean |
isNumeric(String input)
|
boolean |
isRowSelectionOnly()
|
void |
mergeSelected()
|
protected void |
onAttach()
|
void |
onResize()
|
void |
removeAfterCellChangeHandler(com.google.gwt.event.dom.client.ChangeHandler handler)
|
void |
removeCellChangeHandler(com.google.gwt.event.dom.client.ChangeHandler handler)
Removes a ChangeHandler from the grid. |
void |
removeRow(int row)
|
void |
setCell(int row,
int column,
String html)
|
void |
setCell(int row,
int column,
WSCellFormatter formatter)
|
void |
setColumnHeader(int row,
int column,
String html)
|
void |
setColumnWidth(int column,
int width)
Sets a column width (in pixels). |
void |
setEditable(boolean editable)
|
void |
setHeight(String height)
Sets the height of the grid. |
void |
setPixelSize(int width,
int height)
|
void |
setPreciseHeight(int height)
Sets the height of the grid in pixels |
void |
setPreciseWidth(int width)
Sets the width of the grid in pixels. |
void |
setRowHeight(int row,
int height)
|
void |
setRowSelectionOnly(boolean rowSelectionOnly)
|
void |
setScrollable(boolean scrollable)
|
void |
setWidth(String width)
Set thes the width of the grid. |
void |
sizeToParent()
|
| Methods inherited from class com.google.gwt.user.client.ui.Composite |
|---|
getWidget, initWidget, isAttached, onBrowserEvent, onDetach, setWidget |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
addAttachHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, 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, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public WSGrid()
public WSGrid(FocusManager fm)
public WSGrid(boolean scrollable,
boolean editable)
| Method Detail |
|---|
public void setScrollable(boolean scrollable)
public void setEditable(boolean editable)
public int getRowCount()
public void removeRow(int row)
public void setColumnHeader(int row,
int column,
String html)
public void setCell(int row,
int column,
String html)
public void setCell(int row,
int column,
WSCellFormatter formatter)
public int getCols()
public void blurAll()
public void setRowHeight(int row,
int height)
public void setColumnWidth(int column,
int width)
column - - the columnwidth - - the width in pixels
public WSGrid.WSCell getCell(int row,
int col)
row - - the rowcol - - the column
public void clear()
public int getTitlebarOffsetHeight()
public void setHeight(String height)
setHeight in class com.google.gwt.user.client.ui.UIObjectheight - CSS height string.public void setPreciseHeight(int height)
height - The height in pixelspublic void setWidth(String width)
setWidth in class com.google.gwt.user.client.ui.UIObjectwidth - The CSS width string.public void setPreciseWidth(int width)
width - The width in pixels.
public void setPixelSize(int width,
int height)
setPixelSize in class com.google.gwt.user.client.ui.UIObjectpublic void sizeToParent()
public void growWidth(int amount)
amount - Size in pixels.public Map<Integer,Boolean> getSortedColumns()
public WSGrid.WSCell getSortedColumnHeader()
public boolean getColumnSortOrder(int col)
col - The column.
public void addCellChangeHandler(com.google.gwt.event.dom.client.ChangeHandler handler)
ChangeHandler with the grid.
handler - -public void addAfterCellChangeHandler(com.google.gwt.event.dom.client.ChangeHandler handler)
public void removeCellChangeHandler(com.google.gwt.event.dom.client.ChangeHandler handler)
ChangeHandler from the grid.
handler - -public void removeAfterCellChangeHandler(com.google.gwt.event.dom.client.ChangeHandler handler)
public void mergeSelected()
protected void onAttach()
onAttach in class com.google.gwt.user.client.ui.Compositepublic void onResize()
onResize in interface com.google.gwt.user.client.ui.RequiresResize
public static void disableTextSelection(com.google.gwt.dom.client.Element elem,
boolean disable)
public Stack<WSGrid.WSCell> getSelectionList()
public boolean isRowSelectionOnly()
public void setRowSelectionOnly(boolean rowSelectionOnly)
public static String getUserAgent()
public static boolean isNumeric(String input)
public static boolean isEmpty(String input)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||