Oracle JEWT API Reference
Release 4.2.24.0.0
B12199-01

oracle.bali.ewt.model
Class NullTwoDModel

java.lang.Object
  |
  +--oracle.bali.ewt.model.NullTwoDModel
All Implemented Interfaces:
TwoDModel

public class NullTwoDModel
extends java.lang.Object
implements TwoDModel

A NullTwoDModel is an data source that contains no rows or columns and always returns null from getData.

It is a singleton class so clients should call NullTwoDModel.getTwoDModel() to get the only instance.

NullTwoDModel is used only by the Grid for its default constructor.

See Also:
ArrayTwoDModel, Grid

Method Summary
 void addModelListener(TwoDModelListener listener)
          Add a TwoDModelListener to this TwoDModel.
 int getColumnCount()
          Get the number of columns.
 java.lang.Object getData(int columnIndex, int rowIndex)
          Return the data of the cell.
 int getRowCount()
          Get the number of rows.
static TwoDModel getTwoDModel()
          Get the only instance of this class.
 void removeModelListener(TwoDModelListener listener)
          Remove a TwoDModelListener from this TwoDModel.
 void setData(int columnIndex, int rowIndex, java.lang.Object data)
          Set the cell data to the new value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getTwoDModel

public static TwoDModel getTwoDModel()
Get the only instance of this class.

getColumnCount

public int getColumnCount()
Get the number of columns. Always return 0.
Specified by:
getColumnCount in interface TwoDModel

getRowCount

public int getRowCount()
Get the number of rows. Always return 0.
Specified by:
getRowCount in interface TwoDModel

getData

public java.lang.Object getData(int columnIndex,
                                int rowIndex)
Return the data of the cell. Always return null.
Specified by:
getData in interface TwoDModel
Following copied from interface: oracle.bali.ewt.model.TwoDModel
Parameters:
columnIndex - the column index of the cell
rowIndex - the row index of the cell

setData

public void setData(int columnIndex,
                    int rowIndex,
                    java.lang.Object data)
Set the cell data to the new value. Does nothing.
Specified by:
setData in interface TwoDModel
Following copied from interface: oracle.bali.ewt.model.TwoDModel
Parameters:
columnIndex - the column index of the cell
rowIndex - the row index of the cell
data - the new data

addModelListener

public void addModelListener(TwoDModelListener listener)
Add a TwoDModelListener to this TwoDModel. Does nothing.
Specified by:
addModelListener in interface TwoDModel
Following copied from interface: oracle.bali.ewt.model.TwoDModel
Parameters:
listener - new listener

removeModelListener

public void removeModelListener(TwoDModelListener listener)
Remove a TwoDModelListener from this TwoDModel. Does nothing.
Specified by:
removeModelListener in interface TwoDModel
Following copied from interface: oracle.bali.ewt.model.TwoDModel
Parameters:
listener - new listener

Oracle JEWT 4.2.24

Copyright © [xxxx],2003, Oracle. All Rights Reserved.