Package | view.primeFaces.surfaceComponents.components |
Class | public class MainApplication |
Inheritance | MainApplication ![]() ![]() |
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
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: none
| MainApplication | ||
![]() | isDomino : 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 |
Method | Defined By | ||
---|---|---|---|
MainApplication | |||
fromXML(xml:XML, callback:Function, lookup:ILookup = null):void [override] | MainApplication | ||
setDominoProject(value:Boolean):void | MainApplication | ||
![]() | toRoyaleConvertCode():XML | Div |
Constant | Defined By | ||
---|---|---|---|
ELEMENT_NAME : String = MainApplication [static] | MainApplication | ||
![]() | PRIME_FACES_XML_ELEMENT_NAME : String = div [static] | Div |
height | property |
height:Number
[override]
PrimeFaces: none
The default value is "450"
.
This property can be used as the source for data binding.
public function get height():Number
public function set height(value:Number):void
<MainApplication height="450"/>
<div style="width:700px;height:450px;"/>
percentHeight | property |
percentHeight:Number
[override]
PrimeFaces: style
This property can be used as the source for data binding.
public function get percentHeight():Number
public function set percentHeight(value:Number):void
<MainApplication percentHeight="80"/>
<div style="height:80%;"/>
percentWidth | property |
percentWidth:Number
[override]
PrimeFaces: style
This property can be used as the source for data binding.
public function get percentWidth():Number
public function set percentWidth(value:Number):void
<MainApplication percentWidth="80"/>
<div style="width:80%;"/>
title | property |
title:String
PrimeFaces: none
public function get title():String
public function set title(value:String):void
<MainApplication title=""/>
<title></title>
width | property |
width:Number
[read-only] [override]
PrimeFaces: none
The default value is "700"
.
This property can be used as the source for data binding.
public function get width():Number
<MainApplication width="700"/>
<div style="width:700px;height:450px;"/>
MainApplication | () | Constructor |
public function MainApplication()
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 |
ELEMENT_NAME | Constant |
public static const ELEMENT_NAME:String = MainApplication