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.
-
JavaForm()
- Default constuctor.
-
addPropertyChangeListener(PropertyChangeListener)
- Classes, such as JavaForm which implement the RowProvider (part of Row) interface
must suppport firing the PropertyChangeEvent and the RowChangeEvent.
-
addRowChangeListener(RowChangeListener)
- Classes, such as JavaForm which implement the RowProvider (part of Row) interface
must suppport firing the PropertyChangeEvent and the RowChangeEvent.
-
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()
- return values held by this row support object
clone here of in client??
-
getColumnWidths()
- Return an array of column names
-
getInterface(String)
- Return an object which implements this specified (fully qualified) interface name.
-
getNumColumns()
- Return the number of columns.
-
getValueByName(String)
- Given a column name, get its value.
-
getValueByNumber(int)
- Another flavor of "Dynamic-getter" method.
-
handleEvent(Event)
- Handle (AWT 1.02) events.
-
init()
- Initialize this applet.
-
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
-
propertyChange(PropertyChangeEvent)
- Handle property change events for which we are listening.
-
removePropertyChangeListener(PropertyChangeListener)
- Classes, such as JavaForm which implement the RowProvider (part of Row) interface
must suppport firing the PropertyChangeEvent and the RowChangeEvent.
-
removeRowChangeListener(RowChangeListener)
- Classes, such as JavaForm which implement the RowProvider (part of Row) interface
must suppport firing the PropertyChangeEvent and the RowChangeEvent.
-
rowChange(RowChangeEvent)
- Twister rowChange event.
-
setColumnNames(String[], int[], NotifyList)
-
-
setValueByName(String, Object, NotifyList)
- Given a column's name, set its value to be this new value.
-
setValueByNumber(int, Object, NotifyList)
- Different flavor "dynamic-setter".
JavaForm
public JavaForm()
- Default constuctor.
init
public void init()
- Initialize this applet. Set size to something completely arbitrary.
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.
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.
setColumnNames
public void setColumnNames(String aColumnNames[],
int aColumnWidths[],
NotifyList oNotify)
getNumColumns
public int getNumColumns()
- Return the number of columns.
getColumnNames
public String[] getColumnNames()
- Return an array of column names
getColumnWidths
public int[] getColumnWidths()
- Return an array of column names
getColumnName
public String getColumnName(int iColumnNumber)
- Given a column's index (0..NumColumns), return its name
getColumnValues
public Object[] getColumnValues()
- return values held by this row support object
clone here of in client??
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.
getValueByNumber
public Object getValueByNumber(int iColumnNumber)
- Another flavor of "Dynamic-getter" method.
See @getValueByName.
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.
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.
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.
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.
fireRowChange
public void fireRowChange(int iChangeType,
String sColumnAffected,
Object oOldValue,
Object oNewValue,
RowProvider oRowProvider,
NotifyList oNotify)
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.
rowChange
public void rowChange(RowChangeEvent oEvent)
- Twister rowChange event. For us it means: "column info has changed".
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
setValueByNumber
public void setValueByNumber(int iColumnNumber,
Object oNewValue,
NotifyList oNotify)
- Different flavor "dynamic-setter". See @setValueByName.
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
firePropertyChange
public void firePropertyChange(String propertyName,
Object oldValue,
Object newValue)
All Packages Class Hierarchy This Package Previous Next Index