| java.lang.Object com.jcorporate.expresso.services.html.HtmlElement com.jcorporate.expresso.services.html.Text com.jcorporate.expresso.services.html.Heading
Heading | public class Heading extends Text (Code) | | An HTML Heading item
author: Michael Nash version: $Revision: 1.8 $ $Date: 2004/11/17 20:48:18 $ |
Constructor Summary | |
public | Heading() | public | Heading(String newString) | public | Heading(String newString, int newLevel) | public | Heading(String newString, String newStyle) | public | Heading(String newString, String newStyle, int newLevel) Constructor
Create a heading specifying the contents, style and level
Parameters: newString - String for the contents of the heading Parameters: newStyle - Style of the contents, e.g. |
Method Summary | |
protected void | display(PrintWriter out, int depth) | public synchronized void | setAlignment(String newAlignment) Set the horizontal alignment of the contents of this heading
Parameters: newAlignment - New alignment as a string. |
Heading | public Heading(String newString) throws HtmlException(Code) | | Constructor
Create the heading with the given name
Parameters: newString - the value for the heading |
Heading | public Heading(String newString, int newLevel) throws HtmlException(Code) | | Constructor
Create a heading with the given level and given string as contents
Parameters: newString - String for the contents of the heading Parameters: newLevel - Level of the heading throws: HtmlException - If the parameters are invalid |
Heading | public Heading(String newString, String newStyle) throws HtmlException(Code) | | Constructor
Build a heading object with the given contents and the given style
Parameters: newString - The string for the heading Parameters: newStyle - A style, such as "bold", or "italic" throws: HtmlException - If the parameters are invalid |
Heading | public Heading(String newString, String newStyle, int newLevel) throws HtmlException(Code) | | Constructor
Create a heading specifying the contents, style and level
Parameters: newString - String for the contents of the heading Parameters: newStyle - Style of the contents, e.g. "bold", "italic" Parameters: newLevel - Level of the heading throws: HtmlException - If the parameters are invalid |
display | protected void display(PrintWriter out, int depth) throws HtmlException(Code) | | Display the heading
Parameters: out - PrintWriter to display Parameters: depth - the number of tabs to indent throws: HtmlException - If the heading cannot be displayed |
setAlignment | public synchronized void setAlignment(String newAlignment) throws HtmlException(Code) | | Set the horizontal alignment of the contents of this heading
Parameters: newAlignment - New alignment as a string. Must be "left", "right"or "center" throws: HtmlException - If the parameter is invalid |
Fields inherited from com.jcorporate.expresso.services.html.Text | protected String contentString(Code)(Java Doc)
|
|
|