org.apache.ecs
Class HR

java.lang.Object
  |
  +--org.apache.ecs.Element
        |
        +--org.apache.ecs.ElementAttributes
              |
              +--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.1.1.1 1999/04/20 01:18:57 jonbolt Exp $
Author:
Stephan Nagy, Jon S. Stevens

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
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 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.SinglePartElement
output, output
 
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

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 java.lang.Object

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