| java.lang.Object com.jcorporate.expresso.services.html.HtmlElement
All known Subclasses: com.jcorporate.expresso.services.html.Form, com.jcorporate.expresso.services.html.CheckBox, com.jcorporate.expresso.services.html.ReportPage, com.jcorporate.expresso.services.html.StackTrace, com.jcorporate.expresso.services.html.Radio, com.jcorporate.expresso.services.html.Row, com.jcorporate.expresso.services.html.Cell, com.jcorporate.expresso.services.html.DropDown, com.jcorporate.expresso.services.html.HiddenField, com.jcorporate.expresso.services.html.Text, com.jcorporate.expresso.services.html.TextArea, com.jcorporate.expresso.services.html.List, com.jcorporate.expresso.services.html.Button, com.jcorporate.expresso.services.html.ListItem, com.jcorporate.expresso.services.html.Break, com.jcorporate.expresso.services.html.FileInput, com.jcorporate.expresso.services.html.TextField, com.jcorporate.expresso.services.html.Paragraph, com.jcorporate.expresso.services.html.Table, com.jcorporate.expresso.services.html.Page,
HtmlElement | abstract public class HtmlElement (Code) | | Base class for all of the HTML elements on a page
author: Michael Nash version: $Revision: 1.12 $ $Date: 2004/11/17 20:48:18 $ |
HtmlElement | public HtmlElement(HtmlElement newElement) throws HtmlException(Code) | | Constructor
Create the element with the given element as it's contents
Parameters: newElement - Element to use as contents of this new element throws: HtmlException - If the element cannot be used or the paramter is invalid |
HtmlElement | public HtmlElement(String elementName) throws HtmlException(Code) | | Constructor
Create an element with a name
Parameters: elementName - The name of the new element throws: HtmlException - If the element cannot be created |
add | public synchronized void add(HtmlElement newElement) throws HtmlException(Code) | | Add a new element to this element's contents
Parameters: newElement - Element to be added throws: HtmlException - If the element cannot be added |
display | protected void display(OutputStream out) throws HtmlException(Code) | | Alternate display method using an output stream
Parameters: out - Outputstream to use to display to the client throws: HtmlException - If the element (or it's contents) cannot be displayed |
display | abstract protected void display(PrintWriter out, int depth) throws HtmlException(Code) | | Display the element to the client
Each HtmlElement must implement this method
Parameters: out - PrintWriter to display to the client Parameters: depth - the number of tabs to indent throws: HtmlException - If the element (or it's contents) cannot be displayed |
finalize | protected void finalize() throws HtmlException(Code) | | See if the object has been displayed
throws: HtmlException - if the object has never been displayed |
getAttribute | public Object getAttribute(String attribName) throws HtmlException(Code) | | Get an attribute from this element
Parameters: attribName - Name of the attribute to be set Value of the attribute throws: HtmlException - If the attribute cannot be retrieved |
getContentCount | public int getContentCount()(Code) | | Return the count of contents in this item
integer |
getName | public String getName() throws HtmlException(Code) | | Return the name of this element
String The name throws: HtmlException - If the name cannot be accessed or the object has itselfas a parent |
padWithTabs | protected void padWithTabs(PrintWriter out, int count)(Code) | | Pad the output with particular nesting tabs supplies in essence source
formatting.
Parameters: out - the output stream Parameters: count - the number of tabs to display |
setAttribute | public synchronized void setAttribute(String attribName, Object attribValue) throws HtmlException(Code) | | Set an attribute for this element
Parameters: attribName - Name of the attribute to be set Parameters: attribValue - Value of the attribute to be set throws: HtmlException - If the attribute cannot be set |
setCSSClass | public void setCSSClass(String className)(Code) | | Parameters: className - the CSS class name |
setCSSID | public void setCSSID(String id)(Code) | | Parameters: id - the CSS id |
setDisplayed | protected void setDisplayed() throws HtmlException(Code) | | Mark this object as having been displayed
throws: HtmlException - If the object has already been displayed |
setParent | protected void setParent(HtmlElement newParent) throws HtmlException(Code) | | Set the parent of this element to the named element
Parameters: newParent - The new parent element of this element throws: HtmlException - If the given element cannot be used as a parent or theparameter is invalid |
|
|