Class netscape.peas.TableApplet
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class netscape.peas.TableApplet

netscape.peas.TableApplet

public class TableApplet
implements Row, Table

Variable Index

 o gsApplicationClass
 o gsApplicationClassValue

Constructor Index

 o TableApplet()

Method Index

 o addPropertyChangeListener(PropertyChangeListener)
 o addRow()
 o addRowChangeListener(RowChangeListener)
 o addTableChangeListener(TableChangeListener)
 o classForName(String)
This method must be implemented by the applet developer because there is no way in the standard Java API for system classes (such as, netscape.application) to look up an applet's class by name.
 o deleteRow()
 o deleteRow(int, boolean)
 o doSetCurrentRowNumber(int, boolean, boolean, NotifyList)
 o doUpdateRow(Object[], Object[], Object[])
 o executeQuery()
 o fetchMoreRows()
 o firePropertyChange(String, Object, Object)
 o fireRowChange(int, String, Object, Object, RowProvider, NotifyList)
 o fireTableChange(int, int, int, Object, TableProvider, NotifyList)
 o getColumnName(int)
 o getColumnNames()
 o getColumnValues()
 o getColumnWidths()
 o getCurrentRowNumber()
 o getCurrentRowValues()
 o getFetchBufferSize()
 o getInterface(String)
Return an object which implements this specified (fully qualified) interface name.
 o getNonCurrentRowValues(int)
 o getNumColumns()
 o getNumRowsFetched()
 o getParameter(String)
This override averts the requirement for a tag in the the applet tag!
 o getQuery()
Getter method for this cursor's "query" property.
 o getRowsPending()
 o getTable()
 o getValueByName(String)
 o getValueByNumber(int)
 o initializeColumnInfo(RowProvider)
 o isCurrentRowChanged()
 o nextRow()
 o previousRow()
 o propertyChange(PropertyChangeEvent)
 o removePropertyChangeListener(PropertyChangeListener)
 o removeRowChangeListener(RowChangeListener)
 o removeTableChangeListener(TableChangeListener)
 o rowChange(RowChangeEvent)
 o setColumnNames(String[], int[], NotifyList)
 o setCurrentRowNumber(int)
 o setFetchBufferSize(int)
 o setQuery(String)
 o setTableValue(int, int, Object, NotifyList)
 o setValueByName(String, Object, NotifyList)
 o setValueByNumber(int, Object, NotifyList)
 o tableChange(TableChangeEvent)
 o updateCurrentRow()

Variables

 o gsApplicationClass
  public final static String gsApplicationClass
 o gsApplicationClassValue
  public final static String gsApplicationClassValue

Constructors

 o TableApplet
  public TableApplet()

Methods

 o classForName
  public Class classForName(String className) throws ClassNotFoundException
This method must be implemented by the applet developer because there is no way in the standard Java API for system classes (such as, netscape.application) to look up an applet's class by name. The static method Class.forName() simply looks up one level in the stack and gets the ClassLoader associated with the method block of the caller.

When the netscape.application classes are installed as system classes, the ClassLoader is null. Thus, when code in netscape.application calls Class.forName() it can only find other system classes.

The solution is an API that allows code to find the ClassLoader for an applet by URL, and a public API on ClassLoader to ask it to load classes by name. Until those enhancements can be made and distributed to all the world's Java systems, applets must subclass FoundationApplet and implement the following one-line method:

    public abstract Class classForName(String className)
        throws ClassNotFoundException {
        return Class.forName(className);
    }
 o getParameter
  public String getParameter(String sName)
This override averts the requirement for a tag in the the applet tag!
 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 getQuery
  public String getQuery()
Getter method for this cursor's "query" property.
 o setQuery
  public void setQuery(String sNewQuery)
 o getFetchBufferSize
  public int getFetchBufferSize()
 o setFetchBufferSize
  public void setFetchBufferSize(int iNewBufferSize)
 o executeQuery
  public void executeQuery()
 o deleteRow
  public void deleteRow(int iRowNumber,
                        boolean bNotify)
 o deleteRow
  public void deleteRow()
 o addRow
  public void addRow()
 o setTableValue
  public void setTableValue(int iRow,
                            int iColumn,
                            Object oNewValue,
                            NotifyList oNotify)
 o getNumRowsFetched
  public int getNumRowsFetched()
 o getRowsPending
  public boolean getRowsPending()
 o fetchMoreRows
  public void fetchMoreRows()
 o getCurrentRowNumber
  public int getCurrentRowNumber()
 o setCurrentRowNumber
  public boolean setCurrentRowNumber(int iNewRowNumber)
 o doSetCurrentRowNumber
  public boolean doSetCurrentRowNumber(int iNewRowNumber,
                                       boolean bNotify,
                                       boolean bUpdateView,
                                       NotifyList oNotifyList)
 o nextRow
  public boolean nextRow()
 o previousRow
  public boolean previousRow()
 o getTable
  public Table getTable()
 o getCurrentRowValues
  public RowProvider getCurrentRowValues()
 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 setColumnNames
  public void setColumnNames(String aColumnNames[],
                             int aColumnWidths[],
                             NotifyList oNotify)
 o getNumColumns
  public int getNumColumns()
 o getColumnNames
  public String[] getColumnNames()
 o getColumnWidths
  public int[] getColumnWidths()
 o getColumnName
  public String getColumnName(int iColumnNumber)
 o getColumnValues
  public Object[] getColumnValues()
 o getValueByName
  public Object getValueByName(String sColumnName)
 o getValueByNumber
  public Object getValueByNumber(int iColumnNumber)
 o addPropertyChangeListener
  public void addPropertyChangeListener(PropertyChangeListener x)
 o removePropertyChangeListener
  public void removePropertyChangeListener(PropertyChangeListener x)
 o firePropertyChange
  public void firePropertyChange(String propertyName,
                                 Object oldValue,
                                 Object newValue)
 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)
 o rowChange
  public void rowChange(RowChangeEvent oEvent)
 o setValueByName
  public void setValueByName(String sColumnName,
                             Object oNewValue,
                             NotifyList oNotify)
 o setValueByNumber
  public void setValueByNumber(int iColumnNumber,
                               Object oNewValue,
                               NotifyList oNotify)
 o initializeColumnInfo
  public boolean initializeColumnInfo(RowProvider oRowProvider)

All Packages  Class Hierarchy  This Package  Previous  Next  Index