Oracle Application Development Framework Model and Business Components Java API Reference
VERSION

B16005-01


oracle.jbo.client.wm
Class SimpleTableUIDataSource

java.lang.Object
  extended byoracle.jbo.client.wm.SimpleTableUIDataSource

All Implemented Interfaces:
TableUIDataSource, TwoDDataSource

public class SimpleTableUIDataSource
extends java.lang.Object
implements TableUIDataSource

Field Summary
protected  int indexOfFirstVisibleRow
           
protected  TwoDDataSource twoDDataSource
           

 

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
SimpleTableUIDataSource()
          Constructor declaration
SimpleTableUIDataSource(TwoDDataSource twoDDataSource)
          Constructor declaration

 

Method Summary
 void addRows(int howMany)
          Method declaration
 int getColumnAlignment(int columnIndex)
          Method declaration
 int getColumnCount()
           
 java.lang.String[] getColumnNames()
           
 int getColumnSortingStatus(int columnIndex)
           
 int getColumnType(int columnIndex)
           
 java.lang.Object getDataAt(int rowIndex, int columnIndex)
           
 java.lang.Object getDataAt(int rowIndex, int columnIndex, int itemIndex)
          Method declaration
 java.text.DateFormat getDateFormat(int columnIndex)
          Only called for TYPE_DATE columns.
 java.lang.String[] getEnumValues(int columnIndex)
          Only called for TYPE_ENUM columns.
 java.lang.String getFormValueName(int columnIndex)
          Only called for TYPE_FORMVALUE columns.
 java.lang.String getImageAt(int rowIndex, int columnIndex)
          Only called for TYPE_IMAGE columns.
 java.lang.String getImageAt(int rowIndex, int columnIndex, int itemIndex)
          Method declaration
 java.lang.String getImageHeightAt(int rowIndex, int columnIndex)
           
 java.lang.String getImageHeightAt(int rowIndex, int columnIndex, int itemIndex)
          Method declaration
 java.lang.String getImageWidthAt(int rowIndex, int columnIndex)
           
 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)
          Only called for TYPE_TEXT columns.
 int getRowCount()
           
 TwoDDataSource getTwoDDataSource()
           
 java.lang.String getUrlAt(int rowIndex, int columnIndex)
          Only called for TYPE_LINK columns.
 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)
           
 void moveRow(int oldIndex, int newIndex)
          Method declaration
 void removeAllRows()
          Method declaration
 void removeRowAt(int index)
          Method declaration
 void setDataAt(int rowIndex, int columnIndex, java.lang.Object obj)
          Method declaration
 void setIndexOfFirstVisibleRow(int index)
          Method declaration
 void setTwoDDataSource(TwoDDataSource twoDDataSource)
           
 void sort(int columnIndex, boolean ascending)
          Method declaration

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

indexOfFirstVisibleRow

protected int indexOfFirstVisibleRow

twoDDataSource

protected TwoDDataSource twoDDataSource

Constructor Detail

SimpleTableUIDataSource

public SimpleTableUIDataSource()
Constructor declaration

SimpleTableUIDataSource

public SimpleTableUIDataSource(TwoDDataSource twoDDataSource)
Constructor declaration
Parameters:
twoDDataSource -

Method Detail

getTwoDDataSource

public TwoDDataSource getTwoDDataSource()
Returns:
TwoDDataSource

setTwoDDataSource

public void setTwoDDataSource(TwoDDataSource twoDDataSource)
Parameters:
twoDDataSource -

getColumnCount

public int getColumnCount()
Specified by:
getColumnCount in interface TwoDDataSource
Returns:
column count

getColumnType

public int getColumnType(int columnIndex)
Specified by:
getColumnType in interface TwoDDataSource
Parameters:
columnIndex -
Returns:
columnType

getColumnNames

public java.lang.String[] getColumnNames()
Specified by:
getColumnNames in interface TwoDDataSource
Returns:
array of column names

getColumnSortingStatus

public int getColumnSortingStatus(int columnIndex)
Specified by:
getColumnSortingStatus in interface TwoDDataSource
Parameters:
columnIndex -
Returns:
column sorting status

getRowCount

public int getRowCount()
Specified by:
getRowCount in interface TwoDDataSource
Returns:
row count

getDataAt

public java.lang.Object getDataAt(int rowIndex,
                                  int columnIndex)
Specified by:
getDataAt in interface TwoDDataSource
Parameters:
rowIndex -
columnIndex -
Returns:
the data at the position in the table

setDataAt

public void setDataAt(int rowIndex,
                      int columnIndex,
                      java.lang.Object obj)
Method declaration
Specified by:
setDataAt in interface TwoDDataSource
Parameters:
rowIndex -
columnIndex -
obj -

isReadOnly

public boolean isReadOnly(int rowIndex,
                          int columnIndex)
Specified by:
isReadOnly in interface TwoDDataSource
Parameters:
rowIndex -
columnIndex -
Returns:
true if the datasource is read-only

addRows

public void addRows(int howMany)
Method declaration
Specified by:
addRows in interface TwoDDataSource
Parameters:
howMany -

insertRowAt

public void insertRowAt(int index)
Method declaration
Specified by:
insertRowAt in interface TwoDDataSource
Parameters:
index -

removeRowAt

public void removeRowAt(int index)
Method declaration
Specified by:
removeRowAt in interface TwoDDataSource
Parameters:
index -

removeAllRows

public void removeAllRows()
Method declaration
Specified by:
removeAllRows in interface TwoDDataSource

moveRow

public void moveRow(int oldIndex,
                    int newIndex)
Method declaration
Specified by:
moveRow in interface TwoDDataSource
Parameters:
oldIndex -
newIndex -

sort

public void sort(int columnIndex,
                 boolean ascending)
Method declaration
Specified by:
sort in interface TwoDDataSource
Parameters:
columnIndex -
ascending -

getMaximumLength

public int getMaximumLength(int columnIndex)
Description copied from interface: TwoDDataSource
Only called for TYPE_TEXT columns.
Specified by:
getMaximumLength in interface TwoDDataSource
Parameters:
columnIndex -
Returns:
maximum length

getDateFormat

public java.text.DateFormat getDateFormat(int columnIndex)
Description copied from interface: TwoDDataSource
Only called for TYPE_DATE columns.
Specified by:
getDateFormat in interface TwoDDataSource
Parameters:
columnIndex -
Returns:
DateFormat

getEnumValues

public java.lang.String[] getEnumValues(int columnIndex)
Description copied from interface: TwoDDataSource
Only called for TYPE_ENUM columns.
Specified by:
getEnumValues in interface TwoDDataSource
Parameters:
columnIndex -
Returns:
the enum values at the column

getColumnAlignment

public int getColumnAlignment(int columnIndex)
Description copied from interface: TableUIDataSource
Method declaration
Specified by:
getColumnAlignment in interface TableUIDataSource
Parameters:
columnIndex -
Returns:
the column alignment

getUrlAt

public java.lang.String getUrlAt(int rowIndex,
                                 int columnIndex)
Description copied from interface: TableUIDataSource
Only called for TYPE_LINK columns.
Specified by:
getUrlAt in interface TableUIDataSource
Parameters:
rowIndex -
columnIndex -
Returns:
url

getImageAt

public java.lang.String getImageAt(int rowIndex,
                                   int columnIndex)
Description copied from interface: TableUIDataSource
Only called for TYPE_IMAGE columns.
Specified by:
getImageAt in interface TableUIDataSource
Parameters:
rowIndex -
columnIndex -
Returns:
image

getImageWidthAt

public java.lang.String getImageWidthAt(int rowIndex,
                                        int columnIndex)
Specified by:
getImageWidthAt in interface TableUIDataSource
Parameters:
rowIndex -
columnIndex -
Returns:
image width

getImageHeightAt

public java.lang.String getImageHeightAt(int rowIndex,
                                         int columnIndex)
Specified by:
getImageHeightAt in interface TableUIDataSource
Parameters:
rowIndex -
columnIndex -
Returns:
image height

getFormValueName

public java.lang.String getFormValueName(int columnIndex)
Description copied from interface: TableUIDataSource
Only called for TYPE_FORMVALUE columns.
Specified by:
getFormValueName in interface TableUIDataSource
Parameters:
columnIndex -
Returns:
form value

isColumnHidden

public boolean isColumnHidden(int columnIndex)
Description copied from interface: TableUIDataSource
Method declaration
Specified by:
isColumnHidden in interface TableUIDataSource
Parameters:
columnIndex -
Returns:
true if the column is hidden

getIndexOfFirstVisibleRow

public int getIndexOfFirstVisibleRow()
Description copied from interface: TableUIDataSource
Method declaration
Specified by:
getIndexOfFirstVisibleRow in interface TableUIDataSource
Returns:
the index of the first visible row

setIndexOfFirstVisibleRow

public void setIndexOfFirstVisibleRow(int index)
Method declaration
Specified by:
setIndexOfFirstVisibleRow in interface TableUIDataSource
Parameters:
index -

getItemCount

public int getItemCount(int columnIndex)
Description copied from interface: TableUIDataSource
Method declaration
Specified by:
getItemCount in interface TableUIDataSource
Parameters:
columnIndex -
Returns:
item count

getItemLayout

public int getItemLayout(int columnIndex)
Description copied from interface: TableUIDataSource
Method declaration
Specified by:
getItemLayout in interface TableUIDataSource
Parameters:
columnIndex -
Returns:
item layout

getItemSpacing

public int getItemSpacing(int columnIndex)
Description copied from interface: TableUIDataSource
Method declaration
Specified by:
getItemSpacing in interface TableUIDataSource
Parameters:
columnIndex -
Returns:
item spacing

getItemType

public int getItemType(int columnIndex,
                       int itemIndex)
Description copied from interface: TableUIDataSource
Method declaration
Specified by:
getItemType in interface TableUIDataSource
Parameters:
columnIndex -
itemIndex -
Returns:
item type

getDataAt

public java.lang.Object getDataAt(int rowIndex,
                                  int columnIndex,
                                  int itemIndex)
Description copied from interface: TableUIDataSource
Method declaration
Specified by:
getDataAt in interface TableUIDataSource
Parameters:
rowIndex -
columnIndex -
itemIndex -
Returns:
data

getImageAt

public java.lang.String getImageAt(int rowIndex,
                                   int columnIndex,
                                   int itemIndex)
Description copied from interface: TableUIDataSource
Method declaration
Specified by:
getImageAt in interface TableUIDataSource
Parameters:
rowIndex -
columnIndex -
itemIndex -
Returns:
image

getImageWidthAt

public java.lang.String getImageWidthAt(int rowIndex,
                                        int columnIndex,
                                        int itemIndex)
Description copied from interface: TableUIDataSource
Method declaration
Specified by:
getImageWidthAt in interface TableUIDataSource
Parameters:
rowIndex -
columnIndex -
itemIndex -
Returns:
image width

getImageHeightAt

public java.lang.String getImageHeightAt(int rowIndex,
                                         int columnIndex,
                                         int itemIndex)
Description copied from interface: TableUIDataSource
Method declaration
Specified by:
getImageHeightAt in interface TableUIDataSource
Parameters:
rowIndex -
columnIndex -
itemIndex -
Returns:
image height

getUrlAt

public java.lang.String getUrlAt(int rowIndex,
                                 int columnIndex,
                                 int itemIndex)
Description copied from interface: TableUIDataSource
Method declaration
Specified by:
getUrlAt in interface TableUIDataSource
Parameters:
rowIndex -
columnIndex -
itemIndex -
Returns:
url

Oracle Application Development Framework Model and Business Components Java API Reference
VERSION

B16005-01


Copyright © 1997, 2005, Oracle. All rights reserved.