org.apache.ecs
Class HR

java.lang.Object
  |
  +--org.apache.ecs.Element
        |
        +--org.apache.ecs.ElementAttributes
              |
              +--org.apache.ecs.ConcreteElement
                    |
                    +--org.apache.ecs.SinglePartElement
                          |
                          +--org.apache.ecs.HR

public class HR
extends SinglePartElement

This class creates an <HR> tag.

Version:
$Id: HR.java,v 1.4 1999/05/14 23:40:36 jonbolt Exp $
Author:
Stephan Nagy, Jon S. Stevens

Fields inherited from class org.apache.ecs.ConcreteElement
h_element, v_element
 
Fields inherited from class org.apache.ecs.ElementAttributes
attribute_filter, end_modifier, end_modifier_defined, filter_attribute_state, NO_ATTRIBUTE_VALUE, start_modifier, start_modifier_defined, TAG, TEXT
 
Fields inherited from class org.apache.ecs.Element
case_type, codeset, element, end_element, filter, filter_state, position, VERSION
 
Constructor Summary
HR()
          Basic constructor.
HR(int width)
          Basic constructor
HR(int width, java.lang.String align)
          Basic constructor
HR(int width, java.lang.String align, int size)
          Basic constructor
HR(java.lang.String width)
          Basic constructor
HR(java.lang.String width, java.lang.String align)
          Basic constructor
HR(java.lang.String width, java.lang.String align, int size)
          Basic constructor
HR(java.lang.String width, java.lang.String align, java.lang.String size)
          Basic constructor
 
Method Summary
(package private)  void ()
          Private initialization routine.
 HR addElement(Element element)
          Adds an Element to the element.
 HR addElement(java.lang.String element)
          Adds an Element to the element.
 HR removeElement(java.lang.String hashcode)
          Removes an Element from the element.
 HR setAlign(java.lang.String align)
          Sets the ALIGN="" attribute
 HR setNoShade(boolean shade)
          Sets the noshade
 HR setSize(int size)
          Sets the SIZE="" attribute
 HR setSize(java.lang.String size)
          Sets the SIZE="" attribute
 HR setWidth(int width)
          Sets the WIDTH="" attribute
 HR setWidth(java.lang.String width)
          Sets the WIDTH="" attribute
 
Methods inherited from class org.apache.ecs.ConcreteElement
addElementToRegistry, addElementToRegistry, addElementToRegistry, addElementToRegistry, addElementToRegistry, addElementToRegistry, addElementToRegistry, addElementToRegistry, output, output, registryHasElement, registryHasElement, removeElementFromRegistry, removeElementFromRegistry
 
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
 

Constructor Detail

HR

public HR()
Basic constructor. Use the set* methods to set the attibutes.

HR

public HR(java.lang.String width)
Basic constructor
Parameters:
width - sets the WIDTH="" attribute

HR

public HR(int width)
Basic constructor
Parameters:
width - sets the WIDTH="" attribute

HR

public HR(java.lang.String width,
          java.lang.String align)
Basic constructor
Parameters:
width - sets the WIDTH="" attribute
align - sets the ALIGN="" attribute

HR

public HR(int width,
          java.lang.String align)
Basic constructor
Parameters:
width - sets the WIDTH="" attribute
align - sets the ALIGN="" attribute

HR

public HR(java.lang.String width,
          java.lang.String align,
          java.lang.String size)
Basic constructor
Parameters:
width - sets the WIDTH="" attribute
align - sets the ALIGN="" attribute
size - sets the SIZE="" attribute

HR

public HR(java.lang.String width,
          java.lang.String align,
          int size)
Basic constructor
Parameters:
width - sets the WIDTH="" attribute
align - sets the ALIGN="" attribute
size - sets the SIZE="" attribute

HR

public HR(int width,
          java.lang.String align,
          int size)
Basic constructor
Parameters:
width - sets the WIDTH="" attribute
align - sets the ALIGN="" attribute
size - sets the SIZE="" attribute
Method Detail

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

setWidth

public HR setWidth(java.lang.String width)
Sets the WIDTH="" attribute
Parameters:
width - the WIDTH="" attribute

setWidth

public HR setWidth(int width)
Sets the WIDTH="" attribute
Parameters:
width - the WIDTH="" attribute

setAlign

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

setSize

public HR setSize(java.lang.String size)
Sets the SIZE="" attribute
Parameters:
hspace - the SIZE="" attribute

setSize

public HR setSize(int size)
Sets the SIZE="" attribute
Parameters:
hspace - the SIZE="" attribute

setNoShade

public HR setNoShade(boolean shade)
Sets the noshade
Parameters:
shade - true or false

addElement

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

addElement

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

removeElement

public HR removeElement(java.lang.String hashcode)
Removes an Element from the element.
Parameters:
hashcode - the name of the element to be removed.