<DIALOG> : Dialog Window

Java class : leon.view.LyDialog

ROLE

A dialog window is, generally, linked to a main window of an application.
Unlike the main window, it contains neither a menu, nor a message bar.
Its display can be modal (blocking) or not. This type of window is generally used to allow a user to interact with an application: input request, presentation of the results, warning messages, questions, etc.

ATTRIBUTES

<!ATTLIST DIALOG
	  id NMTOKEN #REQUIRED
	  template NMTOKEN #IMPLIED
	  label CDATA #IMPLIED
	  controller CDATA #IMPLIED
	  parentId CDATA #IMPLIED
	  width NMTOKEN #IMPLIED
	  height NMTOKEN #IMPLIED
	  resizable ( true | false) "false"
	  minWidth NMTOKEN #IMPLIED
	  minHeight NMTOKEN #IMPLIED
	  x NMTOKEN "0"
	  y NMTOKEN "0"
	  modal ( true | false) "false"
	  decorated ( true | false) "true"
	  target CDATA #IMPLIED>
Attribute Mand. Description Default
id yes Identifier of the dialog window  
template no DIALOG.template  
label no Title of the dialog window  
controller no Reference of the controller that manages this dialog window (i.e. handles user demands and refresh content).  
parentId no Internal identifier of the application of the parent window of the current dialog window.
The parent window can be a main window or another dialog window.
 
width no Initial width of the dialog window. -1
height no Initial height of the dialog window. -1
resizable no Indicates whether the dialog window can be resized or not. false
minWidth no Minimum width of the dialog window. -1
minHeight no Minimum height of the dialog window. -1
x no Initial position in abscissa of the dialog window. 0
y no Initial position in ordinate of the dialog window. 0
modal no Indicates whether the dialog window is modal or not. false
decorated no Indicates whether the dialog window is decorated or not. true
target no Identifier of the display zone for the dialog window.  

ELEMENTS

<!ELEMENT DIALOG 
	  (AREA?,
	   DATA*)>
Element Mand. Mult. Description
AREA no no Main area contained in the dialog window.
DATA no yes DIALOG.DATA

SAMPLE

<!-- Dialog Window containing an area with a form -->
<DIALOG label="LY_ACTION_CONSULT" parentId="_frame">
	<!-- Area of the dialog window -->
	
	<!-- End of the area of the dialog window -->
</DIALOG>