    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Class netscape.peas.TableApplet

    java.lang.Object
       |
       +----java.awt.Component
               |
               +----java.awt.Container
                       |
                       +----java.awt.Panel
                               |
                               +----java.applet.Applet
                                       |
                                       +----netscape.application.FoundationApplet
                                               |
                                               +----netscape.peas.TableApplet

public class TableApplet
extends FoundationApplet
implements Row, Table

##

gsApplicationClass
gsApplicationClassValue

##

TableApplet()

##

addPropertyChangeListener(PropertyChangeListener)
addRow()
addRowChangeListener(RowChangeListener)
addTableChangeListener(TableChangeListener)
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.
deleteRow()
deleteRow(int, boolean)
doSetCurrentRowNumber(int, boolean, boolean, NotifyList)
doUpdateRow(Object[], Object[], Object[])
executeQuery()
fetchMoreRows()
firePropertyChange(String, Object, Object)
fireRowChange(int, String, Object, Object, RowProvider, NotifyList)
fireTableChange(int, int, int, Object, TableProvider, NotifyList)
getColumnName(int)
getColumnNames()
getColumnValues()
getColumnWidths()
getCurrentRowNumber()
getCurrentRowValues()
getFetchBufferSize()
getInterface(String)
  Return an object which implements this specified (fully qualified) interface name.
getNonCurrentRowValues(int)
getNumColumns()
getNumRowsFetched()
getParameter(String)
  This override averts the requirement for a tag in the the applet tag!
getQuery()
  Getter method for this cursor's "query" property.
getRowsPending()
getTable()
getValueByName(String)
getValueByNumber(int)
initializeColumnInfo(RowProvider)
isCurrentRowChanged()
nextRow()
previousRow()
propertyChange(PropertyChangeEvent)
removePropertyChangeListener(PropertyChangeListener)
removeRowChangeListener(RowChangeListener)
removeTableChangeListener(TableChangeListener)
rowChange(RowChangeEvent)
setColumnNames(String[], int[], NotifyList)
setCurrentRowNumber(int)
setFetchBufferSize(int)
setQuery(String)
setTableValue(int, int, Object, NotifyList)
setValueByName(String, Object)
setValueByName(String, Object, NotifyList)
setValueByNumber(int, Object, NotifyList)
tableChange(TableChangeEvent)
updateCurrentRow()

##

gsApplicationClass

     public static final String gsApplicationClass

gsApplicationClassValue

     public static final String gsApplicationClassValue

##

TableApplet

     public TableApplet()

##

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);
           }

  Overrides:
    classForName in class FoundationApplet

getParameter

     public String getParameter(String sName)

  This override averts the requirement for a tag in the the applet tag!

  Overrides:
    getParameter in class Applet

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.

getQuery

     public String getQuery()

  Getter method for this cursor's "query" property.

setQuery

     public void setQuery(String sNewQuery)

getFetchBufferSize

     public int getFetchBufferSize()

setFetchBufferSize

     public void setFetchBufferSize(int iNewBufferSize)

executeQuery

     public void executeQuery()

deleteRow

     public void deleteRow(int iRowNumber,
                           boolean bNotify)

deleteRow

     public void deleteRow()

addRow

     public void addRow()

setTableValue

     public void setTableValue(int iRow,
                               int iColumn,
                               Object oNewValue,
                               NotifyList oNotify)

getNumRowsFetched

     public int getNumRowsFetched()

getRowsPending

     public boolean getRowsPending()

fetchMoreRows

     public void fetchMoreRows()

getCurrentRowNumber

     public int getCurrentRowNumber()

setCurrentRowNumber

     public boolean setCurrentRowNumber(int iNewRowNumber)

doSetCurrentRowNumber

     public boolean doSetCurrentRowNumber(int iNewRowNumber,
                                          boolean bNotify,
                                          boolean bUpdateView,
                                          NotifyList oNotifyList)

nextRow

     public boolean nextRow()

previousRow

     public boolean previousRow()

getTable

     public Table getTable()

getCurrentRowValues

     public RowProvider getCurrentRowValues()

addTableChangeListener

     public void addTableChangeListener(TableChangeListener oListener)

removeTableChangeListener

     public void removeTableChangeListener(TableChangeListener oListener)

fireTableChange

     public void fireTableChange(int iChangeType,
                                 int iRowAffected,
                                 int iColumnAffected,
                                 Object oNewValue,
                                 TableProvider oTableProvider,
                                 NotifyList oNotify)

getNonCurrentRowValues

     public Object[] getNonCurrentRowValues(int iRowNumber)

updateCurrentRow

     public void updateCurrentRow()

doUpdateRow

     public void doUpdateRow(Object aColumnNames[],
                             Object aNewValues[],
                             Object aOldValues[])

isCurrentRowChanged

     public boolean isCurrentRowChanged()

tableChange

     public void tableChange(TableChangeEvent oEvent)

setColumnNames

     public void setColumnNames(String aColumnNames[],
                                int aColumnWidths[],
                                NotifyList oNotify)

getNumColumns

     public int getNumColumns()

getColumnNames

     public String[] getColumnNames()

getColumnWidths

     public int[] getColumnWidths()

getColumnName

     public String getColumnName(int iColumnNumber)

getColumnValues

     public Object[] getColumnValues()

getValueByName

     public Object getValueByName(String sColumnName)

getValueByNumber

     public Object getValueByNumber(int iColumnNumber)

addPropertyChangeListener

     public void addPropertyChangeListener(PropertyChangeListener x)

removePropertyChangeListener

     public void removePropertyChangeListener(PropertyChangeListener x)

firePropertyChange

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

addRowChangeListener

     public void addRowChangeListener(RowChangeListener oRowReceiver)

removeRowChangeListener

     public void removeRowChangeListener(RowChangeListener oRowReceiver)

fireRowChange

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

propertyChange

     public void propertyChange(PropertyChangeEvent oEvent)

rowChange

     public void rowChange(RowChangeEvent oEvent)

setValueByName

     public void setValueByName(String sColumnName,
                                Object oNewValue)

setValueByName

     public void setValueByName(String sColumnName,
                                Object oNewValue,
                                NotifyList oNotify)

setValueByNumber

     public void setValueByNumber(int iColumnNumber,
                                  Object oNewValue,
                                  NotifyList oNotify)

initializeColumnInfo

     public boolean initializeColumnInfo(RowProvider oRowProvider)

    All Packages  Class Hierarchy  This Package  Previous  Next  Index