[jboss-cvs] jboss-profiler/java/webapp/lzx ...

Takuro Okada t2-okada at nri.co.jp
Thu Dec 21 06:21:09 EST 2006


  User: tokada  
  Date: 06/12/21 06:21:09

  Modified:    java/webapp/lzx     Tag: JBossProfiler_Expansion
                        borderedpane.lzx stacktracediagram.lzx
                        httprequeststatistics.lzx dataaccessstatistics.lzx
  Log:
  Corrected some bugs.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.2   +24 -12    jboss-profiler/java/webapp/lzx/Attic/borderedpane.lzx
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: borderedpane.lzx
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-profiler/java/webapp/lzx/Attic/borderedpane.lzx,v
  retrieving revision 1.1.2.1
  retrieving revision 1.1.2.2
  diff -u -b -r1.1.2.1 -r1.1.2.2
  --- borderedpane.lzx	26 Oct 2006 09:02:25 -0000	1.1.2.1
  +++ borderedpane.lzx	21 Dec 2006 11:21:09 -0000	1.1.2.2
  @@ -30,28 +30,40 @@
   <library>
     <class name="borderedpane" extends="basecomponent">
       
  +    <attribute name="bordersize" type="number" value="1"/>
       <attribute name="padding" type="number" value="8"/>
       
       <view name="innerpane">
         <view name="contents"/>
       </view>
       
  -    <!--- @keywords private -->
  -    <method name="_applystyle" args="s">
  -      this.setWidth(this.width+(s.bordersize*2+this.padding*2));
  -      this.setHeight(this.height+(s.bordersize*2+this.padding*2));
  -      this.setBGColor(s.bordercolor);
  -      
  -      innerpane.setX(innerpane.x+s.bordersize);
  -      innerpane.setY(innerpane.y+s.bordersize);
  -      innerpane.setWidth(this.width-s.bordersize*2);
  -      innerpane.setHeight(this.height-s.bordersize*2);
  -      innerpane.setBGColor(s.basecolor);
  -      
  +    <handler name="oninit">
  +      innerpane.setX(innerpane.x+this.bordersize);
         innerpane.contents.setX(innerpane.contents.x+this.padding);
  +      updateWidth(innerpane.contents.width);
  +      
  +      innerpane.setY(innerpane.y+this.bordersize);
         innerpane.contents.setY(innerpane.contents.y+this.padding);
  +      updateHeight(innerpane.contents.height);
  +    </handler>
  +    
  +    <method name="updateWidth" args="w">
  +      this.setWidth(w+(this.bordersize*2+this.padding*2));
  +      innerpane.setWidth(this.width-this.bordersize*2);
         innerpane.contents.setWidth(innerpane.width-this.padding*2);
  +    </method>
  +    
  +    <method name="updateHeight" args="h">
  +      this.setHeight(h+(bordersize*2+this.padding*2));
  +      innerpane.setHeight(this.height-this.bordersize*2);
         innerpane.contents.setHeight(innerpane.height-this.padding*2);
  +    </method>
  +    
  +    <!--- @keywords private -->
  +    <method name="_applystyle" args="s">
  +      this.setAttribute("bordersize", s.bordersize);
  +      this.setBGColor(s.bordercolor);
  +      innerpane.setBGColor(s.basecolor);
         innerpane.contents.setBGColor(s.basecolor);
       </method>
     </class>
  
  
  
  1.1.2.6   +7 -6      jboss-profiler/java/webapp/lzx/Attic/stacktracediagram.lzx
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: stacktracediagram.lzx
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-profiler/java/webapp/lzx/Attic/stacktracediagram.lzx,v
  retrieving revision 1.1.2.5
  retrieving revision 1.1.2.6
  diff -u -b -r1.1.2.5 -r1.1.2.6
  --- stacktracediagram.lzx	15 Dec 2006 06:14:44 -0000	1.1.2.5
  +++ stacktracediagram.lzx	21 Dec 2006 11:21:09 -0000	1.1.2.6
  @@ -33,7 +33,7 @@
     <include href="linedrawview.lzx"/>
     <include href="floatingmessage.lzx"/>
     
  -  <class name="popupmessage" extends="basecomponent" bgcolor="0xffffff">
  +  <class name="std_popupmessage" extends="basecomponent" bgcolor="0xffffff">
       <simplelayout axis="y"/>
       <method name="setMessage" args="message">
         <![CDATA[
  @@ -239,6 +239,7 @@
         this.lanes.height = this.height - this.padding*2;
         this.drawview.height = this.height - (this.padding+2)*2;
         
  +      var activations = new Array();
         var messages = new Array();
         
         for(var i=0; i<d.childNodes.length; i++) {
  @@ -298,16 +299,16 @@
                                             detail);
           }else {
             updateLane.setActivation(beginPixel, elapsedPixel, detail);
  -          if(i!=0) {
  +          if(callerClassName=="<servlet>") {
  +            messages.unshift({lane:updateLane, caller:null, begin:beginPixel, elapsed:elapsedPixel, id:id, method:name});
  +          }else {
               messages.push({lane:updateLane, caller:callerClassName, begin:beginPixel, elapsed:elapsedPixel, id:id, method:name});
             }
           }
         }
         for(var i=0; i<messages.length; i++) {
           var callerLane = null;
  -        if(messages[i]["caller"]=="<servlet>") {
  -          callerLane = this.lanes.subviews[0];
  -        }else {
  +        if(messages[i]["caller"]!=null) {
             callerLane = selectLane(messages[i]["caller"]);
           }
           if(callerLane!=null) {
  @@ -336,7 +337,7 @@
       </method>
       
       <method name="openMessage" args="activation">
  -      var pm = new popupmessage(this, {name:"popupmessage", x:this.getMouse("x")+4, y:this.getMouse("y")-88});
  +      var pm = new std_popupmessage(this, {name:"popupmessage", x:this.getMouse("x")+4, y:this.getMouse("y")-88});
         pm.setMessage(activation.message);
       </method>
       
  
  
  
  1.1.2.4   +5 -1      jboss-profiler/java/webapp/lzx/Attic/httprequeststatistics.lzx
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: httprequeststatistics.lzx
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-profiler/java/webapp/lzx/Attic/httprequeststatistics.lzx,v
  retrieving revision 1.1.2.3
  retrieving revision 1.1.2.4
  diff -u -b -r1.1.2.3 -r1.1.2.4
  --- httprequeststatistics.lzx	13 Dec 2006 10:13:38 -0000	1.1.2.3
  +++ httprequeststatistics.lzx	21 Dec 2006 11:21:09 -0000	1.1.2.4
  @@ -54,7 +54,8 @@
               multiselect="false">
           <notifygridtext width="60" datapath="@id" textalign="right"
                           sourceevent="ondblclick"
  -                        target="${parent.parent.parent}" targetevent="onselect">
  +                        target="${parent.parent.parent}" targetevent="onselect"
  +                        datatype="number">
             ID
           </notifygridtext>
           <notifygridtext width="${parent.width-(6+580)}" datapath="@name"
  @@ -89,6 +90,9 @@
             selectionString += selectionDp.getNodeAttribute("value");
             LzBrowser.setClipboard(selectionString);
           </method>
  +        <handler name="ondata">
  +          this.columns[0].doSort();
  +        </handler>
         </grid>
         <method name="_applystyle" args="s">
           this.setBGColor(s.bordercolor);
  
  
  
  1.1.2.5   +2 -1      jboss-profiler/java/webapp/lzx/Attic/dataaccessstatistics.lzx
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: dataaccessstatistics.lzx
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-profiler/java/webapp/lzx/Attic/dataaccessstatistics.lzx,v
  retrieving revision 1.1.2.4
  retrieving revision 1.1.2.5
  diff -u -b -r1.1.2.4 -r1.1.2.5
  --- dataaccessstatistics.lzx	13 Dec 2006 10:13:38 -0000	1.1.2.4
  +++ dataaccessstatistics.lzx	21 Dec 2006 11:21:09 -0000	1.1.2.5
  @@ -54,7 +54,8 @@
               multiselect="false">
           <notifygridtext width="60" datapath="@id" textalign="right"
                           sourceevent="ondblclick"
  -                        target="${parent.parent.parent}" targetevent="onselect">
  +                        target="${parent.parent.parent}" targetevent="onselect"
  +                        datatype="number">
             ID
           </notifygridtext>
           <notifygridtext width="${parent.width-(6+580)}" datapath="@name"
  
  
  



More information about the jboss-cvs-commits mailing list