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:
- Applying a style-sheet class to all child widgets.
- Setting an alignment style for all the widgets contained by this widget.
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.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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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 validInvalidChildWidgetException
- if the parent widget does not accept this widget as a child
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()