All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.beans.samples.daps.sql.Viewer

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.TextComponent
                   |
                   +----java.awt.TextArea
                           |
                           +----com.ibm.beans.samples.daps.sql.Viewer

public class Viewer
extends TextArea
The Viewer class supports viewing of the result row a Select statement.

To use the Viewer bean, do the following:

  1. Create an instance of the bean.
  2. Fill in the bean's properties. These are the standard properties of a java.awt.TextArea object.
  3. Bind an existing Select bean's resultRow property to this bean's additionalRow property. This will cause execution of the next() method on the Select bean to also set the additionalRow property on this bean.
  4. Repeated uses of the Select bean's next() method will cause additional rows to be displayed within the Viewer.
  5. Use the clear() method to clear all data from within the Viewer.

See Also:
Select, ViewerBeanInfo

Variable Index

 o additionalRow
Vector of input objects.

Constructor Index

 o Viewer()
Default constructor.

Method Index

 o clear()
Method to clear out the TextArea's contents.
 o createDisplayRow()
Method to convert a Vector of objects to a concatenation of their string representations.
 o finalize()
Finalize this object.
 o getAdditionalRow()
Returns the current input row.
 o setAdditionalRow(Vector)
Set the input row for viewing.

Variables

 o additionalRow
 protected transient Vector additionalRow
Vector of input objects.

These are used by the createDisplayRow method to create a string representation of the SQL result row.

Constructors

 o Viewer
 public Viewer()
Default constructor.

Methods

 o finalize
 protected void finalize() throws Throwable
Finalize this object.

Throws: Throwable
Possibly thrown by the superclass.
Overrides:
finalize in class Object
 o getAdditionalRow
 public Vector getAdditionalRow()
Returns the current input row.

Returns:
Current input Vector row.
 o setAdditionalRow
 public synchronized void setAdditionalRow(Vector additionalRow)
Set the input row for viewing.

Parameters:
additionalRow - The input Vector row of objects from the SQL Select statement.
 o createDisplayRow
 protected String createDisplayRow()
Method to convert a Vector of objects to a concatenation of their string representations.

Returns:
A string representation of the current row.
 o clear
 public synchronized void clear()
Method to clear out the TextArea's contents.


All Packages  Class Hierarchy  This Package  Previous  Next  Index