com.extjs.gxt.ui.client.event
Class GridEvent<M extends ModelData>

java.lang.Object
  extended by com.extjs.gxt.ui.client.event.BaseEvent
      extended by com.extjs.gxt.ui.client.event.DomEvent
          extended by com.extjs.gxt.ui.client.event.ComponentEvent
              extended by com.extjs.gxt.ui.client.event.BoxComponentEvent
                  extended by com.extjs.gxt.ui.client.event.GridEvent<M>
Direct Known Subclasses:
LiveGridEvent, TreeGridEvent

public class GridEvent<M extends ModelData>
extends BoxComponentEvent

Grid event type.

See Also:
Grid

Field Summary
protected  M model
           
 
Fields inherited from class com.extjs.gxt.ui.client.event.DomEvent
event
 
Constructor Summary
GridEvent(Grid<M> grid)
           
GridEvent(Grid<M> grid, com.google.gwt.user.client.Event event)
           
 
Method Summary
 int getColIndex()
          Returns the column index.
 Grid<M> getGrid()
          Returns the source grid.
 Menu getMenu()
          Returns the menu.
 M getModel()
          Returns the model.
 java.lang.String getProperty()
          Returns the property name.
 Record getRecord()
          Returns the record.
 int getRowIndex()
          Returns the row index.
 int getScrollLeft()
          Returns the scroll left value.
 int getScrollTop()
          Returns the scroll top value.
 SortInfo getSortInfo()
          Returns the sort info.
 java.lang.Object getStartValue()
          Returns the start value.
 java.lang.Object getValue()
          Returns the value.
 int getWidth()
          Returns the width.
 void setColIndex(int colIndex)
          Sets the column index.
 void setGrid(Grid<M> grid)
          Sets the source grid.
 void setMenu(Menu menu)
          Sets the menu.
 void setModel(M model)
          Sets the model.
 void setProperty(java.lang.String property)
          Sets the property name.
 void setRecord(Record record)
          Sets the record.
 void setRowIndex(int rowIndex)
          Sets the row index.
 void setScrollLeft(int scrollLeft)
          Sets the scroll left value.
 void setScrollTop(int scrollTop)
          Sets the scroll top value.
 void setSortInfo(SortInfo sortInfo)
          Sets the sort info.
 void setStartValue(java.lang.Object startValue)
          Sets the start value.
 void setValue(java.lang.Object value)
          Sets the value.
 void setWidth(int width)
          Sets the width.
 
Methods inherited from class com.extjs.gxt.ui.client.event.BoxComponentEvent
getBoxComponent, getHeight, getSize, getX, getY, setBoxComponent, setHeight, setSize, setX, setY
 
Methods inherited from class com.extjs.gxt.ui.client.event.ComponentEvent
getComponent, getState, setComponent, setState
 
Methods inherited from class com.extjs.gxt.ui.client.event.DomEvent
cancelBubble, getClientX, getClientY, getEvent, getEventTypeInt, getKeyCode, getTarget, getTarget, getTargetEl, getXY, hasModifier, isAltKey, isControlKey, isNavKeyPress, isNavKeyPress, isRightClick, isShiftKey, isSpecialKey, isSpecialKey, preventDefault, setEvent, stopEvent, within, within
 
Methods inherited from class com.extjs.gxt.ui.client.event.BaseEvent
getSource, getType, isCancelled, setCancelled, setSource, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

model

protected M extends ModelData model
Constructor Detail

GridEvent

public GridEvent(Grid<M> grid)

GridEvent

public GridEvent(Grid<M> grid,
                 com.google.gwt.user.client.Event event)
Method Detail

getColIndex

public int getColIndex()
Returns the column index.

Returns:
the column index

getGrid

public Grid<M> getGrid()
Returns the source grid.

Returns:
the source grid

getMenu

public Menu getMenu()
Returns the menu.

Returns:
the menu

getModel

public M getModel()
Returns the model.

Returns:
the model

getProperty

public java.lang.String getProperty()
Returns the property name.

Returns:
the property name

getRecord

public Record getRecord()
Returns the record.

Returns:
the record

getRowIndex

public int getRowIndex()
Returns the row index.

Returns:
the row index

getScrollLeft

public int getScrollLeft()
Returns the scroll left value.

Returns:
the scroll left value

getScrollTop

public int getScrollTop()
Returns the scroll top value.

Returns:
the scroll top value

getSortInfo

public SortInfo getSortInfo()
Returns the sort info.

Returns:
the sort info

getStartValue

public java.lang.Object getStartValue()
Returns the start value.

Returns:
the start value

getValue

public java.lang.Object getValue()
Returns the value.

Returns:
the value

getWidth

public int getWidth()
Returns the width.

Overrides:
getWidth in class BoxComponentEvent
Returns:
the width

setColIndex

public void setColIndex(int colIndex)
Sets the column index.

Parameters:
colIndex - the column index

setGrid

public void setGrid(Grid<M> grid)
Sets the source grid.

Parameters:
grid - the source grid

setMenu

public void setMenu(Menu menu)
Sets the menu.

Parameters:
menu - the menu

setModel

public void setModel(M model)
Sets the model.

Parameters:
model - the model

setProperty

public void setProperty(java.lang.String property)
Sets the property name.

Parameters:
property - the property name

setRecord

public void setRecord(Record record)
Sets the record.

Parameters:
record - the record

setRowIndex

public void setRowIndex(int rowIndex)
Sets the row index.

Parameters:
rowIndex - the row index

setScrollLeft

public void setScrollLeft(int scrollLeft)
Sets the scroll left value.

Parameters:
scrollLeft - the scroll left value

setScrollTop

public void setScrollTop(int scrollTop)
Sets the scroll top value.

Parameters:
scrollTop - the scroll top value

setSortInfo

public void setSortInfo(SortInfo sortInfo)
Sets the sort info.

Parameters:
sortInfo - the sort info

setStartValue

public void setStartValue(java.lang.Object startValue)
Sets the start value.

Parameters:
startValue - the start value

setValue

public void setValue(java.lang.Object value)
Sets the value.

Parameters:
value - the value

setWidth

public void setWidth(int width)
Sets the width.

Overrides:
setWidth in class BoxComponentEvent
Parameters:
width - the width