<FRAME> : Main Window

Java class : leon.view.LyFrame

ROLE

The root of an XML file describing a complete Application Engine view is an element of main window or dialog window type (see the next chapter).

ATTRIBUTES

<!ATTLIST FRAME
	  id NMTOKEN #REQUIRED
	  template NMTOKEN #IMPLIED
	  label CDATA #IMPLIED
	  controller CDATA #IMPLIED
	  parentId CDATA #IMPLIED
	  width NMTOKEN #IMPLIED
	  height NMTOKEN #IMPLIED
	  resizable ( true | false) "true"
	  decorated ( true | false) "true"
	  minWidth NMTOKEN #IMPLIED
	  minHeight NMTOKEN #IMPLIED
	  x NMTOKEN "0"
	  y NMTOKEN "0"
	  target CDATA #IMPLIED>
Attribute Mand. Description Default
id yes Identifier of the main window  
template no FRAME.template  
label no Title of the main window  
controller no Reference of the controller that manages the main window (i.e. handles user demands and refresh content).  
parentId no Identifier internal to the application of the main window that is parent of the current main window.  
width no Initial width of the main window. -1
height no Initial height of the main window. -1
resizable no Indicates whether the main window can be resized or not. true
decorated no Indicates whether the main window is decorated or not. true
minWidth no Minimum width of the main window. -1
minHeight no Minimum height of the main window. -1
x no Initial position in abscissa of the main window. 0
y no Initial position in ordinate of the main window. 0
target no Name of the frame where the view is displayed (used with multi-frames viewers like web viewers or eclipse viewer).  

ELEMENTS

<!ELEMENT FRAME 
	  (ICON?,
	   MENUBAR?,
	   AREA?,
	   MESSAGES?,
	   DATA*)>
Element Mand. Mult. Description
ICON no no Icon of the main window.
MENUBAR no no Menu bar of the main window.
AREA no no Main area contained in the main window.
MESSAGES no no Message bar of the main window.
DATA no yes FRAME.DATA

SAMPLE

<!-- Main window containing an icon and a message bar -->
<FRAME label="Carte" resizable="false" width="500" height="300">
	<ICON label="Carte" image="map.gif"/>
	<!-- Content of the window-->
	...	
	<!-- End of the content of the window-->  
	<!-- Message bar containing a message -->
	<MESSAGES>
		<MESSAGE label='7 objects (none is selected)' size='10'/>
		<MESSAGE label='No filter' image='LY_UNACTIVE_FILTER' 			size='10'/>
	</MESSAGES>
</FRAME>