All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class netscape.peas.TableApplication

java.lang.Object
   |
   +----netscape.application.Application
           |
           +----netscape.peas.TableApplication

public class TableApplication
extends Application
implements Target, Row, Table

Constructor Index

 o TableApplication()

Method Index

 o addPropertyChangeListener(PropertyChangeListener)
Row data providers implement addPropertyChangeListener and publish it in the beaninfo as their OnPropertyChange "add listner" method.
 o addRow()
 o addRowChangeListener(RowChangeListener)
 o addTableChangeListener(TableChangeListener)
 o deleteRow()
 o deleteRow(int, boolean)
 o doSetCurrentRowNumber(int, boolean, boolean, NotifyList)
override to set our view, unless value *came* from view
 o doUpdateRow(Object[], Object[], Object[])
 o executeQuery()
Evalutate the query, and fetch the appropriate amount of rows, based on the "bufferSize" property.
 o fetchMoreRows()
Get more rows, if "rowsPending" property is true, otherwise does nothing.
 o firePropertyChange(String, Object, Object)
Helper to fire property change.
 o fireRowChange(int, String, Object, Object, RowProvider, NotifyList)
 o fireTableChange(int, int, int, Object, TableProvider, NotifyList)
 o getColumnName(int)
Given a column's index (0..NumColumns), return its name
 o getColumnNames()
Return an array of column names
 o getColumnValues()
 o getColumnWidths()
Return an array of column widths
 o getCurrentRowNumber()
getCurrentRowNumber allows clients of this Table to get the value of its its "currentRowNumber" property.
 o getCurrentRowValues()
 o getFetchBufferSize()
Setter method for this cursor's "bufferSize" property.
 o getInterface(String)
Return an object which implements this specified (fully qualified) interface name.
 o getNonCurrentRowValues(int)
 o getNumColumns()
Return the number of columns.
 o getNumRowsFetched()
Getter method for "NumRowsFetched" property.
 o getQuery()
Getter method for this cursor's "query" property.
 o getRowsPending()
Getter for the booelan "rowsPending" property.
 o getTable()
 o getValueByName(String)
Given a column name, get its value.
 o getValueByNumber(int)
Another flavor of "Dynamic-getter" method.
 o init()
 o initializeColumnInfo(RowProvider)
This method is called when column names or other inforation has changed.
 o isCurrentRowChanged()
 o nextRow()
Change the position of this cursor to the next row.
 o performCommand(String, Object)
 o previousRow()
Change the position of this cursor to the next row.
 o propertyChange(PropertyChangeEvent)
This method is typically called when we have been "wired" as a listener to another component's bound property
 o removePropertyChangeListener(PropertyChangeListener)
Your basic remove listener method
 o removeRowChangeListener(RowChangeListener)
 o removeTableChangeListener(TableChangeListener)
 o rowChange(RowChangeEvent)
Twister rowChange event.
 o setColumnNames(String[], int[], NotifyList)
 o setCurrentRowNumber(int)
setCurrentRowNumber allows clients of this Table adjust its "currentRowNumber" property.
 o setFetchBufferSize(int)
Getter method for this cursor's "bufferSize" property.
 o setQuery(String)
Setter method for this cursor's "query" property.
 o setTableValue(int, int, Object, NotifyList)
This method is called by this TableApplication, as well as others to set our "model".
 o setValueByName(String, Object)
Given a column's name, set its value to be this new value.
 o setValueByName(String, Object, NotifyList)
 o setValueByNumber(int, Object, NotifyList)
Different flavor "dynamic-setter".
 o setViewCurrentRow(int)
 o tableChange(TableChangeEvent)
 o updateCurrentRow()

Constructors

 o TableApplication
 public TableApplication()

Methods

 o init
 public void init()
Overrides:
init in class Application
 o setViewCurrentRow
 public void setViewCurrentRow(int iNewCurrentRow)
 o performCommand
 public void performCommand(String command,
                            Object data)
 o setTableValue
 public void setTableValue(int iRow,
                           int iColumn,
                           Object oNewValue,
                           NotifyList oNotify)
This method is called by this TableApplication, as well as others to set our "model". It is "overridden" here so we can update our view when other actions (e.g. events) cause our model to be changed for us by TableSupport.

 o getInterface
 public Object getInterface(String sInterfaceName)
Return an object which implements this specified (fully qualified) interface name. If this interface is not implemented, return null.

 o setColumnNames
 public void setColumnNames(String aColumnNames[],
                            int aColumnWidths[],
                            NotifyList oNotify)
 o getNumColumns
 public int getNumColumns()
Return the number of columns.

 o getColumnNames
 public String[] getColumnNames()
Return an array of column names

 o getColumnWidths
 public int[] getColumnWidths()
Return an array of column widths

 o getColumnName
 public String getColumnName(int iColumnNumber)
Given a column's index (0..NumColumns), return its name

 o getColumnValues
 public Object[] getColumnValues()
 o getValueByName
 public Object getValueByName(String sColumnName)
Given a column name, get its value. This is a "Dynamic-getter" method. Unlike "normal" setter methods ("void getFoo();"), dynamic-getters can be used for properties whose names are known at compile time.

 o getValueByNumber
 public Object getValueByNumber(int iColumnNumber)
Another flavor of "Dynamic-getter" method. See @getValueByName.

 o addPropertyChangeListener
 public void addPropertyChangeListener(PropertyChangeListener x)
Row data providers implement addPropertyChangeListener and publish it in the beaninfo as their OnPropertyChange "add listner" method. Technically, it does not need to be a member of this interface, but hey, why not?

 o removePropertyChangeListener
 public void removePropertyChangeListener(PropertyChangeListener x)
Your basic remove listener method

 o firePropertyChange
 public void firePropertyChange(String propertyName,
                                Object oldValue,
                                Object newValue)
Helper to fire property change. Delegates to PropertyChangeSuppport member.

 o addRowChangeListener
 public void addRowChangeListener(RowChangeListener oRowReceiver)
 o removeRowChangeListener
 public void removeRowChangeListener(RowChangeListener oRowReceiver)
 o fireRowChange
 public void fireRowChange(int iChangeType,
                           String sColumnAffected,
                           Object oOldValue,
                           Object oNewValue,
                           RowProvider oRowProvider,
                           NotifyList oNotify)
 o propertyChange
 public void propertyChange(PropertyChangeEvent oEvent)
This method is typically called when we have been "wired" as a listener to another component's bound property

 o rowChange
 public void rowChange(RowChangeEvent oEvent)
Twister rowChange event. For us it means: "column info has changed".

 o initializeColumnInfo
 public boolean initializeColumnInfo(RowProvider oRowProvider)
This method is called when column names or other inforation has changed. We are given a RowProvider into which we can call to get new column info.

 o setValueByName
 public void setValueByName(String sColumnName,
                            Object oNewValue)
Given a column's name, set its value to be this new value. This is a "dymanic-setter". See @RowReceiver.getValueByName

 o setValueByName
 public void setValueByName(String sColumnName,
                            Object oNewValue,
                            NotifyList oNotify)
 o setValueByNumber
 public void setValueByNumber(int iColumnNumber,
                              Object oNewValue,
                              NotifyList oNotify)
Different flavor "dynamic-setter". See @setValueByName.

 o getCurrentRowValues
 public RowProvider getCurrentRowValues()
 o getTable
 public Table getTable()
 o addTableChangeListener
 public void addTableChangeListener(TableChangeListener oListener)
 o removeTableChangeListener
 public void removeTableChangeListener(TableChangeListener oListener)
 o fireTableChange
 public void fireTableChange(int iChangeType,
                             int iRowAffected,
                             int iColumnAffected,
                             Object oNewValue,
                             TableProvider oTableProvider,
                             NotifyList oNotify)
 o getNonCurrentRowValues
 public Object[] getNonCurrentRowValues(int iRowNumber)
 o updateCurrentRow
 public void updateCurrentRow()
 o doUpdateRow
 public void doUpdateRow(Object aColumnNames[],
                         Object aNewValues[],
                         Object aOldValues[])
 o isCurrentRowChanged
 public boolean isCurrentRowChanged()
 o tableChange
 public void tableChange(TableChangeEvent oEvent)
 o getQuery
 public String getQuery()
Getter method for this cursor's "query" property.

 o setQuery
 public void setQuery(String sNewQuery)
Setter method for this cursor's "query" property.

 o getFetchBufferSize
 public int getFetchBufferSize()
Setter method for this cursor's "bufferSize" property. this specifies the number of rows fetched when the query is executed, and on successive fetchMoreRows() calls. A buffer size of 0 means that all rows are fetched before control is returned from executeQuery.

 o setFetchBufferSize
 public void setFetchBufferSize(int iNewBufferSize)
Getter method for this cursor's "bufferSize" property. this specifies the number of rows fetched when the query is executed, and on successive fetchMoreRows() calls.

 o executeQuery
 public void executeQuery()
Evalutate the query, and fetch the appropriate amount of rows, based on the "bufferSize" property. If not all rows have been fetched, the rowsPending property will have a "true" value. The numRowsFetched property will equal the number of rows satisfying the query only if the numRowsFetched property is "false".

 o deleteRow
 public void deleteRow(int iRowNumber,
                       boolean bNotify)
 o deleteRow
 public void deleteRow()
 o addRow
 public void addRow()
 o getNumRowsFetched
 public int getNumRowsFetched()
Getter method for "NumRowsFetched" property. This is the total number of rows satisfying the query if and only if the "rowsPending" property is true.

 o getRowsPending
 public boolean getRowsPending()
Getter for the booelan "rowsPending" property.

 o fetchMoreRows
 public void fetchMoreRows()
Get more rows, if "rowsPending" property is true, otherwise does nothing.

 o getCurrentRowNumber
 public int getCurrentRowNumber()
getCurrentRowNumber allows clients of this Table to get the value of its its "currentRowNumber" property. It ought to be exposed in the beaninfo as the "read" method for this property.

 o setCurrentRowNumber
 public boolean setCurrentRowNumber(int iNewRowNumber)
setCurrentRowNumber allows clients of this Table adjust its "currentRowNumber" property. It ought to be exposed in the beaninfo as the "write" method for this property.

 o doSetCurrentRowNumber
 public boolean doSetCurrentRowNumber(int iNewRowNumber,
                                      boolean bNotify,
                                      boolean bUpdateView,
                                      NotifyList oNotifyList)
override to set our view, unless value *came* from view

 o nextRow
 public boolean nextRow()
Change the position of this cursor to the next row. Return false if there is none.

 o previousRow
 public boolean previousRow()
Change the position of this cursor to the next row. Return false if there is none.


All Packages  Class Hierarchy  This Package  Previous  Next  Index