Re: creating child compound component

"Guijarro, Julio" <[email protected]> Thu, 22 Mar 2007 13:51:42 -0000
Newsgroups gmane.comp.java.smartfrog.devel
Message-ID <[email protected]>
This is a multi-part message in MIME format.

--===============0198639450==
Content-class: urn:content-classes:message
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01C76C89.852F318D"

This is a multi-part message in MIME format.

------_=_NextPart_001_01C76C89.852F318D
Content-Type: text/plain;
	charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable

Hi,

=20

________________________________

From: smartfrog-developer-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
[mailto:smartfrog-developer-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf Of
Kalbagilmath, Vishwanath (STSD)
Sent: 16 March 2007 05:33
To: smartfrog-developer-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: [Smartfrog-developer] creating child compound component

=20

hi,

Is it possible to create a new child component of type Compound under
another Compound component, I could see a method sfCreateNewChild()
which creates child of type Prim, however I did not find one for
Compound component. Is the purpose of sfAddChild(), to convert the child
Prim component to Compound?

=20

sfCreateNewChild() can create any type of child as long as it implements
Prim interface. Compound implements Prim (aka Primitive) and the same
with every SmartFrog component.

sfCreateNewChild() will use sfAddChild(). You don't need to use
sfAddChild() unless you manage you deployment manually.


I understand that, when a child SF component (either Prim or Compound)
is created, it undergoes its entire lifecycle. Can the entire lifecycle
process be bypassed?

Yes, but it is up to the parent to decide this. Compound will drive its
children through their lifecycle but other components like Parallel will
behave in a different way.

Programmatically you can change all this to fit your requirements. Check
this thread for more info

http://thread.gmane.org/gmane.comp.java.smartfrog.devel/517/focus=3D521

PS:
=20
Reminder: the lists archives with RSS feeds are available at:
http://news.gmane.org/search.php?match=3Dsmartfrog


Thanks in adv,
--ViK


------_=_NextPart_001_01C76C89.852F318D
Content-Type: text/html;
	charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;}
pre
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:10.0pt;
	font-family:"Courier New";}
span.EmailStyle17
	{mso-style-type:personal-reply;
	font-family:Arial;
	color:navy;}
@page Section1
	{size:595.3pt 841.9pt;
	margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
	{page:Section1;}
-->
</style>

</head>

<body lang=3DEN-GB link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Hi,<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div class=3DMsoNormal align=3Dcenter style=3D'text-align:center'><font =
size=3D3
face=3D"Times New Roman"><span lang=3DEN-US style=3D'font-size:12.0pt'>

<hr size=3D2 width=3D"100%" align=3Dcenter tabindex=3D-1>

</span></font></div>

<p class=3DMsoNormal><b><font size=3D2 face=3DTahoma><span lang=3DEN-US
style=3D'font-size:10.0pt;font-family:Tahoma;font-weight:bold'>From:</spa=
n></font></b><font
size=3D2 face=3DTahoma><span lang=3DEN-US =
style=3D'font-size:10.0pt;font-family:Tahoma'>
smartfrog-developer-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
[mailto:smartfrog-developer-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] <b><span
style=3D'font-weight:bold'>On Behalf Of </span></b>Kalbagilmath, =
Vishwanath
(STSD)<br>
<b><span style=3D'font-weight:bold'>Sent:</span></b> 16 March 2007 =
05:33<br>
<b><span style=3D'font-weight:bold'>To:</span></b>
smartfrog-developer-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org<br>
<b><span style=3D'font-weight:bold'>Subject:</span></b> =
[Smartfrog-developer]
creating child compound component</span></font><span =
lang=3DEN-US><o:p></o:p></span></p>

</div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal style=3D'margin-bottom:12.0pt'><font size=3D3
face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>hi,<br>
<br>
Is it possible to create a new child component of type Compound under =
another
Compound component, I could see a method sfCreateNewChild() which =
creates child
of type Prim, however I did not find one for Compound component. Is the =
purpose
of sfAddChild(), to convert the child Prim component to Compound?<font
color=3Dnavy><span =
style=3D'color:navy'><o:p></o:p></span></font></span></font></p>

<p class=3DMsoNormal style=3D'margin-bottom:12.0pt'><font size=3D2 =
color=3Dnavy
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p>=
</span></font></p>

<p class=3DMsoNormal style=3D'margin-bottom:12.0pt'><font size=3D2 =
color=3Dnavy
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>sfCreateNewChild(=
)
can create any type of child as long as it implements Prim interface. =
Compound
implements Prim (aka Primitive) and the same with every SmartFrog =
component.<o:p></o:p></span></font></p>

<p class=3DMsoNormal style=3D'margin-bottom:12.0pt'><font size=3D3 =
color=3Dnavy
face=3D"Times New Roman"><span =
style=3D'font-size:12.0pt;color:navy'>sfCreateNewChild()
will use sfAddChild(). You don&#8217;t need to use sfAddChild() unless =
you manage
you deployment manually.<o:p></o:p></span></font></p>

<p class=3DMsoNormal style=3D'margin-bottom:12.0pt'><font size=3D3
face=3D"Times New Roman"><span style=3D'font-size:12.0pt'><br>
I understand that, when a child SF component (either Prim or Compound) =
is
created, it undergoes its entire lifecycle. Can the entire lifecycle =
process be
bypassed?<font color=3Dnavy><span =
style=3D'color:navy'><o:p></o:p></span></font></span></font></p>

<p class=3DMsoNormal style=3D'margin-bottom:12.0pt'><font size=3D2 =
color=3Dnavy
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>Yes, but
it is up to the parent to decide this. Compound will drive its children =
through
their lifecycle but other components like Parallel will behave in a =
different
way.<o:p></o:p></span></font></p>

<p class=3DMsoNormal style=3D'margin-bottom:12.0pt'><font size=3D2 =
color=3Dnavy
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>Programmatically
you can change all this to fit your requirements. Check this thread for =
more
info<o:p></o:p></span></font></p>

<p class=3DMsoNormal style=3D'margin-bottom:12.0pt'><font size=3D2 =
color=3Dnavy
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>http://thread.gma=
ne.org/gmane.comp.java.smartfrog.devel/517/focus=3D521<o:p></o:p></span><=
/font></p>

<pre><font size=3D2 color=3Dblack face=3D"Courier New"><span =
style=3D'font-size:10.0pt;
color:black'>PS:<o:p></o:p></span></font></pre><pre><font size=3D2 =
color=3Dblack
face=3D"Courier New"><span =
style=3D'font-size:10.0pt;color:black'><o:p>&nbsp;</o:p></span></font></p=
re><pre><font
size=3D2 color=3Dblack face=3D"Courier New"><span =
style=3D'font-size:10.0pt;color:black'>Reminder: the lists archives with =
RSS feeds are available at:<o:p></o:p></span></font></pre><pre><font
size=3D2 color=3Dblack face=3D"Courier New"><span =
style=3D'font-size:10.0pt;color:black'><a
href=3D"http://news.gmane.org/search.php?match=3Dsmartfrog" =
target=3D"_top">http://news.gmane.org/search.php?match=3Dsmartfrog</a><o:=
p></o:p></span></font></pre>

<p class=3DMsoNormal style=3D'margin-bottom:12.0pt'><font size=3D3
face=3D"Times New Roman"><span style=3D'font-size:12.0pt'><br>
Thanks in adv,<br>
--ViK</span></font><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p></o:p></span></font></p>

</div>

</body>

</html>

------_=_NextPart_001_01C76C89.852F318D--


--===============0198639450==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
--===============0198639450==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Smartfrog-developer mailing list
Smartfrog-developer-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/smartfrog-developer

--===============0198639450==--