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

Class netscape.peas.JavaForm

netscape.peas.JavaForm

public class JavaForm
implements Row
Example Java Applet which shows a "one row" form, if wired to another component which implements the "Row" interface.

Constructor Index

 o JavaForm()
Default constuctor.

Method Index

 o addPropertyChangeListener(PropertyChangeListener)
Classes, such as JavaForm which implement the RowProvider (part of Row) interface must suppport firing the PropertyChangeEvent and the RowChangeEvent.
 o addRowChangeListener(RowChangeListener)
Classes, such as JavaForm which implement the RowProvider (part of Row) interface must suppport firing the PropertyChangeEvent and the RowChangeEvent.
 o firePropertyChange(String, Object, Object)
 o fireRowChange(int, String, Object, Object, RowProvider, NotifyList)
 o getColumnName(int)
Given a column's index (0..NumColumns), return its name
 o getColumnNames()
Return an array of column names
 o getColumnValues()
return values held by this row support object clone here of in client??
 o getColumnWidths()
Return an array of column names
 o getInterface(String)
Return an object which implements this specified (fully qualified) interface name.
 o getNumColumns()
Return the number of columns.
 o getValueByName(String)
Given a column name, get its value.
 o getValueByNumber(int)
Another flavor of "Dynamic-getter" method.
 o handleEvent(Event)
Handle (AWT 1.02) events.
 o init()
Initialize this applet.
 o initializeColumnInfo(RowProvider)
This method can be called by the data provider to inform us (the client) of its column names This is typically when this object registers itself as a listener by calling by calling addPropertyChangeListener alternatively, a RowProvider interface could be passed to the client and it the client could then "pull" the column names (and any other data) from this provider
 o propertyChange(PropertyChangeEvent)
Handle property change events for which we are listening.
 o removePropertyChangeListener(PropertyChangeListener)
Classes, such as JavaForm which implement the RowProvider (part of Row) interface must suppport firing the PropertyChangeEvent and the RowChangeEvent.
 o removeRowChangeListener(RowChangeListener)
Classes, such as JavaForm which implement the RowProvider (part of Row) interface must suppport firing the PropertyChangeEvent and the RowChangeEvent.
 o rowChange(RowChangeEvent)
Twister rowChange event.
 o setColumnNames(String[], int[], NotifyList)
 o setValueByName(String, Object, NotifyList)
Given a column's name, set its value to be this new value.
 o setValueByNumber(int, Object, NotifyList)
Different flavor "dynamic-setter".

Constructors

 o JavaForm
  public JavaForm()
Default constuctor.

Methods

 o init
  public void init()
Initialize this applet. Set size to something completely arbitrary.
 o handleEvent
  public boolean handleEvent(Event oEvent)
Handle (AWT 1.02) events. We take appropriate action which may result in Bean style (AWT 1.1) events being fired.
 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 names
 o getColumnName
  public String getColumnName(int iColumnNumber)
Given a column's index (0..NumColumns), return its name
 o getColumnValues
  public Object[] getColumnValues()
return values held by this row support object clone here of in client??
 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)
Classes, such as JavaForm which implement the RowProvider (part of Row) interface must suppport firing the PropertyChangeEvent and the RowChangeEvent. JavaForm delegates these to moRowSupport, which in turn delegates them to RowChangeSupport.
 o removePropertyChangeListener
  public void removePropertyChangeListener(PropertyChangeListener x)
Classes, such as JavaForm which implement the RowProvider (part of Row) interface must suppport firing the PropertyChangeEvent and the RowChangeEvent. JavaForm delegates these to moRowSupport, which in turn delegates them to RowChangeSupport.
 o addRowChangeListener
  public void addRowChangeListener(RowChangeListener oRowReceiver)
Classes, such as JavaForm which implement the RowProvider (part of Row) interface must suppport firing the PropertyChangeEvent and the RowChangeEvent. JavaForm delegates these to moRowSupport, which in turn delegates them to RowChangeSupport.
 o removeRowChangeListener
  public void removeRowChangeListener(RowChangeListener oRowReceiver)
Classes, such as JavaForm which implement the RowProvider (part of Row) interface must suppport firing the PropertyChangeEvent and the RowChangeEvent. JavaForm delegates these to moRowSupport, which in turn delegates them to RowChangeSupport.
 o fireRowChange
  public void fireRowChange(int iChangeType,
                            String sColumnAffected,
                            Object oOldValue,
                            Object oNewValue,
                            RowProvider oRowProvider,
                            NotifyList oNotify)
 o propertyChange
  public void propertyChange(PropertyChangeEvent oEvent)
Handle property change events for which we are listening. RowSupport calls back up to SetValueByNumber where we can update our view.
 o rowChange
  public void rowChange(RowChangeEvent oEvent)
Twister rowChange event. For us it means: "column info has changed".
 o setValueByName
  public void setValueByName(String sColumnName,
                             Object oNewValue,
                             NotifyList oNotify)
Given a column's name, set its value to be this new value. This is a "dymanic-setter". See @RowReceiver.getValueByName
 o setValueByNumber
  public void setValueByNumber(int iColumnNumber,
                               Object oNewValue,
                               NotifyList oNotify)
Different flavor "dynamic-setter". See @setValueByName.
 o initializeColumnInfo
  public boolean initializeColumnInfo(RowProvider oRowProvider)
This method can be called by the data provider to inform us (the client) of its column names This is typically when this object registers itself as a listener by calling by calling addPropertyChangeListener alternatively, a RowProvider interface could be passed to the client and it the client could then "pull" the column names (and any other data) from this provider
 o firePropertyChange
  public void firePropertyChange(String propertyName,
                                 Object oldValue,
                                 Object newValue)

All Packages  Class Hierarchy  This Package  Previous  Next  Index