objectivehtml.htmlwidget
Class HtmlDiv

java.lang.Object
  |
  +--objectivehtml.oms.OMSObject
        |
        +--objectivehtml.htmlwidget.HtmlElement
              |
              +--objectivehtml.htmlwidget.HtmlWidget
                    |
                    +--objectivehtml.htmlwidget.HtmlContainerWidget
                          |
                          +--objectivehtml.htmlwidget.HtmlUnrestrictedContainerWidget
                                |
                                +--objectivehtml.htmlwidget.HtmlDiv

public class HtmlDiv
extends HtmlUnrestrictedContainerWidget

This class represents a html div element. i.e.

<div ... >

The widget offers a generic way to add html structural directives to children widgets. The widget has no visual presentation and is merely a grouping object.

Some examples of when this object can be used are:

  1. Applying a style-sheet class to all child widgets.
  2. Setting an alignment style for all the widgets contained by this widget.


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
HtmlDiv(HtmlContainerWidget objParent)
          Constructs an instance of the HtmlDiv object with the parent objParent.
 
Method Summary
 java.lang.String getAlign()
          Returns the alignment style of this object.
 void setAlign(java.lang.String sAlign)
          Sets the alignment style of this object.
 
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

HtmlDiv

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

getAlign

public java.lang.String getAlign()
Returns the alignment style of this object.
Returns:
the alignment style of this object
See Also:
setAlign(String)

setAlign

public void setAlign(java.lang.String sAlign)

Sets the alignment style of this object. Suitable values are "left", "center", "right" and "justify".

The html attribute it sets is "align".

Parameters:
sAlign - the alignment style for this widget, if null is specified then this attribute will be cleared
See Also:
getAlign()