SilverStream
Application Server 3.5

com.sssw.shr.page
Class AgpBlock

java.lang.Object
 |
 +--com.sssw.shr.page.AgpTag
       |
       +--com.sssw.shr.page.AgpControlBase
             |
             +--com.sssw.shr.page.AgpBlock
All Implemented Interfaces:
AgiJavaScriptEnhanced, AgiPageControl, Cloneable, Externalizable, Serializable
Direct Known Subclasses:
AgpContainer, AgpTableCell

public class AgpBlock
extends AgpControlBase

AgpBlock represents a block in a container.

See Also:
Serialized Form

Fields inherited from class com.sssw.shr.page.AgpTag
UNIT_PERCENT, UNIT_PIXEL
 
Constructor Summary
AgpBlock()
           
 
Method Summary
 Vector getControls()
          Returns the controls contained in this block.
 
Methods inherited from class com.sssw.shr.page.AgpControlBase
getName
 
Methods inherited from class com.sssw.shr.page.AgpTag
getBoolProperty, getEnableHTMLGeneration, getIntArrayProperty, getIntProperty, getIntPropertyUnit, getProperty, getStringArrayProperty, invalidateHTML, removeProperty, setEnableHTMLGeneration, setIntProperty, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods implemented from interface com.sssw.shr.page.AgiJavaScriptEnhanced
generateFunction, generateRepaintScript, generateScriptInitializers, getFunctionNameForMethod, getFunctionNames, getMethodNames, getScriptObjectName, isHTMLRepaintPending, isJavaScriptRepaintPending
 
Methods implemented from interface com.sssw.shr.page.AgiPageControl
generateHTML, getPrefix, notifyPageLoaded, notifyPageRequestBegin, notifyPageRequestEnd, notifyPostValue, notifyPostValues
 
Methods implemented from interface java.io.Externalizable
readExternal, writeExternal
 

Constructor Detail

AgpBlock

public AgpBlock()
Method Detail

getControls

public Vector getControls()
Returns the controls contained in this block.
Usage:

The vector should not be modified.

Example:

This code fragment set the state of all checkboxes in a block to true.

 	int i, n;
 	Vector v = block.getControls();
 	n = v.size();
 	for (i = 0; i < n; i++)
 	{
 	    AgiPageControl control = (AgiPageControl) v.elementAt(i);
 	    if (control instanceof AgpButtonCheck)
 	    {
 	        AgpButtonCheck checkbox = (AgpButtonCheck) control;
 	        checkbox.setState(false);
 	    }
 	}
 

SilverStream
Application Server 3.5