|
Oracle Application Development Framework Model and Business Components Java API Reference VERSION B16005-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
oracle.jbo.client.wm.TableUIDataSourceImpl
Use this class to store values to be displayed in a table. Use the setter methods to specify data values and display attributes. The getter methods will be called by the table rendering routines.
| Field Summary | |
protected oracle.jbo.client.wm.Column[] |
columns |
protected int |
indexOfFirstVisibleRow |
protected java.util.Vector |
rows |
| Fields inherited from interface oracle.jbo.client.wm.TableUIDataSource |
ALIGN_AUTOMATIC, ALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT, LAYOUT_HORIZONTAL, LAYOUT_VERTICAL, TYPE_BUTTON, TYPE_FORMVALUE, TYPE_IMAGE, TYPE_IMAGELINK, TYPE_LINK, TYPE_MULTIVALUE, TYPE_NUMBER_LINK |
| Fields inherited from interface oracle.jbo.client.wm.TwoDDataSource |
NOT_SORTABLE, NOT_SORTED, SORTED_ASCENDING, SORTED_DESCENDING, TYPE_BOOLEAN, TYPE_DATE, TYPE_ENUM, TYPE_NUMBER, TYPE_TEXT |
| Constructor Summary | |
TableUIDataSourceImpl(int[] columnTypes)Constructor declaration |
|
| Method Summary | |
void |
addRows(int howMany)This method must be called before you can set cell values. |
protected oracle.jbo.client.wm.Cell[] |
createRow()Method declaration |
int |
getColumnAlignment(int columnIndex)Method declaration |
int |
getColumnCount()Method declaration |
java.lang.String[] |
getColumnNames()Method declaration |
int |
getColumnSortingStatus(int columnIndex)Method declaration |
int |
getColumnType(int columnIndex)Method declaration |
java.lang.Object |
getDataAt(int rowIndex, int columnIndex)Method declaration |
java.lang.Object |
getDataAt(int rowIndex, int columnIndex, int itemIndex)Method declaration |
java.text.DateFormat |
getDateFormat(int columnIndex)Method declaration |
java.lang.String[] |
getEnumValues(int columnIndex)Method declaration |
java.lang.String |
getFormValueName(int columnIndex)Method declaration |
java.lang.String |
getImageAt(int rowIndex, int columnIndex)Method declaration |
java.lang.String |
getImageAt(int rowIndex, int columnIndex, int itemIndex)Method declaration |
java.lang.String |
getImageHeightAt(int rowIndex, int columnIndex)Method declaration |
java.lang.String |
getImageHeightAt(int rowIndex, int columnIndex, int itemIndex)Method declaration |
java.lang.String |
getImageWidthAt(int rowIndex, int columnIndex)Method declaration |
java.lang.String |
getImageWidthAt(int rowIndex, int columnIndex, int itemIndex)Method declaration |
int |
getIndexOfFirstVisibleRow()Method declaration |
int |
getItemCount(int columnIndex)Method declaration |
int |
getItemLayout(int columnIndex)Method declaration |
int |
getItemSpacing(int columnIndex)Method declaration |
int |
getItemType(int columnIndex, int itemIndex)Method declaration |
int |
getMaximumLength(int columnIndex)Method declaration |
int |
getRowCount()Method declaration |
java.lang.String |
getUrlAt(int rowIndex, int columnIndex)Method declaration |
java.lang.String |
getUrlAt(int rowIndex, int columnIndex, int itemIndex)Method declaration |
void |
insertRowAt(int index)Method declaration |
boolean |
isColumnHidden(int columnIndex)Method declaration |
boolean |
isReadOnly(int rowIndex, int columnIndex)Method declaration |
void |
moveRow(int oldIndex, int newIndex)Method declaration |
void |
removeAllRows()Method declaration |
void |
removeRowAt(int index)Method declaration |
void |
setColumnAlignment(int columnIndex, int alignment)Call this method to override default alignment. |
void |
setColumnHidden(int columnIndex, boolean hidden)Call this method to hide a column. |
void |
setColumnName(int columnIndex, java.lang.String columnName)Note: if none of the column names are set then the table header will not be rendered. |
void |
setColumnNames(java.lang.String[] columnNames)Method declaration |
void |
setColumnSortingStatus(int columnIndex, int sortingStatus) |
void |
setComparator(int columnIndex, java.util.Comparator comparator) |
void |
setDataAt(int rowIndex, int columnIndex, java.lang.Object data) |
void |
setDataAt(java.lang.Object data, int rowIndex, int columnIndex, int itemIndex)For TYPE_MULTIVALUE columns, specify the item value. |
void |
setDateFormat(int columnIndex, java.text.DateFormat dateFormat)Method declaration |
void |
setEnumValues(int columnIndex, java.lang.String[] enumValues)For TYPE_ENUM columns, specify the list of possible values. |
void |
setFormValueName(int columnIndex, java.lang.String formValueName) |
void |
setImageAt(java.lang.String image, int rowIndex, int columnIndex)For TYPE_IMAGE cells, specify the image. |
void |
setImageAt(java.lang.String image, int rowIndex, int columnIndex, int itemIndex)For TYPE_MULTIVALUE columns, specify the item image source. |
void |
setImageHeightAt(java.lang.String imageHeight, int rowIndex, int columnIndex)For TYPE_IMAGE cells, specify the image height. |
void |
setImageHeightAt(java.lang.String imageHeight, int rowIndex, int columnIndex, int itemIndex)For TYPE_MULTIVALUE columns, specify the item image height. |
void |
setImageWidthAt(java.lang.String imageWidth, int rowIndex, int columnIndex)For TYPE_IMAGE cells, specify the image width. |
void |
setImageWidthAt(java.lang.String imageWidth, int rowIndex, int columnIndex, int itemIndex)For TYPE_MULTIVALUE columns, specify the item image width. |
void |
setIndexOfFirstVisibleRow(int index)Method declaration |
void |
setItemCount(int columnIndex, int count)For TYPE_MULTIVALUE columns, specify the number of items. |
void |
setItemLayout(int columnIndex, int layout)For TYPE_MULTIVALUE columns, should items be laid out horizontally or vertically? |
void |
setItemSpacing(int columnIndex, int spacing)For TYPE_MULTIVALUE columns specify the gap between items. |
void |
setItemType(int columnIndex, int itemIndex, int itemType)For TYPE_MULTIVALUE columns, specify the item type. |
void |
setMaximumLength(int columnIndex, int maximumLength)For TYPE_TEXT columns, specify the maximum length of text. |
void |
setReadOnly(int rowIndex, int columnIndex, boolean readOnly) |
void |
setUrlAt(java.lang.String url, int rowIndex, int columnIndex)For TYPE_LINK cells, specify the URL. |
void |
setUrlAt(java.lang.String url, int rowIndex, int columnIndex, int itemIndex)For TYPE_LINK columns, specify the URL. |
void |
sort(int columnIndex, boolean ascending)This method will be called by the controller. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.util.Vector rows
protected oracle.jbo.client.wm.Column[] columns
protected int indexOfFirstVisibleRow
| Constructor Detail |
public TableUIDataSourceImpl(int[] columnTypes)
columnTypes -| Method Detail |
public int getColumnCount()
getColumnCount in interface TwoDDataSourcepublic int getColumnType(int columnIndex)
getColumnType in interface TwoDDataSourcecolumnIndex -
public void setColumnName(int columnIndex,
java.lang.String columnName)
public void setColumnNames(java.lang.String[] columnNames)
columnNames -public java.lang.String[] getColumnNames()
getColumnNames in interface TwoDDataSource
public void setComparator(int columnIndex,
java.util.Comparator comparator)
comparator - comparator to use to sort on specified column. If comparator is not set then sorting will not work.
public void setColumnSortingStatus(int columnIndex,
int sortingStatus)
sortingStatus - to enable sorting for a column, set sortingStatus to NOT_SORTED.public int getColumnSortingStatus(int columnIndex)
getColumnSortingStatus in interface TwoDDataSourcecolumnIndex -public int getRowCount()
getRowCount in interface TwoDDataSource
public void setDataAt(int rowIndex,
int columnIndex,
java.lang.Object data)
setDataAt in interface TwoDDataSourcedata - value of specified cell.
public java.lang.Object getDataAt(int rowIndex,
int columnIndex)
getDataAt in interface TwoDDataSourcerowIndex -columnIndex -
public void setReadOnly(int rowIndex,
int columnIndex,
boolean readOnly)
readOnly - set readOnly = false in order to display edit field, choice etc instead of static text.
public boolean isReadOnly(int rowIndex,
int columnIndex)
isReadOnly in interface TwoDDataSourcerowIndex -columnIndex -protected oracle.jbo.client.wm.Cell[] createRow()
public void addRows(int howMany)
addRows in interface TwoDDataSourcepublic void insertRowAt(int index)
insertRowAt in interface TwoDDataSourceindex -public void removeRowAt(int index)
removeRowAt in interface TwoDDataSourceindex -public void removeAllRows()
removeAllRows in interface TwoDDataSource
public void moveRow(int oldIndex,
int newIndex)
moveRow in interface TwoDDataSourceoldIndex -newIndex -
public void sort(int columnIndex,
boolean ascending)
sort in interface TwoDDataSource
public void setMaximumLength(int columnIndex,
int maximumLength)
public int getMaximumLength(int columnIndex)
getMaximumLength in interface TwoDDataSourcecolumnIndex -
public void setDateFormat(int columnIndex,
java.text.DateFormat dateFormat)
columnIndex -dateFormat -public java.text.DateFormat getDateFormat(int columnIndex)
getDateFormat in interface TwoDDataSourcecolumnIndex -
public void setEnumValues(int columnIndex,
java.lang.String[] enumValues)
public java.lang.String[] getEnumValues(int columnIndex)
getEnumValues in interface TwoDDataSourcecolumnIndex -
public void setColumnAlignment(int columnIndex,
int alignment)
public int getColumnAlignment(int columnIndex)
getColumnAlignment in interface TableUIDataSourcecolumnIndex -
public void setUrlAt(java.lang.String url,
int rowIndex,
int columnIndex)
public java.lang.String getUrlAt(int rowIndex,
int columnIndex)
getUrlAt in interface TableUIDataSourcerowIndex -columnIndex -
public void setImageAt(java.lang.String image,
int rowIndex,
int columnIndex)
public java.lang.String getImageAt(int rowIndex,
int columnIndex)
getImageAt in interface TableUIDataSourcerowIndex -columnIndex -
public void setImageWidthAt(java.lang.String imageWidth,
int rowIndex,
int columnIndex)
public java.lang.String getImageWidthAt(int rowIndex,
int columnIndex)
getImageWidthAt in interface TableUIDataSourcerowIndex -columnIndex -
public void setImageHeightAt(java.lang.String imageHeight,
int rowIndex,
int columnIndex)
public java.lang.String getImageHeightAt(int rowIndex,
int columnIndex)
getImageHeightAt in interface TableUIDataSourcerowIndex -columnIndex -public int getIndexOfFirstVisibleRow()
getIndexOfFirstVisibleRow in interface TableUIDataSourcepublic void setIndexOfFirstVisibleRow(int index)
TableUIDataSourcesetIndexOfFirstVisibleRow in interface TableUIDataSourceindex - to enable table navigation set index to 0.
public void setFormValueName(int columnIndex,
java.lang.String formValueName)
formValueName - name attribute of formValuepublic java.lang.String getFormValueName(int columnIndex)
getFormValueName in interface TableUIDataSourcecolumnIndex -
public void setColumnHidden(int columnIndex,
boolean hidden)
public boolean isColumnHidden(int columnIndex)
isColumnHidden in interface TableUIDataSourcecolumnIndex -
public void setItemCount(int columnIndex,
int count)
public int getItemCount(int columnIndex)
getItemCount in interface TableUIDataSourcecolumnIndex -
public void setItemLayout(int columnIndex,
int layout)
public int getItemLayout(int columnIndex)
getItemLayout in interface TableUIDataSourcecolumnIndex -
public void setItemSpacing(int columnIndex,
int spacing)
public int getItemSpacing(int columnIndex)
getItemSpacing in interface TableUIDataSourcecolumnIndex -
public void setItemType(int columnIndex,
int itemIndex,
int itemType)
public int getItemType(int columnIndex,
int itemIndex)
getItemType in interface TableUIDataSourcecolumnIndex -itemIndex -
public void setDataAt(java.lang.Object data,
int rowIndex,
int columnIndex,
int itemIndex)
public java.lang.Object getDataAt(int rowIndex,
int columnIndex,
int itemIndex)
getDataAt in interface TableUIDataSourcerowIndex -columnIndex -itemIndex -
public void setImageAt(java.lang.String image,
int rowIndex,
int columnIndex,
int itemIndex)
public java.lang.String getImageAt(int rowIndex,
int columnIndex,
int itemIndex)
getImageAt in interface TableUIDataSourcerowIndex -columnIndex -itemIndex -
public void setImageWidthAt(java.lang.String imageWidth,
int rowIndex,
int columnIndex,
int itemIndex)
public java.lang.String getImageWidthAt(int rowIndex,
int columnIndex,
int itemIndex)
getImageWidthAt in interface TableUIDataSourcerowIndex -columnIndex -itemIndex -
public void setImageHeightAt(java.lang.String imageHeight,
int rowIndex,
int columnIndex,
int itemIndex)
public java.lang.String getImageHeightAt(int rowIndex,
int columnIndex,
int itemIndex)
getImageHeightAt in interface TableUIDataSourcerowIndex -columnIndex -itemIndex -
public void setUrlAt(java.lang.String url,
int rowIndex,
int columnIndex,
int itemIndex)
public java.lang.String getUrlAt(int rowIndex,
int columnIndex,
int itemIndex)
getUrlAt in interface TableUIDataSourcerowIndex -columnIndex -itemIndex -
|
Oracle Application Development Framework Model and Business Components Java API Reference VERSION B16005-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||