Package | view.primeFaces.surfaceComponents.components |
Class | public class Div |
Inheritance | Div ![]() |
Implements | view.interfaces.IGetChildrenSurfaceComponent, view.interfaces.IDiv, view.interfaces.IHistorySurfaceComponent, interfaces.IComponentSizeOutput, view.interfaces.IDropAcceptableComponent, view.interfaces.ICDATAInformation |
Subclasses | MainApplication, RootDiv |
Representation of div in HTML
Visual Editor XML:<Div Attributes width="120" height="120" percentWidth="80" percentHeight="80" class="flexHorizontalLayout flexHorizontalLayoutLeft flexHorizontalLayoutTop"> <Script> <![CDATA[ Some information ]]> </Script> </Div>PrimeFaces output:
<div Attributes style="width:120px;height:120px;" class="flexHorizontalLayout flexHorizontalLayoutLeft flexHorizontalLayoutTop"/>
Default MXML PropertymxmlContentFactory
Property | Defined By | ||
---|---|---|---|
cssClass : String [read-only]
HTML: class
This property helps laying out children Horizontally or Vertically. | Div | ||
ELEMENT_NAME : String = Div [static] | Div | ||
height : Number [override]
PrimeFaces: style
| Div | ||
isDomino : Boolean = false | Div | ||
percentHeight : Number [override] [read-only]
PrimeFaces: style
| Div | ||
percentWidth : Number [override] [read-only]
PrimeFaces: style
| Div | ||
width : Number [override] [read-only]
PrimeFaces: style
| Div |
Property | Defined By | ||
---|---|---|---|
heightOutputChanged : Boolean | Div | ||
widthOutputChanged : Boolean | Div |
Method | Defined By | ||
---|---|---|---|
Div() | Div | ||
toRoyaleConvertCode():XML | Div |
Method | Defined By | ||
---|---|---|---|
Div |
Constant | Defined By | ||
---|---|---|---|
PRIME_FACES_XML_ELEMENT_NAME : String = div [static] | Div |
cssClass | property |
cssClass:String
[read-only]
HTML: class
This property helps laying out children Horizontally or Vertically. It uses browser FlexBox mechanism to avoid problems which occurs when children in div are positioned using default mechanism. Exported PrimeFaces project contains moonshine-layout-styles.css file which has classes ready to use for laying out children.
Use listed css classes to laying out children:
Horizontal Layout
Vertical Layout
Horizontal/Vertical Layout
The default value is "flexHorizontalLayoutWrap flexHorizontalLayoutLeft flexHorizontalLayoutTop"
.
public function get cssClass():String
<Div class="flexHorizontalLayoutWrap flexHorizontalLayoutLeft flexHorizontalLayoutTop"/>
<div class="flexHorizontalLayoutWrap flexHorizontalLayoutLeft flexHorizontalLayoutTop"/>
ELEMENT_NAME | property |
public static var ELEMENT_NAME:String = Div
height | property |
height:Number
[override]
PrimeFaces: style
The default value is "120"
.
This property can be used as the source for data binding.
public function get height():Number
public function set height(value:Number):void
<Div height="120"/>
<div style="height:120px;"/>
heightOutputChanged | property |
protected var heightOutputChanged:Boolean
isDomino | property |
public var isDomino:Boolean = false
percentHeight | property |
percentHeight:Number
[read-only] [override]
PrimeFaces: style
This property can be used as the source for data binding.
public function get percentHeight():Number
<Div percentHeight="80"/>
<div style="height:80%;"/>
percentWidth | property |
percentWidth:Number
[read-only] [override]
PrimeFaces: style
This property can be used as the source for data binding.
public function get percentWidth():Number
<Div percentWidth="80"/>
<div style="width:80%;"/>
width | property |
width:Number
[read-only] [override]
PrimeFaces: style
The default value is "120"
.
This property can be used as the source for data binding.
public function get width():Number
<Div width="120"/>
<div style="width:120px;"/>
widthOutputChanged | property |
protected var widthOutputChanged:Boolean
Div | () | Constructor |
public function Div()
resetPercentWidthHeightBasedOnLayout | () | method |
protected function resetPercentWidthHeightBasedOnLayout():void
toRoyaleConvertCode | () | method |
public function toRoyaleConvertCode():XML
ReturnsXML |
PRIME_FACES_XML_ELEMENT_NAME | Constant |
public static const PRIME_FACES_XML_ELEMENT_NAME:String = div