    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Interface netscape.peas.RowProvider

public interface RowProvider

##

addPropertyChangeListener(PropertyChangeListener)
  Row data providers implement addPropertyChangeListener and publish it in the beaninfo as their OnPropertyChange "add listner" method.
addRowChangeListener(RowChangeListener)
firePropertyChange(String, Object, Object)
fireRowChange(int, String, Object, Object, RowProvider, NotifyList)
getColumnName(int)
  Given a column's index (0..NumColumns), return its name
getColumnNames()
  Return an array of column names.
getColumnValues()
getColumnWidths()
  Return an array of column widths
getNumColumns()
  Return the number of columns.
getValueByName(String)
  Given a column name, get its value.
getValueByNumber(int)
  Another flavor of "Dynamic-getter" method.
removePropertyChangeListener(PropertyChangeListener)
removeRowChangeListener(RowChangeListener)

##

getNumColumns

     public abstract int getNumColumns()

  Return the number of columns. This is the "getter" method for the "numColumns" property.

getColumnNames

     public abstract String[] getColumnNames()

  Return an array of column names.

getColumnName

     public abstract String getColumnName(int iColumnNumber)

  Given a column's index (0..NumColumns), return its name

getColumnWidths

     public abstract int[] getColumnWidths()

  Return an array of column widths

getValueByName

     public abstract 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.

getValueByNumber

     public abstract Object getValueByNumber(int iColumnNumber)

  Another flavor of "Dynamic-getter" method. See @getValueByName.

addPropertyChangeListener

     public abstract 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?

removePropertyChangeListener

     public abstract void removePropertyChangeListener(PropertyChangeListener x)

firePropertyChange

     public abstract void firePropertyChange(String propertyName,
                                             Object oldValue,
                                             Object newValue)

addRowChangeListener

     public abstract void addRowChangeListener(RowChangeListener oRowReceiver)

removeRowChangeListener

     public abstract void removeRowChangeListener(RowChangeListener oRowReceiver)

fireRowChange

     public abstract void fireRowChange(int iChangeType,
                                        String sColumnAffected,
                                        Object oOldValue,
                                        Object oNewValue,
                                        RowProvider oRowProvider,
                                        NotifyList oNotify)

getColumnValues

     public abstract Object[] getColumnValues()

    All Packages  Class Hierarchy  This Package  Previous  Next  Index