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.3 1999/04/22 01:35:06 stephan Exp $
- Author:
- Stephan Nagy, Jon S. Stevens
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.ElementAttributes |
addAttribute,
clone,
getAttributeFilter,
getAttributeFilterState,
getEndModifier,
getEndModifierDefined,
getStartModifier,
getStartModifierDefined,
hasAttribute,
removeAttribute,
removeEndModifier,
removeStartModifier,
setAttributeFilter,
setAttributeFilterState,
setClass,
setDir,
setEndModifier,
setEndModifierDefined,
setID,
setLang,
setModifier,
setModifier,
setStartModifier,
setStartModifierDefined,
setStyle,
setTitle |
Methods inherited from class org.apache.ecs.Element |
alterCase,
getCase,
getCodeSet,
getElementHashEntry,
getElementType,
getFilter,
getFilterState,
getNeedClosingTag,
getTagPosition,
getVersion,
setCase,
setCodeSet,
setElementType,
setFilter,
setFilterState,
setNeedClosingTag,
setTagPosition,
toString,
toString |
Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
wait,
wait,
wait |
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
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.