com.ibm.dse.gui.jspbeans
Class JSPAbstractContainer

java.lang.Object
  |
  +--com.ibm.dse.gui.jspbeans.JSPAbstractContainer
Direct Known Subclasses:
JSPFormControlBean, JSPPageControlBean

public abstract class JSPAbstractContainer
extends java.lang.Object
implements JSPContainer

Provides a base class to develop customized JSPBeans to use in JSP pages and generate HTML content Containers group JSPBeans and control simple design time errors


Field Summary
protected  java.util.Hashtable _properties
           
static java.lang.String GET
           
static java.lang.String NULL
           
static java.lang.String POST
           
static java.lang.String SELF
           
static java.lang.String TOP
           
 
Constructor Summary
JSPAbstractContainer()
          JSPAbstractContainer constructor In this constructor all "EXISTING" properties must be created
JSPAbstractContainer(JspContextServices anInterface, java.lang.String aDataName)
          JSPAbstractContainer constructor
 
Method Summary
 void add(JSPComponent aComponent)
          Adds a component
protected  JSPComponent elementAt(int index)
          Returns an element from the list of components.
 java.util.Vector getComponents()
          Gets all the components in this container.
 java.lang.String getDataName()
          Returns the DataName associated to the bean
 java.util.Vector getErrorList()
          Returns the list of errors associated to this bean as a Vector of String's
 JspContextServices getInterface()
          Returns the value associated to the key that is passed as an argument.
 java.lang.Object getProperty(java.lang.String aPropertyName)
          Returns the value associated to the key that is passed as an argument.
 void inherit(JSPContainer aContainer)
          Checks the list of properties of this instance which are inheritable and if they are not set take them from the container.
 void putError(java.lang.String anErrorMessage)
          Adds an error message to the error list of the bean
 java.lang.String renderComponents()
          Calls all the renderers of the child of this container and retrieves their errors
 void setDataName(java.lang.String aName)
          Sets the value of the dataname associated to the bean
 void setInterface(JspContextServices aJSPContextServices)
          Sets the object that implements a JspContextServices used to access the operation's context
 void setProperty(java.lang.String aPropertyName, java.lang.Object aPropertyValue)
          Associates a value to a given key: Property names are case-sensitive
protected  int size()
          Returns the number of JSPBeans this container contains
abstract  java.lang.String toHTMLString()
          The renderer of the JSPBean
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_properties

protected java.util.Hashtable _properties

GET

public static final java.lang.String GET

POST

public static final java.lang.String POST

SELF

public static final java.lang.String SELF

TOP

public static final java.lang.String TOP

NULL

public static final java.lang.String NULL
Constructor Detail

JSPAbstractContainer

public JSPAbstractContainer()
JSPAbstractContainer constructor In this constructor all "EXISTING" properties must be created

JSPAbstractContainer

public JSPAbstractContainer(JspContextServices anInterface,
                            java.lang.String aDataName)
JSPAbstractContainer constructor
Parameters:
anInterface - com.ibm.dse.cs.html.JspContextServices
aDataName - java.lang.String
Method Detail

add

public void add(JSPComponent aComponent)
Adds a component
Specified by:
add in interface JSPContainer
Tags copied from interface: JSPContainer
Parameters:
aComponent - com.ibm.JSPBeans.JSPComponent

elementAt

protected JSPComponent elementAt(int index)
Returns an element from the list of components.
Returns:
com.ibm.dse.JSPBeans.JSPComponent

getComponents

public java.util.Vector getComponents()
Gets all the components in this container.
Returns:
a vector of all the components in this container.

getDataName

public java.lang.String getDataName()
Returns the DataName associated to the bean
Returns:
string

getErrorList

public java.util.Vector getErrorList()
Returns the list of errors associated to this bean as a Vector of String's
Tags copied from interface: JSPComponent
Returns:
Vector

getInterface

public JspContextServices getInterface()
Returns the value associated to the key that is passed as an argument. If the property doesn't exist it adds an error to the error list.Property names are case-sensitive
Specified by:
getInterface in interface JSPContainer
Tags copied from interface: JSPContainer
Returns:
com.ibm.dse.cs.html.JspContextServices

getProperty

public java.lang.Object getProperty(java.lang.String aPropertyName)
Returns the value associated to the key that is passed as an argument. If the property doesn't exist it adds an error to the error list. Property names are case-sensitive
Tags copied from interface: JSPComponent
Parameters:
aPropertyName - java.lang.String
Returns:
Object

inherit

public void inherit(JSPContainer aContainer)
Checks the list of properties of this instance which are inheritable and if they are not set take them from the container.
Parameters:
aContainer - com.ibm.dse.JSPBeans.JSPContainer

putError

public void putError(java.lang.String anErrorMessage)
Adds an error message to the error list of the bean
Parameters:
anErrorMessage - java.lang.String

renderComponents

public java.lang.String renderComponents()
Calls all the renderers of the child of this container and retrieves their errors
Returns:
string

setDataName

public void setDataName(java.lang.String aName)
Sets the value of the dataname associated to the bean
Tags copied from interface: JSPComponent
Parameters:
aName - java.lang.String

setInterface

public void setInterface(JspContextServices aJSPContextServices)
Sets the object that implements a JspContextServices used to access the operation's context
Parameters:
aJSPContextServices - com.ibm.dse.cs.html.JspContextServices

setProperty

public void setProperty(java.lang.String aPropertyName,
                        java.lang.Object aPropertyValue)
Associates a value to a given key: Property names are case-sensitive
Tags copied from interface: JSPComponent
Parameters:
aPropertyName - java.lang.String
aPropertyValue - java.lang.String

size

protected int size()
Returns the number of JSPBeans this container contains
Returns:
int

toHTMLString

public abstract java.lang.String toHTMLString()
The renderer of the JSPBean
Returns:
string