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:
- Create an instance of the bean.
- Fill in the bean's properties. These are the standard properties
of a java.awt.TextArea object.
- 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.
- Repeated uses of the Select bean's next() method will cause
additional rows to be displayed within the Viewer.
- Use the clear() method to clear all data from within the
Viewer.
- See Also:
- Select, ViewerBeanInfo
-
additionalRow
- Vector of input objects.
-
Viewer()
- Default constructor.
-
clear()
- Method to clear out the TextArea's contents.
-
createDisplayRow()
- Method to convert a Vector of objects to a concatenation of their
string representations.
-
finalize()
- Finalize this object.
-
getAdditionalRow()
- Returns the current input row.
-
setAdditionalRow(Vector)
- Set the input row for viewing.
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.
Viewer
public Viewer()
- Default constructor.
finalize
protected void finalize() throws Throwable
- Finalize this object.
- Throws: Throwable
- Possibly thrown by the superclass.
- Overrides:
- finalize in class Object
getAdditionalRow
public Vector getAdditionalRow()
- Returns the current input row.
- Returns:
- Current input Vector row.
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.
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.
clear
public synchronized void clear()
- Method to clear out the TextArea's contents.
All Packages Class Hierarchy This Package Previous Next Index