com.sage.swt.client.widget.table
Class CellDataCallback

java.lang.Object
  extended by com.sage.swt.client.widget.table.CellDataCallback
All Implemented Interfaces:
ICellDataCallback, IRowDataCallback

public class CellDataCallback
extends java.lang.Object
implements ICellDataCallback

Interface for the callback for row action.


Constructor Summary
CellDataCallback()
          Default Constructor
CellDataCallback(java.lang.Integer rowIndex, RowDataColumnDefinition def)
          Constructor
CellDataCallback(java.lang.Integer rowIndex, RowDataColumnDefinition def, ICellDataCallback callback)
          Constructor
 
Method Summary
 ICellDataCallback getCallback()
          
 RowDataColumnDefinition getColumnDefinition()
          Get the column definition
 java.lang.Integer getRowIndex()
          Get the row index
 void onFailure()
          Called when the data request has failed.
 void onFailure(boolean handled)
          Called when the data request has failed.
 void onSuccess()
          Called when the data request was successful.
 void onSuccess(boolean handled)
          Called when the data request has succeeded.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CellDataCallback

public CellDataCallback()
Default Constructor


CellDataCallback

public CellDataCallback(java.lang.Integer rowIndex,
                        RowDataColumnDefinition def)
Constructor

Parameters:
rowIndex - the row index of table model
def - column definition

CellDataCallback

public CellDataCallback(java.lang.Integer rowIndex,
                        RowDataColumnDefinition def,
                        ICellDataCallback callback)
Constructor

Parameters:
rowIndex - the row index of table model
def - column definition
callback - callback
Method Detail

onSuccess

public void onSuccess()
Called when the data request was successful.

Specified by:
onSuccess in interface IRowDataCallback

onSuccess

public void onSuccess(boolean handled)
Called when the data request has succeeded.

Specified by:
onSuccess in interface ICellDataCallback
Parameters:
handled - the error has already been handled in the callback

onFailure

public void onFailure()
Called when the data request has failed.

Specified by:
onFailure in interface IRowDataCallback

onFailure

public void onFailure(boolean handled)
Called when the data request has failed.

Specified by:
onFailure in interface ICellDataCallback
Parameters:
handled - the error has already been handled in the callback

getRowIndex

public java.lang.Integer getRowIndex()
Get the row index

Specified by:
getRowIndex in interface IRowDataCallback
Returns:
row index

getColumnDefinition

public RowDataColumnDefinition getColumnDefinition()
Get the column definition

Specified by:
getColumnDefinition in interface IRowDataCallback
Returns:
column definition

getCallback

public ICellDataCallback getCallback()

Specified by:
getCallback in interface IRowDataCallback
Returns:
callback


Copyright © 2011 Sage Software, Inc. All rights reserved.