Packageview.primeFaces.surfaceComponents.components
Classpublic class PanelGrid
InheritancePanelGrid Inheritance 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



Public Properties
 PropertyDefined 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
Public Methods
 MethodDefined By
  
PanelGrid
  
getTitle(row:int, col:int):String
PanelGrid
  
toRora():XML
PanelGrid
  
PanelGrid
Protected Methods
 MethodDefined By
  
[override]
PanelGrid
  
updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
[override]
PanelGrid
Public Constants
 ConstantDefined By
  ELEMENT_NAME : String = PanelGrid
[static]
PanelGrid
  PRIME_FACES_XML_ELEMENT_NAME : String = panelGrid
[static]
PanelGrid
Property Detail
columnCountproperty
columnCount:int  [read-only] [override]

PrimeFaces: columnCount (Optional)

The default value is "1".


Implementation
    public function get columnCount():int

Example
Visual Editor XML:
<PanelGrid columnCount="1"/>
headerRowCountproperty 
headerRowCount:int  [read-only] [override]

PrimeFaces: headerRowCount (Optional)

The default value is "1".


Implementation
    public function get headerRowCount():int

Example
Visual Editor XML:
<PanelGrid headerRowCount="1"/>
heightproperty 
height:Number[override]

PrimeFaces: style

The default value is "120".

This property can be used as the source for data binding.


Implementation
    public function get height():Number
    public function set height(value:Number):void

Example
Visual Editor XML:
<PanelGrid height="120"/>
PrimeFaces:
<p:panelGrid style="height:120px;"/>
percentHeightproperty 
percentHeight:Number  [read-only] [override]

PrimeFaces: style

This property can be used as the source for data binding.


Implementation
    public function get percentHeight():Number

Example
Visual Editor XML:
<PanelGrid percentHeight="80"/>
PrimeFaces:
<p:panelGrid style="height:80%;"/>
percentWidthproperty 
percentWidth:Number  [read-only] [override]

PrimeFaces: style

This property can be used as the source for data binding.


Implementation
    public function get percentWidth():Number

Example
Visual Editor XML:
<PanelGrid percentWidth="80"/>
PrimeFaces:
<p:panelGrid style="width:80%;"/>
rowCountproperty 
rowCount:int  [read-only] [override]

PrimeFaces: rowCount (Optional)

The default value is "1".


Implementation
    public function get rowCount():int

Example
Visual Editor XML:
<PanelGrid rowCount="1"/>
widthproperty 
width:Number  [read-only] [override]

PrimeFaces: style

The default value is "120".

This property can be used as the source for data binding.


Implementation
    public function get width():Number

Example
Visual Editor XML:
<PanelGrid width="120"/>
PrimeFaces:
<p:panelGrid style="width:120px;"/>
Constructor Detail
PanelGrid()Constructor
public function PanelGrid()



Method Detail
createChildren()method
override protected function createChildren():void

getTitle()method 
public function getTitle(row:int, col:int):String

Parameters

row:int
 
col:int

Returns
String
toRora()method 
public function toRora():XML

Returns
XML
toRoyaleConvertCode()method 
public function toRoyaleConvertCode():XML

Returns
XML
updateDisplayList()method 
override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void

Parameters

unscaledWidth:Number
 
unscaledHeight:Number

Constant Detail
ELEMENT_NAMEConstant
public static const ELEMENT_NAME:String = PanelGrid

PRIME_FACES_XML_ELEMENT_NAMEConstant 
public static const PRIME_FACES_XML_ELEMENT_NAME:String = panelGrid