<div dir="ltr"><br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Franco H</b> <span dir="ltr">&lt;<a href="mailto:gusamh@gmail.com">gusamh@gmail.com</a>&gt;</span><br>
Date: Wed, Oct 9, 2013 at 2:44 PM<br>Subject: MEDIA HTML, LINK SIMPLE FUNCIONAN ???<br>To: Lista de la comunidad argentina de Ginga &lt;<a href="mailto:Ginga-argentina@lists.ourproject.org">Ginga-argentina@lists.ourproject.org</a>&gt;<br>
<br><br><div dir="ltr"><div><div><div>Hola acá envio una aplicación que muestra dos botones al precionar enter estando sobre alguna de ella debe mostrar una media html y una imgan según correnponda.<br><br></div>código:<br>
<br>&lt;?xml version=&quot;1.0&quot; encoding=&quot;ISO-8859-1&quot;?&gt;<br>
&lt;ncl id=&quot;htmlTest&quot; xmlns=&quot;<a href="http://www.ncl.org.br/NCL3.0/EDTVProfile" target="_blank">http://www.ncl.org.br/NCL3.0/EDTVProfile</a>&quot;&gt;<br>    &lt;head&gt;<br>        <br>        &lt;regionBase&gt;<br>
            &lt;region id=&quot;htmlRegion&quot; top=&quot;50&quot; height=&quot;400&quot; width=&quot;500&quot;  zIndex=&quot;1&quot;/&gt;<br>
            &lt;region id=&quot;rBoton&quot; bottom=&quot;10&quot; left=&quot;10&quot; height=&quot;25&quot; width=&quot;25&quot;  zIndex=&quot;2&quot;/&gt;<br>            &lt;region id=&quot;rBoton2&quot; bottom=&quot;10&quot; left=&quot;50&quot; height=&quot;25&quot; width=&quot;25&quot;  zIndex=&quot;2&quot;/&gt;<br>

        &lt;/regionBase&gt;<br>    <br>        &lt;descriptorBase&gt;<br>            &lt;descriptor id=&quot;htmlDescriptor&quot; region=&quot;htmlRegion&quot;/&gt;<br>            &lt;descriptor id=&quot;dBoton&quot; region=&quot;rBoton&quot; focusIndex=&quot;1&quot; moveRight=&quot;2&quot;/&gt;<br>

            &lt;descriptor id=&quot;dBoton2&quot; region=&quot;rBoton2&quot; focusIndex=&quot;2&quot; moveLeft=&quot;1&quot;/&gt;<br>        &lt;/descriptorBase&gt;<br>            &lt;connectorBase&gt;<br>            &lt;causalConnector id=&quot;onSelectionStart&quot;&gt;<br>

                &lt;connectorParam name=&quot;keyCode&quot;/&gt;<br>                &lt;simpleCondition key=&quot;$keyCode&quot; role=&quot;onSelection&quot; /&gt;<br>                &lt;simpleAction max=&quot;unbounded&quot; qualifier=&quot;par&quot; role=&quot;start&quot; /&gt;<br>

            &lt;/causalConnector&gt;<br>        &lt;/connectorBase&gt;<br>    &lt;/head&gt;<br>    &lt;body&gt;<br>        &lt;media id=&quot;boton&quot; src=&quot;resources/boton verde.png&quot; descriptor=&quot;dBoton&quot;/&gt;<br>

        &lt;media id=&quot;boton2&quot; src=&quot;resources/boton play.png&quot; descriptor=&quot;dBoton2&quot;/&gt;<br>        &lt;media id=&quot;imagen&quot; src=&quot;resources/images/lifia.jpg&quot; descriptor=&quot;htmlDescriptor&quot;/&gt;<br>

        &lt;port id=&quot;pBoton&quot; component=&quot;boton&quot;/&gt;<br>        &lt;port id=&quot;ppBoton&quot; component=&quot;boton2&quot;/&gt;<br>        &lt;media descriptor=&quot;htmlDescriptor&quot; id=&quot;html&quot; src=&quot;./resources/html/index2.html&quot; &gt;<br>

            &lt;property name=&quot;right&quot; value=&quot;10px&quot; /&gt;<br>            &lt;property name=&quot;width&quot; value=&quot;500px&quot; /&gt;<br>            &lt;property name=&quot;height&quot; value=&quot;434px&quot; /&gt;<br>

        &lt;/media&gt; <br>        <br>        &lt;link xconnector=&quot;onSelectionStart&quot;&gt;<br>            &lt;bind role=&quot;onSelection&quot; component=&quot;boton&quot;&gt;<br>                &lt;bindParam name=&quot;keyCode&quot; value=&quot;ENTER&quot;/&gt;<br>

            &lt;/bind&gt;<br>            &lt;bind role=&quot;start&quot; component=&quot;html&quot;/&gt;<br>        &lt;/link&gt;<br>        <br>        &lt;link xconnector=&quot;onSelectionStart&quot;&gt;<br>            &lt;bind role=&quot;onSelection&quot; component=&quot;boton2&quot;&gt;<br>

                &lt;bindParam name=&quot;keyCode&quot; value=&quot;ENTER&quot;/&gt;<br>            &lt;/bind&gt;<br>            &lt;bind role=&quot;start&quot; component=&quot;imagen&quot;/&gt;<br>        &lt;/link&gt;<br>

    &lt;/body&gt;<br>&lt;/ncl&gt;<br></div><br></div><div><div><div><div><br><br><br>
<br></div><div>EL LOG AL UTILIZAR LA OPCION DEL BOTON QUE DEBERIA MOSTRAR EL HTML ES LA SIGUIENTE<br><br><br>   --------------------------| Ginga.ar 2.1.0 (3250) |--------------------------<br>[canvas::System] Using system: use=gtk<br>

[canvas::System] DEBUG: Initialize<br>[canvas::gtk::Window] DEBUG: Initialize<br>[canvas::Window] DEBUG: Set size: old=(0,0), new=(720,576)<br>[canvas::Window] DEBUG: Update bounds on overlays: overlays=0<br>[canvas::player] Using player: use=vlc<br>

[canvas::vlc] Initialize<br>[ncl30-presenter::PresentationEngineManager] DEBUG: Start document: doc=/home/gusam/workspace/Test2.1.0/2.1.0/html/28_position.ncl<br>[ncl30-converter::PrivateBaseContext] DEBUG: Doc added, url=/home/gusam/workspace/Test2.1.0/2.1.0/html/28_position.ncl<br>

[gingaplayer::Manager] DEBUG: Reserve keys: listeners=0, id=0x985f690, size=9<br>[canvas::gtk::System] Main loop begin<br>[ncl30-presenter::FormatterMediator] DEBUG: start doc, id=htmlTest, interface=<br>[ncl30-presenter::FormatterConverter] DEBUG: compileExecutionObjectLinks, processing ncmLink &#39;&#39; inside &#39;-1/htmlTest/&#39;<br>

[ncl30-presenter::FormatterConverter] DEBUG: compileExecutionObjectLinks, can&#39;t process ncmLink &#39;&#39; inside &#39;-1/htmlTest/&#39;  because ncmLink does not contains &#39;boton&#39; src<br>[ncl30-presenter::FormatterConverter] DEBUG: compileExecutionObjectLinks, processing ncmLink &#39;&#39; inside &#39;-1/htmlTest/&#39;<br>

[ncl30-presenter::ncl::EventManager] DEBUG: Add listener, type=LinkTransitionTriggerCondition, listenerId=0x989743c, eventId=0x99becd8<br>[ncl30-presenter::FormatterLinkConverter] DEBUG: createCausalLink] inside &#39;-1/htmlTest/&#39; from ncmlinkId &#39;&#39;<br>

[ncl30-presenter::FormatterConverter] DEBUG: compileExecutionObjectLinks, processing ncmLink &#39;&#39; inside &#39;-1/htmlTest/&#39;<br>[ncl30-presenter::ncl::EventManager] DEBUG: Add listener, type=LinkTransitionTriggerCondition, listenerId=0x98c76ac, eventId=0x98c7598<br>

[ncl30-presenter::FormatterLinkConverter] DEBUG: createCausalLink] inside &#39;-1/htmlTest/&#39; from ncmlinkId &#39;&#39;<br>[ncl30-presenter::ncl::EventManager] DEBUG: Add listener, type=FormatterScheduler, listenerId=0x99bbe94, eventId=0x98c5b20<br>

[gingaplayer::Manager] DEBUG: Reserve keys: listeners=1, id=0x999d0f8, size=8<br>[ncl30-presenter::FormatterScheduler] DEBUG: runAction: event &#39;boton_1&#39; for &#39;-1/htmlTest/boton/dBoton&#39;<br>[ncl30-presenter::FormatterScheduler] DEBUG: runAction: event &#39;boton_1&#39; for &#39;-1/htmlTest/boton/dBoton&#39; START<br>

[gingaplayer::Device] Create player: type=image, schema=file, body=/home/gusam/workspace/Test2.1.0/2.1.0/html/resources/boton verde.png, mime=<br>[gingaplayer::player] DEBUG: Initialize<br>[gingaplayer::Player] DEBUG: Set property begin: name=src<br>

[gingaplayer::Player] DEBUG: Set property end: name=src, result=1<br>[gingaplayer::Player] DEBUG: Set property begin: name=type<br>[gingaplayer::Player] DEBUG: Set property end: name=type, result=1<br>[ncl30-presenter::FormatterRegion] DEBUG: bounds: x=10, y=541, w=25, h=25, z=2<br>

[gingaplayer::Player] DEBUG: Set property begin: name=bounds<br>[gingaplayer::Player] DEBUG: Set property end: name=bounds, result=1<br>[gingaplayer::Player] DEBUG: Set property begin: name=zIndex<br>[gingaplayer::Player] DEBUG: Set property end: name=zIndex, result=1<br>

[ncl30-presenter::ExecutionObject] DEBUG: prepare(-1/htmlTest/boton/dBoton)<br>[ncl30-presenter::ExecutionObject] DEBUG: prepare(-1/htmlTest/boton/dBoton) locked<br>[ncl30-presenter::ncl::EventManager] DEBUG: Add listener, type=CompositeExecutionObject, listenerId=0x985f3c8, eventId=0x9897178<br>

[ncl30-presenter::ncl::EventManager] DEBUG: Add listener, type=FormatterScheduler, listenerId=0x99bbe94, eventId=0x9897178<br>[gingaplayer::player] DEBUG: play<br>[gingaplayer::player] DEBUG: Can play begin<br>[gingaplayer::player] DEBUG: Can play: result=1<br>

[gingaplayer::GraphicPlayer] DEBUG: Start play<br>[gingaplayer::SurfaceProperties] DEBUG: Creating surface: pos=(10,541), size=(25,25)<br>[gingaplayer::SurfaceProperties] DEBUG: Creating surface: pos=(10,541), size=(25,25)<br>

[gingaplayer::player] DEBUG: Apply changes<br>[gingaplayer::SurfaceProperties] DEBUG: apply bounds: (10,541,25,25)<br>[gingaplayer::SurfaceProperties] DEBUG: apply bounds: (10,541,25,25)<br>[gingaplayer::GraphicPlayer] DEBUG: apply zIndex, value=2<br>

[gingaplayer::FocusProperties] DEBUG: Apply focus properties: focus=0, selected=0<br>[gingaplayer::GraphicProperties] DEBUG: apply visible, value=1<br>[gingaplayer::GraphicProperties] DEBUG: apply opacity, value=1,000000<br>

[gingaplayer::GraphicPlayer] DEBUG: Begin refresh<br>[gingaplayer::ImagePlayer] DEBUG: Draw image<br>[gingaplayer::GraphicPlayer] DEBUG: On property changed<br>[gingaplayer::FocusProperties] DEBUG: Apply focus properties: focus=0, selected=0<br>

[gingaplayer::Manager] DEBUG: Reserve keys: listeners=2, id=0x98965d0, size=1<br>[ncl30-presenter::ncl::EventManager] DEBUG: Before listener, type=FormatterScheduler, listenerId=0x99bbe94, eventId=0x9897178<br>[ncl30-presenter::FormatterScheduler] DEBUG: eventStateChanged: start, event: 0x9897178<br>

[ncl30-presenter::FormatterScheduler] DEBUG: eventStateChanged: &#39;boton_1&#39; transition &#39;0&#39;<br>[gingaplayer::Player::settings] DEBUG: get var, name=service.currentKeyMaster, value=<br>[gingaplayer::Player::settings] DEBUG: set property, name=service.currentFocus, value=&#39;1&#39;<br>

[gingaplayer::Player] DEBUG: Set property begin: name=focus<br>[gingaplayer::FocusProperties] DEBUG: Apply focus properties: focus=1, selected=0<br>[gingaplayer::GraphicPlayer] DEBUG: On property changed<br>[gingaplayer::FocusProperties] DEBUG: Apply focus properties: focus=1, selected=0<br>

[gingaplayer::Player] DEBUG: Set property end: name=focus, result=1<br>[ncl30-presenter::ncl::EventManager] DEBUG: After listener, type=FormatterScheduler, listenerId=0x99bbe94, eventId=0x9897178<br>[ncl30-presenter::ncl::EventManager] DEBUG: Before listener, type=CompositeExecutionObject, listenerId=0x985f3c8, eventId=0x9897178<br>

[ncl30-presenter::CompositeExecutionObject] DEBUG: eventStateChanged id=&#39;-1/htmlTest/&#39; transition=&#39;0&#39;<br>[ncl30-presenter::ncl::EventManager] DEBUG: Add listener, type=CompositeExecutionObject, listenerId=0x985f2f0, eventId=0x98c5b20<br>

[ncl30-presenter::CompositeExecutionObject] DEBUG: eventStateChanged id=&#39;-1/htmlTest/&#39; starting whole content<br>[ncl30-presenter::ncl::EventManager] DEBUG: Before listener, type=FormatterScheduler, listenerId=0x99bbe94, eventId=0x98c5b20<br>

[ncl30-presenter::ncl::EventManager] DEBUG: After listener, type=FormatterScheduler, listenerId=0x99bbe94, eventId=0x98c5b20<br>[ncl30-presenter::ncl::EventManager] DEBUG: Before listener, type=CompositeExecutionObject, listenerId=0x985f2f0, eventId=0x98c5b20<br>

[ncl30-presenter::ncl::EventManager] DEBUG: After listener, type=CompositeExecutionObject, listenerId=0x985f2f0, eventId=0x98c5b20<br>[ncl30-presenter::ncl::EventManager] DEBUG: After listener, type=CompositeExecutionObject, listenerId=0x985f3c8, eventId=0x9897178<br>

[gingaplayer::Player] DEBUG: Set property begin: name=visible<br>[gingaplayer::Player] DEBUG: Set property end: name=visible, result=1<br>[ncl30-presenter::FormatterScheduler] DEBUG: runAction: event &#39;boton2_1&#39; for &#39;-1/htmlTest/boton2/dBoton2&#39;<br>

[ncl30-presenter::FormatterScheduler] DEBUG: runAction: event &#39;boton2_1&#39; for &#39;-1/htmlTest/boton2/dBoton2&#39; START<br>[gingaplayer::Device] Create player: type=image, schema=file, body=/home/gusam/workspace/Test2.1.0/2.1.0/html/resources/boton play.png, mime=<br>

[gingaplayer::player] DEBUG: Initialize<br>[gingaplayer::Player] DEBUG: Set property begin: name=src<br>[gingaplayer::Player] DEBUG: Set property end: name=src, result=1<br>[gingaplayer::Player] DEBUG: Set property begin: name=type<br>

[gingaplayer::Player] DEBUG: Set property end: name=type, result=1<br>[ncl30-presenter::FormatterRegion] DEBUG: bounds: x=50, y=541, w=25, h=25, z=2<br>[gingaplayer::Player] DEBUG: Set property begin: name=bounds<br>[gingaplayer::Player] DEBUG: Set property end: name=bounds, result=1<br>

[gingaplayer::Player] DEBUG: Set property begin: name=zIndex<br>[gingaplayer::Player] DEBUG: Set property end: name=zIndex, result=1<br>[ncl30-presenter::ExecutionObject] DEBUG: prepare(-1/htmlTest/boton2/dBoton2)<br>[ncl30-presenter::ExecutionObject] DEBUG: prepare(-1/htmlTest/boton2/dBoton2) locked<br>

[ncl30-presenter::ncl::EventManager] DEBUG: Add listener, type=CompositeExecutionObject, listenerId=0x985f3c8, eventId=0x9890148<br>[ncl30-presenter::ncl::EventManager] DEBUG: Add listener, type=FormatterScheduler, listenerId=0x99bbe94, eventId=0x9890148<br>

[gingaplayer::player] DEBUG: play<br>[gingaplayer::player] DEBUG: Can play begin<br>[gingaplayer::player] DEBUG: Can play: result=1<br>[gingaplayer::GraphicPlayer] DEBUG: Start play<br>[gingaplayer::SurfaceProperties] DEBUG: Creating surface: pos=(50,541), size=(25,25)<br>

[gingaplayer::SurfaceProperties] DEBUG: Creating surface: pos=(50,541), size=(25,25)<br>[gingaplayer::player] DEBUG: Apply changes<br>[gingaplayer::SurfaceProperties] DEBUG: apply bounds: (50,541,25,25)<br>[gingaplayer::SurfaceProperties] DEBUG: apply bounds: (50,541,25,25)<br>

[gingaplayer::GraphicPlayer] DEBUG: apply zIndex, value=2<br>[gingaplayer::FocusProperties] DEBUG: Apply focus properties: focus=0, selected=0<br>[gingaplayer::GraphicProperties] DEBUG: apply visible, value=1<br>[gingaplayer::GraphicProperties] DEBUG: apply opacity, value=1,000000<br>

[gingaplayer::GraphicPlayer] DEBUG: Begin refresh<br>[gingaplayer::ImagePlayer] DEBUG: Draw image<br>[gingaplayer::GraphicPlayer] DEBUG: On property changed<br>[gingaplayer::FocusProperties] DEBUG: Apply focus properties: focus=0, selected=0<br>

[gingaplayer::Manager] DEBUG: Reserve keys: listeners=3, id=0x988eae0, size=1<br>[ncl30-presenter::ncl::EventManager] DEBUG: Before listener, type=FormatterScheduler, listenerId=0x99bbe94, eventId=0x9890148<br>[ncl30-presenter::FormatterScheduler] DEBUG: eventStateChanged: start, event: 0x9890148<br>

[ncl30-presenter::FormatterScheduler] DEBUG: eventStateChanged: &#39;boton2_1&#39; transition &#39;0&#39;<br>[gingaplayer::Player::settings] DEBUG: get var, name=service.currentFocus, value=1<br>[gingaplayer::Player::settings] DEBUG: get var, name=service.currentKeyMaster, value=<br>

[ncl30-presenter::ncl::EventManager] DEBUG: After listener, type=FormatterScheduler, listenerId=0x99bbe94, eventId=0x9890148<br>[ncl30-presenter::ncl::EventManager] DEBUG: Before listener, type=CompositeExecutionObject, listenerId=0x985f3c8, eventId=0x9890148<br>

[ncl30-presenter::CompositeExecutionObject] DEBUG: eventStateChanged id=&#39;-1/htmlTest/&#39; transition=&#39;0&#39;<br>[ncl30-presenter::ncl::EventManager] DEBUG: After listener, type=CompositeExecutionObject, listenerId=0x985f3c8, eventId=0x9890148<br>

[gingaplayer::Player] DEBUG: Set property begin: name=visible<br>[gingaplayer::Player] DEBUG: Set property end: name=visible, result=1<br>[canvas::Canvas] DEBUG: Flush: toBlit=3, regions=1<br>[canvas::Canvas] DEBUG: Surface to blit: 0x9897e30, zIndex=1<br>

[canvas::Canvas] DEBUG: Surface to blit: 0x988f378, zIndex=2<br>[canvas::Canvas] DEBUG: Surface to blit: 0x988c608, zIndex=1<br>[canvas::System] DEBUG: Dispatch key: key=95, isUp=0<br>[canvas::System] DEBUG: Dispatch notify: type=0<br>

[gingaplayer::Manager] DEBUG: Dispatch key code: listeners=4, key=95<br>[gingaplayer::Player] DEBUG: Set property begin: name=focusSelected<br>[gingaplayer::FocusProperties] DEBUG: Apply focus properties: focus=1, selected=1<br>

[gingaplayer::GraphicPlayer] DEBUG: On property changed<br>[gingaplayer::FocusProperties] DEBUG: Apply focus properties: focus=1, selected=1<br>[canvas::Canvas] DEBUG: Flush: toBlit=2, regions=1<br>[canvas::Canvas] DEBUG: Surface to blit: 0x9897e30, zIndex=1<br>

[canvas::Canvas] DEBUG: Surface to blit: 0x988f378, zIndex=2<br>[gingaplayer::Player] DEBUG: Set property end: name=focusSelected, result=1<br>[ncl30-presenter::FormatterFocusManager] DEBUG: changeSettingState: number of settings objects: &#39;0&#39;<br>

[gingaplayer::Player::settings] DEBUG: set property, name=service.currentKeyMaster, value=&#39;boton&#39;<br>[gingaplayer::TimeLineTimer] DEBUG: uptime: state=2, _elapsed=0<br>[ncl30-presenter::FormatterFocusManager] DEBUG: changeSettingState: number of settings objects: &#39;0&#39;<br>

[gingaplayer::Manager] DEBUG: Dispatch key, key=95, listener=0x999d0f8<br>[gingaplayer::TimeLineTimer] DEBUG: uptime: state=2, _elapsed=0<br>[ncl30-presenter::ExecutionObject] DEBUG: select(-1/htmlTest/boton/dBoton) starting event &#39;boton_0_ENTER&#39;<br>

[ncl30-presenter::ncl::EventManager] DEBUG: Before listener, type=LinkTransitionTriggerCondition, listenerId=0x989743c, eventId=0x99becd8<br>[ncl30-presenter::ncl::EventManager] DEBUG: After listener, type=LinkTransitionTriggerCondition, listenerId=0x989743c, eventId=0x99becd8<br>

[ncl30-presenter::ncl::EventManager] DEBUG: Before listener, type=LinkTransitionTriggerCondition, listenerId=0x989743c, even<br><br></div><div>Ahora bien si en los links reemplazmos por teclas green y red funciona algunas veces y otras no.<br>

</div><div>Haciendo variaciones en el link aveces funciona y a veces no.<br><br></div><div>La pregunta es, están mal los link?<br></div><div>Porque a veces funciona?<br></div><div>Cuando un link es simple y utiliza la misma tecla sobre diferentes componentes que estan siendo exhibidos, funciona?<br>

<br></div><div>En esta misma aplicacion se utilizo un link compuesto en la que entra en juego el focus, pero tiene el mismo comportamiento.<br><br></div><div>Bueno espero noticias y que quede solucionado si es un problema de <a href="http://GINGA.AR" target="_blank">GINGA.AR</a> o si yo soy el problema también que quede solucionado. <br>

<br></div><div>Muchas Gracias.<span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888"><div>-- <br><div>Analista Funcional - Poder Judicial de la Nación</div><div>Asistente - UNPA</div>
AdeS. Herrera Franco
</div></font></span></div></div></div></div>
</div><br><br clear="all"><div><br></div>-- <br><div>Analista Funcional - Poder Judicial de la Nación</div><div>Asistente - UNPA</div>AdeS. Herrera Franco
</div>