4.8Pop-ups and components

4.8.1The Popup tag (*)

Description

The « popup » tag allows to add a pop-up in a page.

(*) This tag is available only for the JSF presentation layer.

Example

Rendering

output_html_4c661589.png


XHTML

settings


<bluage:Popup id="cp_searchPopup" title="Bluage popup" attributes="display-order=1,width=550px,height=520px,left=200px,top=110px,resize=0,scrolling=1" >

</bluage:Popup>

Screen    activity    diagramN/A
Entities    DiagramN/A
Service    activity    diagramN/A

Tag attributes: reference

TagPopup
DescriptionAllows a pop-up insertion
Diagram

output_html_46226e5f.jpg

Tag attributes: description

AttributeRequiredDescription
id YID
title YWindow title
attributesY

Window displaying attributes: size, position, behaviour.

Attributes must be separated by commas (,) (see table)

style NPop-up title style

Pop-up attributes:

AttributExempleDescription
widthwidth=600pxWindow width in px (pixels)
heightheight=450pxWindow height in px
leftleft=30pxWindow horizontal position
toptop=100pxWindow vertical position
centercenter=1Says whether the pop-up position must be central or not. 1=yes, 0=no.
resizeresize=0Says whether the pop-up’s size may be modified or not. 1=yes, 0=no
scrollingscrolling=0Says whether the pop-up may have a scroll-bar menu or not. 1=yes, 0=no
display-orderdisplay-order=2Used with multi-level pop-ups (one pop-up is calling another pop-up) to define the pop-ups displaying order. The biggest display-order will be displayed in the foreground.

 output_html_135b9d38.png

When the pop-up is included in a component, the “showpopup” must have the following shape: « id_composant:id_popup ».

4.8.2The Component tag

Description

The component is a re-useable unit defined by a page (visual part) and an activity diagram (behavior part). It may be included in several different pages

Example

Rendering

output_html_74fb0400.png


XHTML

settings


  • Screen using component

<bluage:Component id="menuComponent" name="menu">

<bluage:Attribute name="userMenu" instancename="userConnected">

</bluage:Attribute>

</bluage:Component>

  • Component screen

Welcome&nbsp;<bluage:DynamicText id="id" instancename="userMenu" tablefield="User.login"></bluage:DynamicText>

Screen    activity    diagram

output_html_61e8fa2f.png

output_html_m3e817cbd.png

Entities    Diagram

output_html_4fcd766.png

Service    activity    diagramN/A

Tag attributes: reference

TagComponent
DescriptionAllows a component insertion
Diagram

output_html_m25529ef.jpg

Tag attributes: description

AttributeRequiredDescription
idOComponent ID
nameOComponent corresponding html page name

4.8.3The Attribute tag

Description

Allows to define a component attribute.

Tag attributes: reference

TagAttribute
DescriptionAllows to define a component attribute

Tag attributes: description

AttributeRequiredDescription
NameOShows the component page object instance name.
InstancenameOObject instance name.
UsechildNShows the class and the sub-object bound to the component
ListNAllows to define if the attribut corresponds to a collection or not : « true » or « false » (default value).
TablefieldNAllows to define instances type.

output_html_135b9d38.png


  • The component page is set up the same way as an ordinary page.
  • The « name » attribute of an « attribute » tag defines an instance transmitted to the component, that will be synchronized with the instance entered in the “instancename” attribute
  • If the « usechild » attribute is filled, the instance entered in the “name” attribute will be synchronized with the sub-object of the instance entered in “instancename”.
  • The component page activity diagram is designed the same way as all other pages.
  • The component page activity diagram must be « COMPONENT_VEW » stereotyped
  • The component page must not be a destination page (neither in the activity diagrams nor in the parameterized mock-up.

BLU AGE is a registered trademark of NETFECTIVE TECHNOLOGY S.A. - Trademarks are property of their respective owners
Do not copy or divulge without written permission