|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.rim.device.api.ui.Field
net.rim.device.api.ui.ScrollView
net.rim.device.api.ui.Manager
net.rim.device.api.ui.component.table.DataView
net.rim.device.api.ui.component.table.TableView
public class TableView
A view interface for TableView as part of a Model-View-Controller paradigm. Implementations of TableView should handle painting, layout and focus events.
| Field Summary |
|---|
| Fields inherited from class net.rim.device.api.ui.Manager |
|---|
BOTTOMMOST, DOWNWARD, HORIZONTAL_SCROLL, HORIZONTAL_SCROLLBAR, HORIZONTAL_SCROLLBAR_MASK, HORIZONTAL_SCROLL_MASK, LEAVE_BLANK_SPACE, LEFTMOST, LEFTWARD, NO_HORIZONTAL_SCROLL, NO_HORIZONTAL_SCROLLBAR, NO_SCROLL_RESET, NO_VERTICAL_SCROLL, NO_VERTICAL_SCROLLBAR, QUANTA_FONT, RIGHTMOST, RIGHTWARD, TOPMOST, UPWARD, VERTICAL_SCROLL, VERTICAL_SCROLLBAR, VERTICAL_SCROLLBAR_MASK, VERTICAL_SCROLL_MASK |
| Constructor Summary | ||
|---|---|---|
TableView(DataModel model)
Creates a TableView instance attached to a specific DataModel object. |
||
| Method Summary | ||
|---|---|---|
void |
addDockedHeader(Field field)
Creates a docked header field onto the TableView. |
|
Background |
getDataTemplateFocus()
Retrieves a Background object that describes the background look of a DataTemplate that has focus. |
|
int |
getRegionNumberWithFocus()
Get the region number that has focus. |
|
int |
getRowNumberWithFocus()
Retrieves the model row index that corresponds to a DataTemplate that currently has focus. |
|
protected boolean |
modelChanged(DataModelChangeEvent event)
Processes a DataModelChangeEvent that the DataView listens for. |
|
void |
setDataTemplateFocus(Background focusBackground)
Set a Background object that will describe the background look of a DataTemplate that has focus. |
|
protected void |
sublayout(int width,
int height)
This method organizes the layout out of the contents of this TableView object. |
|
| Methods inherited from class net.rim.device.api.ui.component.table.DataView |
|---|
getController, getDataTemplate, getDataTemplate, getModel, setController, setDataTemplate, setDataTemplate, setModel |
| Methods inherited from class net.rim.device.api.ui.ScrollView |
|---|
configurationChanged, getHorizontalAdjustment, getVerticalAdjustment, getVisibleHeight, getVisibleWidth, onDisplay, onExposed, onUndisplay, setCurrentLocation, setExtent, setHorizontalAdjustment, setHorizontalScroll, setHorizontalScroll, setScrollListener, setVerticalAdjustment, setVerticalScroll, setVerticalScroll, valueChanged, waitForScrolling |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TableView(DataModel model)
model - A specific DataModel object
IllegalArgumentException - If model is passed in as null.| Method Detail |
|---|
protected void sublayout(int width,
int height)
sublayout in class Managerwidth - The width in pixels available for layoutheight - The height in pixels available for layoutpublic void addDockedHeader(Field field)
field - A Field object that will serve as a docked header.public Background getDataTemplateFocus()
public void setDataTemplateFocus(Background focusBackground)
focusBackground - A Background object which describes the background look of a Datatemplate that has focus.public int getRowNumberWithFocus()
public int getRegionNumberWithFocus()
protected boolean modelChanged(DataModelChangeEvent event)
DataModelChangeEvent.MODEL_RESET,
TableModelChangeEvent.ELEMENT_UPDATED, TableModelChangeEvent.COLUMN_ADDED,
TableModelChangeEvent.COLUMN_REMOVED, TableModelChangeEvent.COLUMN_UPDATED,
TableModelChangeEvent.ROW_ADDED, TableModelChangeEvent.ROW_REMOVED and
TableModelChangeEvent.ROW_UPDATED
It should be overridden to process other events.
modelChanged in class DataViewevent - An object that contains the relevant data regarding a change in the DataModel
to which this DataView is attached
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal