PAJES 3.0.21

org.pajes.html
Class HorizontalLine

java.lang.Object
  extended by org.pajes.html.Tag
      extended by org.pajes.html.HorizontalLine
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, HTML

public class HorizontalLine
extends Tag

Generates <hr> 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
HorizontalLine()
          Creates an empty horizontal line
HorizontalLine(java.lang.String width)
          Creates a horizontal line with the specified width.
HorizontalLine(java.lang.String width, java.lang.String alignment)
          Creates a horizontal line with the specified width and alignment
HorizontalLine(java.lang.String width, java.lang.String alignment, Color color)
          Creates a horizontal line with the specified width and alignment and color
 
Method Summary
 HorizontalLine setAlignment(java.lang.String alignment)
          Sets the alignment of the horizontal line.
 HorizontalLine setColor(Color color)
          Sets the color of the horizontal line.
 HorizontalLine setNoShade(boolean noShade)
          Sets whether the horizontal line will be displayed in 2D or 3D format.
 HorizontalLine setSize(int pixels)
          Sets the height of the horizontal line.
 HorizontalLine setSize(java.lang.Integer pixels)
          Sets the height of the horizontal line.
 HorizontalLine setWidth(java.lang.String width)
          Sets the width of the horizontal line.
 
Methods inherited from class org.pajes.html.Tag
addAttribute, addAttributes, addAttributes, addContent, clearAttribute, clearAttributes, clone, destroy, getAttribute, getAttributes, getAttributeSet, getContainer, getContent, getDocument, getId, getOnClickHandler, getOnDBLClickHandler, getOnKeyDownHandler, getOnKeyPressHandler, getOnKeyUpHandler, getOnMouseDownHandler, getOnMouseOutHandler, getOnMouseOverHandler, getOnMouseUpHandler, getParent, getStyle, getStyleSheetClass, getTagName, getTitle, getWritePermission, hasAttribute, init, initAttributes, isChildOf, isChildOf, isWritable, isWritable, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributes, setAttributes, setContainer, setContent, setContent, setId, setOnClickHandler, setOnDBLClickHandler, setOnKeyDownHandler, setOnKeyPressHandler, setOnKeyUpHandler, setOnMouseDownHandler, setOnMouseOutHandler, setOnMouseOverHandler, setOnMouseUpHandler, setParent, setStyle, setStyleSheetClass, setTagName, setTitle, setWritable, setWriteAttributes, setWriteEndTag, setWritelnAfter, setWritelnAfterContent, setWritelnBefore, setWritelnBeforeContent, setWritePermission, toString, write, writeContent
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HorizontalLine

public HorizontalLine()
Creates an empty horizontal line


HorizontalLine

public HorizontalLine(java.lang.String width)
Creates a horizontal line with the specified width.

Parameters:
width - the width of this horizontal line.

HorizontalLine

public HorizontalLine(java.lang.String width,
                      java.lang.String alignment)
Creates a horizontal line with the specified width and alignment

Parameters:
width - the width to be assigned to this horizontal line.
alignment - of the line

HorizontalLine

public HorizontalLine(java.lang.String width,
                      java.lang.String alignment,
                      Color color)
Creates a horizontal line with the specified width and alignment and color

Parameters:
width - the color to be assigned to this horizontal line.
alignment - of the line
color - of the line
Method Detail

setAlignment

public HorizontalLine setAlignment(java.lang.String alignment)
Sets the alignment of the horizontal line.

Parameters:
alignment - the alignment to be given to the horizontal line
Returns:
the modified HorizontalLine object,
Throws:
TagException - if an invalid alignment is specified.

setColor

public HorizontalLine setColor(Color color)
Sets the color of the horizontal line.

Parameters:
color - the color to be given to the horizontal line
Returns:
the modified HorizontalLine object,

setNoShade

public HorizontalLine setNoShade(boolean noShade)
Sets whether the horizontal line will be displayed in 2D or 3D format.

Parameters:
noShade - if true, the line will be displayed is 2D (flat) format, or if false (the default) in 3D (raised) format.
Returns:
the modified HorizontalLine object,

setSize

public HorizontalLine setSize(int pixels)
Sets the height of the horizontal line.

Parameters:
pixels - the height of the horizontal line in pixels.
Returns:
the modified HorizontalLine object,

setSize

public HorizontalLine setSize(java.lang.Integer pixels)
Sets the height of the horizontal line.

Parameters:
pixels - the height of the horizontal line in pixels.
Returns:
the modified HorizontalLine object,

setWidth

public HorizontalLine setWidth(java.lang.String width)
Sets the width of the horizontal line.

Parameters:
width - the width to be given to the horizontal line
Returns:
the modified HorizontalLine object,

PAJES 3.0.21

Copyright © 1998-2007 Viridian Pty Limited. All Rights Reserved.