com.sibvisions.rad.ui.gwt.client.widget.grid
Class GVxGrid<M extends TableRow>

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.extjs.gxt.ui.client.widget.Component
              extended by com.extjs.gxt.ui.client.widget.BoxComponent
                  extended by com.extjs.gxt.ui.client.widget.grid.Grid<M>
                      extended by com.extjs.gxt.ui.client.widget.grid.EditorGrid<M>
                          extended by com.sibvisions.rad.ui.gwt.client.widget.grid.GVxGrid<M>
Type Parameters:
M - the ModelData implementation
All Implemented Interfaces:
Observable, HasHandlers, EventListener

public class GVxGrid<M extends TableRow>
extends EditorGrid<M>

The GVxGrid is a EditorGrid which interacts with a remote service to retrieve data and column configuration.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.extjs.gxt.ui.client.widget.grid.EditorGrid
EditorGrid.ClicksToEdit
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
 
Field Summary
 
Fields inherited from class com.extjs.gxt.ui.client.widget.grid.Grid
cm, editSupport, sm, store, stringProvider, view, viewReady
 
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, 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
GVxGrid()
          Creates a new instance of GVxGrid with default settings.
 
Method Summary
 void cancel()
          Rejects all changes.
 void delete()
          Deletes the current selection.
 EditorSupport<M> getEditSupport()
          
 List<ColumnMetaData> getMetaData()
          Gets the column meta data for this grid.
 void insert()
          Forces the current data operation to finish and starts inserting after the operation is finished.
 boolean isLoaded()
          Returns whether this grid is loaded with data.
 boolean isReadOnly()
          Gets whether the grid is read only.
 boolean isSendRowChanged()
          Gets whether the row changed event will be sent to the server.
 El mask(String pMessage, String pMessageStyleName)
          
 void onAfterRenderView()
          
 void onRender(Element pParent, int pIndex)
          
 void reconfigure(ListStore<M> pStore, ColumnModel pModel)
          
 void reload(int pRow, boolean pReloadData)
          Reloads table data.
 void setAutoResize(boolean pAutoResize)
          Sets the table columns to automatic resize.
 void setMetaData(List<ColumnMetaData> pColumns)
          Sets the column meta data for this grid.
 void setReadOnly(boolean pReadOnly)
          Sets the grid read only.
 void setSendRowChanged(boolean pSend)
          Sets whether to send row changed events to the server.
 void startEditing(int pRow, int pColumn)
          
 void unmask()
          
 
Methods inherited from class com.extjs.gxt.ui.client.widget.grid.EditorGrid
getActiveEditor, getClicksToEdit, isEditing, onDoubleClick, setClicksToEdit, stopEditing, stopEditing
 
Methods inherited from class com.extjs.gxt.ui.client.widget.grid.Grid
afterRender, afterRenderView, applyState, createComponentEvent, disableTextSelection, doAttachChildren, doDetachChildren, getAutoExpandColumn, getAutoExpandMax, getAutoExpandMin, getColumnModel, getLazyRowRender, getMinColumnWidth, getModelProcessor, getSelectionModel, getStore, getView, isEnableColumnResize, isHideHeaders, isLoadMask, isStripeRows, isTrackMouseOver, isViewReady, notifyHide, notifyShow, onClick, onComponentEvent, onDisable, onEnable, onMouseDown, onMouseUp, onResize, setAutoExpandColumn, setAutoExpandMax, setAutoExpandMin, setEnableColumnResize, setHideHeaders, setLazyRowRender, setLoadMask, setMinColumnWidth, setModelProcessor, setSelectionModel, setStringProvider, setStripeRows, setTrackMouseOver, setView, walkCells
 
Methods inherited from class com.extjs.gxt.ui.client.widget.BoxComponent
adjustPosition, adjustSize, getBounds, getHeight, getHeight, getPosition, getPositionEl, getResizeEl, getShadow, getShadowOffset, getShadowPosition, getSize, getWidth, getWidth, hideShadow, hideShim, hideUnders, isAutoHeight, isAutoWidth, isDeferHeight, isShim, onHide, onPosition, 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.extjs.gxt.ui.client.widget.Component
addAttachable, addListener, addPlugin, addStyleName, addStyleOnOver, addWidgetListener, assertAfterRender, assertPreRender, beforeRender, blur, clearState, createObservable, createStyles, disable, disableContextMenu, disableEvents, el, enable, enableEvents, fireEvent, fireEvent, fireEvent, fly, focus, frame, getAriaDescribedBy, getAriaLabelledBy, getBaseStyle, getBorders, getContextMenu, getData, getElement, getFocusEl, getHideMode, getId, getItemId, getListeners, getModel, getObservable, getPlugins, getState, getStateId, getTabIndex, getTitle, getToolTip, getWindowResizeDelay, hasListeners, hasListeners, hide, hideToolTip, initState, isAriaIgnore, isDisabledEvents, isDisableTextSelection, isEnabled, isMasked, isMonitorWindowResize, isRendered, isStateful, isVisible, isVisible, mask, mask, onAttach, onBrowserEvent, onDetach, onDetachHelper, onEnsureDebugId, onHideContextMenu, onLoad, onRightClick, onShowContextMenu, onWindowResize, previewEvent, recalculate, removeAllListeners, removeAttachagle, removeFromParent, removeListener, removeStyleName, removeStyleOnOver, removeSwallow, removeToolTip, removeWidgetListener, render, render, repaint, saveState, setAriaDescribedBy, setAriaIgnore, setAriaLabelledBy, setBorders, setContextMenu, setData, setEl, setElement, setElement, setEnabled, setFiresEvents, setHideMode, setId, setIntStyleAttribute, setItemId, setModel, setMonitorWindowResize, setParent, setStateful, setStateId, setStyleAttribute, setStyleName, setTabIndex, setTitle, setToolTip, setToolTip, setVisible, setWindowResizeDelay, setZIndex, show, sinkEvents, swallowEvent, swallowEvent, toString, unframe
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addDomHandler, addHandler, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, setLayoutData
 
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, setElement, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GVxGrid

public GVxGrid()
Creates a new instance of GVxGrid with default settings.

Method Detail

onRender

public void onRender(Element pParent,
                     int pIndex)

Overrides:
onRender in class EditorGrid<M extends TableRow>

onAfterRenderView

public void onAfterRenderView()

Overrides:
onAfterRenderView in class Grid<M extends TableRow>

reconfigure

public void reconfigure(ListStore<M> pStore,
                        ColumnModel pModel)

Overrides:
reconfigure in class EditorGrid<M extends TableRow>

getEditSupport

public EditorSupport<M> getEditSupport()

Overrides:
getEditSupport in class Grid<M extends TableRow>

startEditing

public void startEditing(int pRow,
                         int pColumn)

Overrides:
startEditing in class EditorGrid<M extends TableRow>

mask

public El mask(String pMessage,
               String pMessageStyleName)

Overrides:
mask in class Component

unmask

public void unmask()

Overrides:
unmask in class Component

setMetaData

public void setMetaData(List<ColumnMetaData> pColumns)
Sets the column meta data for this grid.

Parameters:
pColumns - the column meta data

getMetaData

public List<ColumnMetaData> getMetaData()
Gets the column meta data for this grid.

Returns:
the column meta data

insert

public void insert()
Forces the current data operation to finish and starts inserting after the operation is finished.


cancel

public void cancel()
Rejects all changes.


delete

public void delete()
Deletes the current selection.


setAutoResize

public void setAutoResize(boolean pAutoResize)
Sets the table columns to automatic resize.

Parameters:
pAutoResize - true to enable auto resize, false otherwise

reload

public void reload(int pRow,
                   boolean pReloadData)
Reloads table data.

Parameters:
pRow - the row to reload or -1 to reload the whole table.
pReloadData - true to reload the data on server before sending it to the client

setReadOnly

public void setReadOnly(boolean pReadOnly)
Sets the grid read only.

Parameters:
pReadOnly - true for read only, false otherwise

isReadOnly

public boolean isReadOnly()
Gets whether the grid is read only.

Returns:
true for read only, false otherwise

setSendRowChanged

public void setSendRowChanged(boolean pSend)
Sets whether to send row changed events to the server.

Parameters:
pSend - true to send the event to the server, false to ignore the event

isSendRowChanged

public boolean isSendRowChanged()
Gets whether the row changed event will be sent to the server.

Returns:
true if the event will be sent, false otherwise

isLoaded

public boolean isLoaded()
Returns whether this grid is loaded with data.

Returns:
true if the grid is loaded


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.