Packageview.primeFaces.surfaceComponents.components
Classpublic class MainApplication
InheritanceMainApplication Inheritance Div Inheritance view.primeFaces.supportClasses.Container
Implements view.interfaces.INonDeletableSurfaceComponent, view.interfaces.IMainApplication, interfaces.IComponentPercentSizeOutput

Representation of index.html file.

Visual Editor XML:
     <MainApplication
     Attributes
     width="700"
     height="450"
     title=""
     wrap=""
     class="flexHorizontalLayoutWrap flexHorizontalLayoutLeft flexHorizontalLayoutTop">
      <Script>
          <![CDATA[ Some information ]]>
      </Script>
     </MainApplication>
     
HTML output:
      <?xml version="1.0" encoding="utf-8"?>
      <html xmlns="http://www.w3.org/1999/xhtml"
            xmlns:h="http://xmlns.jcp.org/jsf/html"
            xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
            xmlns:p="http://primefaces.org/ui">
      <h:head>
          <link rel="stylesheet" type="text/css" href="resources/moonshine-layout-styles.css"/>
          <title/>
      </h:head>
      <h:body>
          <div class="flexHorizontalLayout flexHorizontalLayoutLeft flexHorizontalLayoutTop"
               style="width:700px;height:450px;"/>
      </h:body>
      </html>
     

Default MXML PropertymxmlContentFactory



Public Properties
 PropertyDefined By
 InheritedcssClass : String
[read-only] HTML: class This property helps laying out children Horizontally or Vertically.
Div
 InheritedELEMENT_NAME : String = Div
[static]
Div
  height : Number
[override] PrimeFaces: none
MainApplication
 InheritedisDomino : Boolean = false
Div
  percentHeight : Number
[override] PrimeFaces: style
MainApplication
  percentWidth : Number
[override] PrimeFaces: style
MainApplication
  title : String
PrimeFaces: none
MainApplication
  width : Number
[override] [read-only] PrimeFaces: none
MainApplication
Protected Properties
 PropertyDefined By
 InheritedheightOutputChanged : Boolean
Div
 InheritedwidthOutputChanged : Boolean
Div
Public Methods
 MethodDefined By
  
MainApplication
  
fromXML(xml:XML, callback:Function, lookup:ILookup = null):void
[override]
MainApplication
  
setDominoProject(value:Boolean):void
MainApplication
 Inherited
Div
Protected Methods
 MethodDefined By
 Inherited
Div
Public Constants
 ConstantDefined By
  ELEMENT_NAME : String = MainApplication
[static]
MainApplication
 InheritedPRIME_FACES_XML_ELEMENT_NAME : String = div
[static]
Div
Property Detail
heightproperty
height:Number[override]

PrimeFaces: none

The default value is "450".

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:
<MainApplication height="450"/>
PrimeFaces:
<div style="width:700px;height:450px;"/>
percentHeightproperty 
percentHeight:Number[override]

PrimeFaces: style

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


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

Example
Visual Editor XML:
<MainApplication percentHeight="80"/>
PrimeFaces:
<div style="height:80%;"/>
percentWidthproperty 
percentWidth:Number[override]

PrimeFaces: style

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


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

Example
Visual Editor XML:
<MainApplication percentWidth="80"/>
PrimeFaces:
<div style="width:80%;"/>
titleproperty 
title:String

PrimeFaces: none


Implementation
    public function get title():String
    public function set title(value:String):void

Example
Visual Editor XML:
<MainApplication title=""/>
HTML:
<title></title>
widthproperty 
width:Number  [read-only] [override]

PrimeFaces: none

The default value is "700".

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


Implementation
    public function get width():Number

Example
Visual Editor XML:
<MainApplication width="700"/>
PrimeFaces:
<div style="width:700px;height:450px;"/>
Constructor Detail
MainApplication()Constructor
public function MainApplication()



Method Detail
fromXML()method
override public function fromXML(xml:XML, callback:Function, lookup:ILookup = null):void

Parameters

xml:XML
 
callback:Function
 
lookup:ILookup (default = null)

setDominoProject()method 
public function setDominoProject(value:Boolean):void

Parameters

value:Boolean

Constant Detail
ELEMENT_NAMEConstant
public static const ELEMENT_NAME:String = MainApplication