PAJES 2.3.9

org.pajes.html
Class Paragraph

java.lang.Object
  extended byorg.pajes.html.Tag
      extended byorg.pajes.html.TraversableElement
          extended byorg.pajes.html.Container
              extended byorg.pajes.html.Paragraph
All Implemented Interfaces:
java.lang.Cloneable, HTML, java.io.Serializable, TextContainer, Traversable

public class Paragraph
extends Container
implements TextContainer

This class generates the <P> tags.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.pajes.html.Tag
ON_CLICK_ATTRIBUTE, TAG_CLOSE, TAG_LEFT, TAG_RIGHT
 
Constructor Summary
Paragraph()
          Creates an empty paragraph
Paragraph(HTML htmlObject)
          Creates a paragraph containing the specified HTML object.
Paragraph(java.lang.String text)
          Creates a paragraph with the specified text.
 
Method Summary
 java.lang.String getContainedText()
          Returns the text that this object contains.
 Paragraph setAlignment(java.lang.String alignment)
          Sets the alignment of the paragraph.
 
Methods inherited from class org.pajes.html.Container
add, add, add, add, addContent, clear, clone, delete, delete, destroy, get, getContent, getContents, getPosition, insert, replace, set, setContent, setContent, size, writeContent
 
Methods inherited from class org.pajes.html.TraversableElement
dump, dump, getAll, getFieldByName, getFirstFieldByName, getFirstTagByAttribute, getFirstTagByClass, getFirstTagByID, getFirstTagByName, getTagByAttribute, getTagByClass, getTagByID, getTagByName, setWritable
 
Methods inherited from class org.pajes.html.Tag
addAttribute, addAttributes, addAttributes, clearAttribute, clearAttributes, getAttribute, getAttributes, getAttributeSet, getContainer, getDocument, getId, getOnClickHandler, getOnDBLClickHandler, getOnKeyDownHandler, getOnKeyPressHandler, getOnKeyUpHandler, getOnMouseDownHandler, getOnMouseOutHandler, getOnMouseOverHandler, getOnMouseUpHandler, getStyle, getStyleSheetClass, getTagName, getTitle, getWritePermission, init, initAttributes, isWritable, isWritable, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributes, setAttributes, setContainer, setId, setOnClickHandler, setOnDBLClickHandler, setOnKeyDownHandler, setOnKeyPressHandler, setOnKeyUpHandler, setOnMouseDownHandler, setOnMouseOutHandler, setOnMouseOverHandler, setOnMouseUpHandler, setStyle, setStyleSheetClass, setTagName, setTitle, setWritable, setWriteAttributes, setWriteEndTag, setWritelnAfter, setWritelnAfterContent, setWritelnBefore, setWritelnBeforeContent, setWritePermission, toString, write
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Paragraph

public Paragraph()
Creates an empty paragraph


Paragraph

public Paragraph(HTML htmlObject)
Creates a paragraph containing the specified HTML object.

Parameters:
htmlObject - the HTML object to be placed in the paragraph.

Paragraph

public Paragraph(java.lang.String text)
Creates a paragraph with the specified text.

Parameters:
text - the text to display as a paragraph.
Method Detail

setAlignment

public Paragraph setAlignment(java.lang.String alignment)
Sets the alignment of the paragraph.

Parameters:
alignment - Left, Center or Right
Returns:
the modified Paragraph object.
Throws:
TagException - if an invalid alignment is specified.

getContainedText

public java.lang.String getContainedText()
Description copied from interface: TextContainer
Returns the text that this object contains.

Specified by:
getContainedText in interface TextContainer
Returns:
the text that this object contains.
See Also:
TextContainer.getContainedText()

PAJES 2.3.9

Copyright © 2002-2003 Viridian Pty Limited. All Rights Reserved.