|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.rim.device.api.ui.component.table.DataModel
net.rim.device.api.ui.component.table.AbstractTableModel
net.rim.device.api.ui.component.table.TableModelAdapter
public abstract class TableModelAdapter
Abstract child class of AbstractTableModel that overrides all methods
except for getNumberOfColumns() and getNumberOfRows().
Can be used to create adapters for displaying any type of data in a
table.
| Constructor Summary | ||
|---|---|---|
TableModelAdapter()
|
||
| Method Summary | ||
|---|---|---|
protected boolean |
doAddColumn(Object data)
This method provides the ability to customize the logic behind addColumn()
so that a developer can specify this behavior while still ensuring that necessary
notification and exception handling overheads can occur as well. |
|
protected boolean |
doAddRow(Object Data)
This method provides the ability to customize the logic behind addRow()
so that a developer can specify this behavior while still ensuring that necessary
notification and exception handling overheads can occur as well. |
|
protected Object |
doGetColumn(int columnIndex)
This method provides the ability to customize the logic behind getColumn()
so that a developer can specify this behavior while still ensuring that necessary
notification and exception handling overheads can occur as well. |
|
protected Object |
doGetElement(int rowIndex,
int columnIndex)
This method provides the ability to customize the logic behind getElement()
so that a developer can specify this behavior while still ensuring that necessary
notification and exception handling overheads can occur as well. |
|
protected Object |
doGetRow(int rowIndex)
This method provides the ability to customize the logic behind getRow()
so that a developer can specify this behavior while still ensuring that necessary
notification and exception handling overheads can occur as well. |
|
protected boolean |
doInsertColumnAt(int columnIndex,
Object data)
This method provides the ability to customize the logic behind insertColumnAt()
so that a developer can specify this behavior while still ensuring that necessary
notification and exception handling overheads can occur as well. |
|
protected boolean |
doInsertRowAt(int rowIndex,
Object data)
This method provides the ability to customize the logic behind insertRowAt()
so that a developer can specify this behavior while still ensuring that necessary
notification and exception handling overheads can occur as well. |
|
protected boolean |
doRemoveColumnAt(int columnIndex)
This method provides the ability to customize the logic behind removeColumnAt()
so that a developer can specify this behavior while still ensuring that necessary
notification and exception handling overheads can occur as well. |
|
protected boolean |
doRemoveRowAt(int rowIndex)
This method provides the ability to customize the logic behind removeRowAt()
so that a developer can specify this behavior while still ensuring that necessary
notification and exception handling overheads can occur as well. |
|
protected boolean |
doSetElement(int rowIndex,
int columnIndex,
Object data)
This method provides the ability to customize the logic behind setElement()
so that a developer can specify this behavior while still ensuring that necessary
notification and exception handling overheads can occur as well. |
|
| Methods inherited from class net.rim.device.api.ui.component.table.AbstractTableModel |
|---|
addColumn, addColumn, addRow, addRow, getColumn, getElement, getNumberOfColumns, getNumberOfRows, getRow, insertColumnAt, insertColumnAt, insertRowAt, insertRowAt, removeColumnAt, removeColumnAt, removeRowAt, removeRowAt, setElement, setElement |
| Methods inherited from class net.rim.device.api.ui.component.table.DataModel |
|---|
modelReset, notifyListeners, registerListener, unregisterListener |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TableModelAdapter()
| Method Detail |
|---|
protected Object doGetColumn(int columnIndex)
AbstractTableModelgetColumn()
so that a developer can specify this behavior while still ensuring that necessary
notification and exception handling overheads can occur as well. This way, the general
structure of the overall getColumn() algorithm doesn’t change, while allowing
key behavior to be configurable.
doGetColumn in class AbstractTableModelcolumnIndex - Column index to retreive the elements from.
AbstractTableModel.doGetColumn(int)protected Object doGetRow(int rowIndex)
AbstractTableModelgetRow()
so that a developer can specify this behavior while still ensuring that necessary
notification and exception handling overheads can occur as well. This way, the general
structure of the overall getRow() algorithm doesn’t change, while allowing
key behavior to be configurable.
doGetRow in class AbstractTableModelrowIndex - Row index to retrieve the elements from.
AbstractTableModel.doGetRow(int)
protected Object doGetElement(int rowIndex,
int columnIndex)
AbstractTableModelgetElement()
so that a developer can specify this behavior while still ensuring that necessary
notification and exception handling overheads can occur as well. This way, the general
structure of the overall getElement() algorithm doesn’t change, while allowing
key behavior to be configurable.
doGetElement in class AbstractTableModelrowIndex - Row index to retrieve the element from.columnIndex - Column index to retrieve the elements from.
AbstractTableModel.doGetElement(int, int)protected boolean doAddColumn(Object data)
AbstractTableModeladdColumn()
so that a developer can specify this behavior while still ensuring that necessary
notification and exception handling overheads can occur as well. This way, the general
structure of the overall addColumn() algorithm doesn’t change, while allowing
key behavior to be configurable.
doAddColumn in class AbstractTableModeldata - The column data to be added to the model.
AbstractTableModel.doAddColumn(Object)protected boolean doAddRow(Object Data)
AbstractTableModeladdRow()
so that a developer can specify this behavior while still ensuring that necessary
notification and exception handling overheads can occur as well. This way, the general
structure of the overall addRow() algorithm doesn’t change, while allowing
key behavior to be configurable.
doAddRow in class AbstractTableModelAbstractTableModel.doAddRow(Object)protected boolean doRemoveColumnAt(int columnIndex)
AbstractTableModelremoveColumnAt()
so that a developer can specify this behavior while still ensuring that necessary
notification and exception handling overheads can occur as well. This way, the general
structure of the overall removeColumnAt() algorithm doesn’t change, while allowing
key behavior to be configurable.
doRemoveColumnAt in class AbstractTableModelcolumnIndex - The index of the column to be removed.
AbstractTableModel.doRemoveColumnAt(int)protected boolean doRemoveRowAt(int rowIndex)
AbstractTableModelremoveRowAt()
so that a developer can specify this behavior while still ensuring that necessary
notification and exception handling overheads can occur as well. This way, the general
structure of the overall removeRowAt() algorithm doesn’t change, while allowing
key behavior to be configurable.
doRemoveRowAt in class AbstractTableModelrowIndex - The index of the row to be removed.
AbstractTableModel.doRemoveRowAt(int)
protected boolean doInsertColumnAt(int columnIndex,
Object data)
AbstractTableModelinsertColumnAt()
so that a developer can specify this behavior while still ensuring that necessary
notification and exception handling overheads can occur as well. This way, the general
structure of the overall insertColumnAt() algorithm doesn’t change, while allowing
key behavior to be configurable.
doInsertColumnAt in class AbstractTableModelcolumnIndex - Index at which to insert the column.data - Column of data to be inserted.
AbstractTableModel.doInsertColumnAt(int, Object)
protected boolean doInsertRowAt(int rowIndex,
Object data)
AbstractTableModelinsertRowAt()
so that a developer can specify this behavior while still ensuring that necessary
notification and exception handling overheads can occur as well. This way, the general
structure of the overall insertRowAt() algorithm doesn’t change, while allowing
key behavior to be configurable.
doInsertRowAt in class AbstractTableModeldata - Column of data to be inserted.
AbstractTableModel.doInsertRowAt(int, Object)
protected boolean doSetElement(int rowIndex,
int columnIndex,
Object data)
AbstractTableModelsetElement()
so that a developer can specify this behavior while still ensuring that necessary
notification and exception handling overheads can occur as well. This way, the general
structure of the overall setElement() algorithm doesn’t change, while allowing
key behavior to be configurable.
doSetElement in class AbstractTableModelrowIndex - Index of row in which to insert.columnIndex - Index of column in which to insert.data - Element of data to insert.
AbstractTableModel.doSetElement(int, int, Object)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2010 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark of Sun Microsystems, Inc.