org.apache.ecs
Class P

java.lang.Object
  |
  +--org.apache.ecs.Element
        |
        +--org.apache.ecs.ElementAttributes
              |
              +--org.apache.ecs.MultiPartElement
                    |
                    +--org.apache.ecs.P

public class P
extends MultiPartElement

This class creates a <P> tag.

The P tag defaults to not having a closing </P> because it is optional in the spec. This can be overridden by setNeedClosingTag(true)

Version:
$Id: P.java,v 1.1.1.1 1999/04/20 01:18:58 jonbolt Exp $
Author:
Stephan Nagy, Jon S. Stevens

Fields inherited from class org.apache.ecs.MultiPartElement
v_element
 
Fields inherited from class org.apache.ecs.Element
attribute_filter, case_type, codeset, element, end_element, end_modifier, end_modifier_defined, filter, filter_attribute_state, filter_state, NO_ATTRIBUTE_VALUE, start_modifier, start_modifier_defined, VERSION
 
Constructor Summary
P()
          Basic constructor.
P(java.lang.String align)
          Use the set* methods to set the values of the attributes.
P(java.lang.String value, java.lang.String align)
          Use the set* methods to set the values of the attributes.
 
Method Summary
(package private)  void ()
          Private initialization routine.
 P addElement(Element element)
          Adds an Element to the element.
 P addElement(java.lang.String element)
          Adds an Element to the element.
 P setAlign(java.lang.String align)
          Sets the ALIGN="" attribute
 
Methods inherited from class org.apache.ecs.MultiPartElement
addElementToRegistry, addElementToRegistry, addElementToRegistry, addElementToRegistry, output, output, registryHasElement, registryHasElement, removeElementFromRegistry, removeElementFromRegistry
 
Methods inherited from class org.apache.ecs.ElementAttributes
setClass, setDir, setID, setLang, setStyle, setTitle
 
Methods inherited from class org.apache.ecs.Element
addAttribute, alterCase, getAttributeFilterState, getCase, getCodeSet, getElementHashEntry, getEndModifier, getEndModifierDefined, getFilter, getFilterState, getHtmlElementType, getNeedClosingTag, getStartModifier, getStartModifierDefined, getVersion, hasAttribute, removeAttribute, removeEndModifier, removeStartModifier, setAttributeFilter, setAttributeFilterState, setCase, setCodeSet, setEndModifier, setEndModifierDefined, setFilter, setFilterState, setHtmlElementType, setModifier, setModifier, setNeedClosingTag, setStartModifier, setStartModifierDefined, toString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Constructor Detail

P

public P()
Basic constructor. You need to set the attributes using the set* methods.

P

public P(java.lang.String align)
Use the set* methods to set the values of the attributes.
Parameters:
align - set the value of ALIGN=""

P

public P(java.lang.String value,
         java.lang.String align)
Use the set* methods to set the values of the attributes.
Parameters:
align - set the value of ALIGN=""
value - set the text after the <P> tag
Method Detail

void ()
Private initialization routine.
Overrides:
in class MultiPartElement

setAlign

public P setAlign(java.lang.String align)
Sets the ALIGN="" attribute
Parameters:
align - the ALIGN="" attribute

addElement

public P addElement(Element element)
Adds an Element to the element.
Parameters:
element - Adds an Element to the element.

addElement

public P addElement(java.lang.String element)
Adds an Element to the element.
Parameters:
element - Adds an Element to the element.