| Package | view.primeFaces.surfaceComponents.components |
| Class | public class PanelGrid |
| Inheritance | PanelGrid view.primeFaces.supportClasses.table.Table |
| Implements | view.interfaces.IGetChildrenSurfaceComponent, view.interfaces.IHistorySurfaceCustomHandlerComponent, interfaces.IComponentSizeOutput, view.interfaces.ICDATAInformation |
Representation of PrimeFaces panelGrid component.
Visual Editor XML: Example 1:
<PanelGrid
Attributes
width="100"
height="30"/>
<Header name="header">
<Row>
<Column>Header Title 1</Column>
<Column>Header Title 2</Column>
</Row>
</Header>
<Row>
<Column>
some control (ex: OutputLabel) which displays text
</Column>
<Column>
some control (ex: OutputLabel) which displays text
</Column>
</Row>
</PanelGrid>
Example 2 - With control:
<PanelGrid
Attributes
width="100"
height="30"/>
<Header name="header">
<Row>
<Column>Header Title 1</Column>
<Column>Header Title 2</Column>
</Row>
</Header>
<Row>
<Column>
<Div class="flexHorizontalLayout flexHorizontalLayoutLeft flexHorizontalLayoutTop">
<OutputLabel width="100" height="30" value="Label"/>
</Div>
</Column>
<Column>
<Div class="flexHorizontalLayout flexHorizontalLayoutLeft flexHorizontalLayoutTop">
<OutputLabel width="100" height="30" value="Label"/>
</Div>
</Column>
</Row>
</PanelGrid>
PrimeFaces output:
Output for Example 1:
<p:panelGrid
Attributes
width="100"
height="30"/>
<f:facet name="header">
<p:row>
<p:column>Header Title 1</p:column>
<p:column>Header Title 2</p:column>
</p:row>
</f:facet>
<p:row>
<p:column>
<div class="flexHorizontalLayout flexHorizontalLayoutLeft flexHorizontalLayoutTop"/>
</p:column>
<p:column>
<div class="flexHorizontalLayout flexHorizontalLayoutLeft flexHorizontalLayoutTop"/>
</p:column>
</p:row>
</p:panelGrid>
Output for Example 2:
<p:panelGrid
Attributes
width="100"
height="30"/>
<f:facet name="header">
<p:row>
<p:column>Header Title 1</p:column>
<p:column>Header Title 2</p:column>
</p:row>
</f:facet>
<p:row>
<p:column><p:outputLabel style="width:100px;height:30px;" value="Label Text"/></p:column>
<p:column><p:outputLabel style="width:100px;height:30px;" value="Label Text"/></p:column>
</p:row>
</p:panelGrid>
Default MXML PropertymxmlContentFactory
| Property | Defined By | ||
|---|---|---|---|
| columnCount : int [override] [read-only]
PrimeFaces: columnCount (Optional)
| PanelGrid | ||
| headerRowCount : int [override] [read-only]
PrimeFaces: headerRowCount (Optional)
| PanelGrid | ||
| height : Number [override]
PrimeFaces: style
| PanelGrid | ||
| percentHeight : Number [override] [read-only]
PrimeFaces: style
| PanelGrid | ||
| percentWidth : Number [override] [read-only]
PrimeFaces: style
| PanelGrid | ||
| rowCount : int [override] [read-only]
PrimeFaces: rowCount (Optional)
| PanelGrid | ||
| width : Number [override] [read-only]
PrimeFaces: style
| PanelGrid | ||
| Method | Defined By | ||
|---|---|---|---|
| PanelGrid | |||
getTitle(row:int, col:int):String | PanelGrid | ||
toRora():XML | PanelGrid | ||
toRoyaleConvertCode():XML | PanelGrid | ||
| Method | Defined By | ||
|---|---|---|---|
createChildren():void [override] | PanelGrid | ||
updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void [override] | PanelGrid | ||
| Constant | Defined By | ||
|---|---|---|---|
| ELEMENT_NAME : String = PanelGrid [static] | PanelGrid | ||
| PRIME_FACES_XML_ELEMENT_NAME : String = panelGrid [static] | PanelGrid | ||
| columnCount | property |
columnCount:int [read-only] [override]
PrimeFaces: columnCount (Optional)
The default value is "1".
public function get columnCount():int<PanelGrid columnCount="1"/>
| headerRowCount | property |
headerRowCount:int [read-only] [override]
PrimeFaces: headerRowCount (Optional)
The default value is "1".
public function get headerRowCount():int<PanelGrid headerRowCount="1"/>
| 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<PanelGrid height="120"/>
<p:panelGrid style="height:120px;"/>
| 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<PanelGrid percentHeight="80"/>
<p:panelGrid 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<PanelGrid percentWidth="80"/>
<p:panelGrid style="width:80%;"/>
| rowCount | property |
rowCount:int [read-only] [override]
PrimeFaces: rowCount (Optional)
The default value is "1".
public function get rowCount():int<PanelGrid rowCount="1"/>
| 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<PanelGrid width="120"/>
<p:panelGrid style="width:120px;"/>
| PanelGrid | () | Constructor |
public function PanelGrid()| createChildren | () | method |
override protected function createChildren():void| getTitle | () | method |
public function getTitle(row:int, col:int):StringParameters
row:int | |
col:int |
String |
| toRora | () | method |
public function toRora():XMLReturnsXML |
| toRoyaleConvertCode | () | method |
public function toRoyaleConvertCode():XMLReturnsXML |
| updateDisplayList | () | method |
override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):voidParameters
unscaledWidth:Number | |
unscaledHeight:Number |
| ELEMENT_NAME | Constant |
public static const ELEMENT_NAME:String = PanelGrid| PRIME_FACES_XML_ELEMENT_NAME | Constant |
public static const PRIME_FACES_XML_ELEMENT_NAME:String = panelGrid