Class HtmlParagraph


public class HtmlParagraph
extends HtmlUnrestrictedContainerWidget

This class represents a html paragraph. i.e.

<p ... >

On its own the object provides no visual presentation, but rather needs to be used with children widgets to offer any visual appearance. The widget will group its children into a paragraph and will pass on style-sheet properties onto its children.

Fields inherited from class objectivehtml.htmlwidget.HtmlContainerWidget
m_alChildrenWidgets, m_bAutoEscape, m_sText
Fields inherited from class objectivehtml.htmlwidget.HtmlWidget
m_bDestroyed, m_bVisible, m_objHtmlForm, m_objParentWidget
Fields inherited from class objectivehtml.htmlwidget.HtmlElement
m_hmAttributes, m_sEndTag, m_sQuoteType, m_sStartTag
Constructor Summary
HtmlParagraph(HtmlContainerWidget objParent)
          Constructs an instance of HtmlParagraph.
Method Summary
 java.lang.String getAlign()
          Returns the alignment of this paragraph.
 void setAlign(java.lang.String sAlign)
          Sets the alignment for this paragraph.
Methods inherited from class objectivehtml.htmlwidget.HtmlUnrestrictedContainerWidget
appendChild, destroy, insertChild, setVisible
Methods inherited from class objectivehtml.htmlwidget.HtmlContainerWidget
addHtmlWidget, generateUpdateOrder, getChildrenCount, getChildrenWidgets, getChildWidget, getText, indexOfChildWidget, insertHtmlWidget, isAutoEscape, isChildWidget, isValidChildWidget, printHtml, printHtml, removeHtmlWidget, setAttribute, setAutoEscape, setBooleanAttribute, setText, swapHtmlWidgets
Methods inherited from class objectivehtml.htmlwidget.HtmlWidget
changeParent, changeParent, getClassAttribute, getHtmlForm, getID, getOnClick, getOnDblClick, getOnKeyDown, getOnKeyPress, getOnKeyUp, getOnMouseDown, getOnMouseMove, getOnMouseOut, getOnMouseOver, getOnMouseUp, getParent, getStyle, isDestroyed, isVisible, setClassAttribute, setID, setOnClick, setOnDblClick, setOnKeyDown, setOnKeyPress, setOnKeyUp, setOnMouseDown, setOnMouseMove, setOnMouseOut, setOnMouseOver, setOnMouseUp, setStyle
Methods inherited from class objectivehtml.htmlwidget.HtmlElement
genEndTag, genStartTag, genStartTag, getAttribute, getAttributes, getBooleanAttribute, getQuoteType, printHtml, printHtml, printHtml, printHtml, printHtml, printHtml, setAttribute, setBooleanAttribute, setQuoteType, toString, toString
Methods inherited from class objectivehtml.oms.OMSObject
compareClasses, connect, disconnect, emit, isAlive, setAlive, signal, slot, slot
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail


public HtmlParagraph(HtmlContainerWidget objParent)
              throws InvalidParentWidgetException,
Constructs an instance of HtmlParagraph.
objParent - the parent of this widget
InvalidParentWidgetException - if the specified parent widget is not valid
InvalidChildWidgetException - if the parent widget does not accept this widget as a child
Method Detail


public java.lang.String getAlign()
Returns the alignment of this paragraph.
the align for this element, null is returned if the attribute is not set
See Also:
setAlign(String), HtmlElement.getAttribute(String)


public void setAlign(java.lang.String sAlign)

Sets the alignment for this paragraph. All text and widgets contained in this object will be aligned accordingly to this alignment. Typical values are "left", "center", "right" and "justify".

The html attribute it sets is "align".

If null is specified the attribute is cleared.

sAlign - the align for this element
See Also:
HtmlElement.setAttribute(String, String), getAlign()