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

Takuro Okada t2-okada at nri.co.jp
Tue Nov 7 01:49:06 EST 2006


  User: tokada  
  Date: 06/11/07 01:49:05

  Modified:    java/webapp/lzx         Tag: JBossProfiler_Expansion
                        notifygridtext.lzx concurrencystatistics.lzx
                        executionstatistics.lzx httprequeststatistics.lzx
                        settingdialog.lzx memorystatistics.lzx
                        dataaccessstatistics.lzx style.lzx
  Log:
  Added setting function and corrected some bugs.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.2   +75 -19    jboss-profiler/java/webapp/lzx/Attic/notifygridtext.lzx
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: notifygridtext.lzx
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-profiler/java/webapp/lzx/Attic/notifygridtext.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
  --- notifygridtext.lzx	26 Oct 2006 09:02:25 -0000	1.1.2.1
  +++ notifygridtext.lzx	7 Nov 2006 06:49:05 -0000	1.1.2.2
  @@ -33,31 +33,87 @@
       <attribute name="target"/>
       <attribute name="targetevent" type="string"/>
       <attribute name="sourceevent" type="string"/>
  +    <!-- A string value to convert to the empty string. -->
       <attribute name="exclude" type="string"/>
       <attribute name="textalign" type="string"/>
  -    <text datapath="$once{parent.datapath.xpath}"
  +    <attribute name="warningthreshold" type="string"/>
  +    <attribute name="warningthresholdtype" type="string"/>
  +    <attribute name="warningcolor" type="color"/>
  +    <!-- Adjusted gridcolmn's specification... -->
  +    <attribute name="datapath" setter="setAttribute('_textxpath', datapath)"/>
  +    <attribute name="_textxpath" type="string"/>
  +    <attribute name="_textcolor" value="null"/>
  +    <attribute name="_texthilitecolor" value="null"/>
  +    <attribute name="_textselectedcolor" value="null"/>
  +    <view valign="middle" clickable="true" focusable="true" clip="true"
             onmouseover="immediateparent.domouseover()"
             onmouseout="immediateparent.domouseout()"
  -          onfocus="immediateparent.select()"
  -          clickable="true" focusable="true"
  -          align="${typeof(parent.textalign)!='undefined'?parent.textalign:''}"
  -          width="${parent.width}">
  +          onfocus="immediateparent.select()">
  +      <text datapath="${classroot._textxpath}"
  +            valign="middle" resize="true">
         <handler name="oninit">
  -        if(typeof(parent.target)=="undefined" ||
  -           typeof(parent.targetevent)=="undefined" ||
  -           typeof(parent.sourceevent)=="undefined") return;
  -        this.del = new LzDelegate(parent, "_fireEvent");
  -        this.del.register(this, parent.sourceevent);
  +          this.applyConstraint("x", function(){this.setAttribute("x", this._calcX());}, [parent, "width"]);
         </handler>
         <method name="applyData" args="d">
           <![CDATA[
           var formattedData = null;
  -        if(typeof(parent.exclude)!="undefined" && d==parent.exclude) formattedData = "";
  -        else formattedData = d;
  +          if(typeof(classroot.exclude)!="undefined" && d==classroot.exclude) {
  +            formattedData = "";
  +          }else {
  +            formattedData = d;
  +          }
  +          if((classroot.warningthresholdtype=="number" &&
  +              (new Number(d)).valueOf() >= (new Number(classroot.warningthreshold)).valueOf()) ||
  +             (classroot.warningthresholdtype=="string" &&
  +              d == classroot.warningthreshold)) {
  +            this.setColor(classroot.warningcolor);
  +          }
           super.applyData(formattedData);
           ]]>
         </method>
  +        <handler name="ontext">
  +          <![CDATA[
  +          this.setAttribute("x", this._calcX());
  +          ]]>
  +        </handler>
  +        <method name="_calcX">
  +          <![CDATA[
  +          var newX = 0;
  +          if(typeof(classroot.textalign)!="undefined") {
  +            if (classroot.textalign == "center") {
  +              newX = parent.width/2 - this.getTextWidth()/2;
  +            }else if (classroot.textalign == "right") {
  +              newX = parent.width - this.getTextWidth() - 4;
  +            }
  +            if(newX<0) newX=0;
  +          }
  +          return newX;
  +         ]]>
  +        </method>
       </text>
  +      <handler name="oninit">
  +        if(typeof(classroot.target)=="undefined" ||
  +            typeof(classroot.targetevent)=="undefined" ||
  +            typeof(classroot.sourceevent)=="undefined") return;
  +        this.del = new LzDelegate(classroot, "_fireEvent");
  +        this.del.register(this, classroot.sourceevent);
  +      </handler>
  +    </view>
  +    <handler name="oninit">
  +      <![CDATA[
  +      if(!isNaN(new Number(warningthreshold))) {
  +        this.warningthresholdtype = "number";
  +      }else {
  +        this.warningthresholdtype = "string";
  +      }
  +      ]]>
  +    </handler>
  +    <method name="_applystyle" args="s">
  +      super._applystyle(s);
  +      this.setAttribute("_textcolor", s.textcolor);
  +      this.setAttribute("_texthilitecolor", s.texthilitecolor);
  +      this.setAttribute("_textselectedcolor", s.textselectedcolor);
  +    </method>
       <method name="_fireEvent">
         target[targetevent].sendEvent(parent.getSelection());
       </method>
  
  
  
  1.1.2.2   +73 -25    jboss-profiler/java/webapp/lzx/Attic/concurrencystatistics.lzx
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: concurrencystatistics.lzx
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-profiler/java/webapp/lzx/Attic/concurrencystatistics.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
  --- concurrencystatistics.lzx	26 Oct 2006 09:02:25 -0000	1.1.2.1
  +++ concurrencystatistics.lzx	7 Nov 2006 06:49:05 -0000	1.1.2.2
  @@ -80,45 +80,93 @@
                     rowheight="18"
                     showvlines="true" bgcolor0="0xe0e0e0">
             <gridcolumn width="${parent.width-(6+360)}" sortable="false" resizable="false">
  -            Name
  +            Operation Name
               <hcell y="$once{ parent.height /2 - this.height/2}" datapath="@name" parentGrid="${parent.parent}"/>
             </gridcolumn>
  -          <gridtext width="30" datapath="@bcMax" textalign="right" editable="false" sortable="false">
  +          <notifygridtext width="30" datapath="@bcMax" textalign="right" sortable="false"
  +                          warningthreshold="${concurrencyStatisticsWarningSettings.subviews[0].enabled.getValue()?
  +                                              concurrencyStatisticsWarningSettings.subviews[0].threshold.getValue():null}"
  +                          warningcolor="${concurrencyStatisticsWarningSettings.subviews[0].enabled.getValue()?
  +                                          concurrencyStatisticsWarningSettings.subviews[0].color.getValue():null}">
               BCH
  -          </gridtext>
  -          <gridtext width="30" datapath="@bcMin" textalign="right" editable="false" sortable="false">
  +          </notifygridtext>
  +          <notifygridtext width="30" datapath="@bcMin" textalign="right" sortable="false"
  +                          warningthreshold="${concurrencyStatisticsWarningSettings.subviews[0].enabled.getValue()?
  +                                              concurrencyStatisticsWarningSettings.subviews[0].threshold.getValue():null}"
  +                          warningcolor="${concurrencyStatisticsWarningSettings.subviews[0].enabled.getValue()?
  +                                          concurrencyStatisticsWarningSettings.subviews[0].color.getValue():null}">
               BCL
  -          </gridtext>
  -          <gridtext width="30" datapath="@bcAvg" textalign="right" editable="false" sortable="false">
  +          </notifygridtext>
  +          <notifygridtext width="30" datapath="@bcAvg" textalign="right" sortable="false"
  +                          warningthreshold="${concurrencyStatisticsWarningSettings.subviews[0].enabled.getValue()?
  +                                              concurrencyStatisticsWarningSettings.subviews[0].threshold.getValue():null}"
  +                          warningcolor="${concurrencyStatisticsWarningSettings.subviews[0].enabled.getValue()?
  +                                          concurrencyStatisticsWarningSettings.subviews[0].color.getValue():null}">
               BCA
  -          </gridtext>
  -          <gridtext width="30" datapath="@btMax" textalign="right" editable="false" sortable="false">
  +          </notifygridtext>
  +          <notifygridtext width="30" datapath="@btMax" textalign="right" sortable="false"
  +                          warningthreshold="${concurrencyStatisticsWarningSettings.subviews[0].enabled.getValue()?
  +                                              concurrencyStatisticsWarningSettings.subviews[0].threshold.getValue():null}"
  +                          warningcolor="${concurrencyStatisticsWarningSettings.subviews[0].enabled.getValue()?
  +                                          concurrencyStatisticsWarningSettings.subviews[0].color.getValue():null}">
               BTH
  -          </gridtext>
  -          <gridtext width="30" datapath="@btMin" textalign="right" editable="false" sortable="false">
  +          </notifygridtext>
  +          <notifygridtext width="30" datapath="@btMin" textalign="right" sortable="false"
  +                          warningthreshold="${concurrencyStatisticsWarningSettings.subviews[0].enabled.getValue()?
  +                                              concurrencyStatisticsWarningSettings.subviews[0].threshold.getValue():null}"
  +                          warningcolor="${concurrencyStatisticsWarningSettings.subviews[0].enabled.getValue()?
  +                                          concurrencyStatisticsWarningSettings.subviews[0].color.getValue():null}">
               BTL
  -          </gridtext>
  -          <gridtext width="30" datapath="@btAvg" textalign="right" editable="false" sortable="false">
  +          </notifygridtext>
  +          <notifygridtext width="30" datapath="@btAvg" textalign="right" sortable="false"
  +                          warningthreshold="${concurrencyStatisticsWarningSettings.subviews[0].enabled.getValue()?
  +                                              concurrencyStatisticsWarningSettings.subviews[0].threshold.getValue():null}"
  +                          warningcolor="${concurrencyStatisticsWarningSettings.subviews[0].enabled.getValue()?
  +                                          concurrencyStatisticsWarningSettings.subviews[0].color.getValue():null}">
               BTA
  -          </gridtext>
  -          <gridtext width="30" datapath="@wcMax" textalign="right" editable="false" sortable="false">
  +          </notifygridtext>
  +          <notifygridtext width="30" datapath="@wcMax" textalign="right" sortable="false"
  +                          warningthreshold="${concurrencyStatisticsWarningSettings.subviews[0].enabled.getValue()?
  +                                              concurrencyStatisticsWarningSettings.subviews[0].threshold.getValue():null}"
  +                          warningcolor="${concurrencyStatisticsWarningSettings.subviews[0].enabled.getValue()?
  +                                          concurrencyStatisticsWarningSettings.subviews[0].color.getValue():null}">
               WCH
  -          </gridtext>
  -          <gridtext width="30" datapath="@wcMin" textalign="right" editable="false" sortable="false">
  +          </notifygridtext>
  +          <notifygridtext width="30" datapath="@wcMin" textalign="right" sortable="false"
  +                          warningthreshold="${concurrencyStatisticsWarningSettings.subviews[0].enabled.getValue()?
  +                                              concurrencyStatisticsWarningSettings.subviews[0].threshold.getValue():null}"
  +                          warningcolor="${concurrencyStatisticsWarningSettings.subviews[0].enabled.getValue()?
  +                                          concurrencyStatisticsWarningSettings.subviews[0].color.getValue():null}">
               WCL
  -          </gridtext>
  -          <gridtext width="30" datapath="@wcAvg" textalign="right" editable="false" sortable="false">
  +          </notifygridtext>
  +          <notifygridtext width="30" datapath="@wcAvg" textalign="right" sortable="false"
  +                          warningthreshold="${concurrencyStatisticsWarningSettings.subviews[0].enabled.getValue()?
  +                                              concurrencyStatisticsWarningSettings.subviews[0].threshold.getValue():null}"
  +                          warningcolor="${concurrencyStatisticsWarningSettings.subviews[0].enabled.getValue()?
  +                                          concurrencyStatisticsWarningSettings.subviews[0].color.getValue():null}">
               WCA
  -          </gridtext>
  -          <gridtext width="30" datapath="@wtMax" textalign="right" editable="false" sortable="false">
  +          </notifygridtext>
  +          <notifygridtext width="30" datapath="@wtMax" textalign="right" sortable="false"
  +                          warningthreshold="${concurrencyStatisticsWarningSettings.subviews[0].enabled.getValue()?
  +                                              concurrencyStatisticsWarningSettings.subviews[0].threshold.getValue():null}"
  +                          warningcolor="${concurrencyStatisticsWarningSettings.subviews[0].enabled.getValue()?
  +                                          concurrencyStatisticsWarningSettings.subviews[0].color.getValue():null}">
               WTH
  -          </gridtext>
  -          <gridtext width="30" datapath="@wtMin" textalign="right" editable="false" sortable="false">
  +          </notifygridtext>
  +          <notifygridtext width="30" datapath="@wtMin" textalign="right" sortable="false"
  +                          warningthreshold="${concurrencyStatisticsWarningSettings.subviews[0].enabled.getValue()?
  +                                              concurrencyStatisticsWarningSettings.subviews[0].threshold.getValue():null}"
  +                          warningcolor="${concurrencyStatisticsWarningSettings.subviews[0].enabled.getValue()?
  +                                          concurrencyStatisticsWarningSettings.subviews[0].color.getValue():null}">
               WTL
  -          </gridtext>
  -          <gridtext width="30" datapath="@wtAvg" textalign="right" editable="false" sortable="false">
  +          </notifygridtext>
  +          <notifygridtext width="30" datapath="@wtAvg" textalign="right" sortable="false"
  +                          warningthreshold="${concurrencyStatisticsWarningSettings.subviews[0].enabled.getValue()?
  +                                              concurrencyStatisticsWarningSettings.subviews[0].threshold.getValue():null}"
  +                          warningcolor="${concurrencyStatisticsWarningSettings.subviews[0].enabled.getValue()?
  +                                          concurrencyStatisticsWarningSettings.subviews[0].color.getValue():null}">
               WTA
  -          </gridtext>
  +          </notifygridtext>
           </treegrid>
           
           <!--- @keywords private -->
  
  
  
  1.1.2.2   +25 -8     jboss-profiler/java/webapp/lzx/Attic/executionstatistics.lzx
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: executionstatistics.lzx
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-profiler/java/webapp/lzx/Attic/executionstatistics.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
  --- executionstatistics.lzx	26 Oct 2006 09:02:25 -0000	1.1.2.1
  +++ executionstatistics.lzx	7 Nov 2006 06:49:05 -0000	1.1.2.2
  @@ -32,6 +32,7 @@
     <include href="treegrid.lzx"/>
     <include href="loadingsplash.lzx"/>
     <include href="notifytextlistitem.lzx"/>
  +  <include href="notifygridtext.lzx"/>
     
     <dataset name="executionData"
              request="false" timeout="5000" type="http" 
  @@ -87,18 +88,34 @@
               Operation Name
               <hcell y="$once{ parent.height /2 - this.height/2}" datapath="@name" parentGrid="${parent.parent}"/>
             </gridcolumn>
  -          <gridtext width="80" datapath="@invocationCount" textalign="right" editable="false" sortable="false">
  +          <notifygridtext width="80" datapath="@invocationCount" textalign="right" sortable="false"
  +                          warningthreshold="${executionStatisticsWarningSettings.subviews[1].enabled.getValue()?
  +                                              executionStatisticsWarningSettings.subviews[1].threshold.getValue():null}"
  +                          warningcolor="${executionStatisticsWarningSettings.subviews[1].enabled.getValue()?
  +                                          executionStatisticsWarningSettings.subviews[1].color.getValue():null}">
               Count
  -          </gridtext>
  -          <gridtext width="100" datapath="@maxTime" textalign="right" editable="false" sortable="false">
  +          </notifygridtext>
  +          <notifygridtext width="100" datapath="@maxTime" textalign="right" sortable="false"
  +                          warningthreshold="${executionStatisticsWarningSettings.subviews[0].enabled.getValue()?
  +                                              executionStatisticsWarningSettings.subviews[0].threshold.getValue():null}"
  +                          warningcolor="${executionStatisticsWarningSettings.subviews[0].enabled.getValue()?
  +                                          executionStatisticsWarningSettings.subviews[0].color.getValue():null}">
               Max Time
  -          </gridtext>
  -          <gridtext width="100" datapath="@minTime" textalign="right" editable="false" sortable="false">
  +          </notifygridtext>
  +          <notifygridtext width="100" datapath="@minTime" textalign="right" sortable="false"
  +                          warningthreshold="${executionStatisticsWarningSettings.subviews[0].enabled.getValue()?
  +                                              executionStatisticsWarningSettings.subviews[0].threshold.getValue():null}"
  +                          warningcolor="${executionStatisticsWarningSettings.subviews[0].enabled.getValue()?
  +                                          executionStatisticsWarningSettings.subviews[0].color.getValue():null}">
               Min Time
  -          </gridtext>
  -          <gridtext width="100" datapath="@averageTime" textalign="right" editable="false" sortable="false">
  +          </notifygridtext>
  +          <notifygridtext width="100" datapath="@averageTime" textalign="right" sortable="false"
  +                          warningthreshold="${executionStatisticsWarningSettings.subviews[0].enabled.getValue()?
  +                                              executionStatisticsWarningSettings.subviews[0].threshold.getValue():null}"
  +                          warningcolor="${executionStatisticsWarningSettings.subviews[0].enabled.getValue()?
  +                                          executionStatisticsWarningSettings.subviews[0].color.getValue():null}">
               Average Time
  -          </gridtext>
  +          </notifygridtext>
           </treegrid>
           
           <method name="_applystyle" args="s">
  
  
  
  1.1.2.2   +12 -3     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.1
  retrieving revision 1.1.2.2
  diff -u -b -r1.1.2.1 -r1.1.2.2
  --- httprequeststatistics.lzx	26 Oct 2006 09:02:25 -0000	1.1.2.1
  +++ httprequeststatistics.lzx	7 Nov 2006 06:49:05 -0000	1.1.2.2
  @@ -52,7 +52,12 @@
               rowheight="18"
               showvlines="true" bgcolor0="0xe0e0e0"
               multiselect="false">
  -        <notifygridtext width="${parent.width-(6+500)}" datapath="@name"
  +        <notifygridtext width="60" datapath="@id" textalign="right"
  +                        sourceevent="ondblclick"
  +                        target="${parent.parent.parent}" targetevent="onselect">
  +          ID
  +        </notifygridtext>
  +        <notifygridtext width="${parent.width-(6+580)}" datapath="@name"
                           sourceevent="ondblclick"
                           target="${parent.parent.parent}" targetevent="onselect">
             Request URL
  @@ -63,9 +68,13 @@
                           exclude="null">
             Request Parameters
           </notifygridtext>
  -        <notifygridtext width="100" datapath="@value"
  +        <notifygridtext width="120" datapath="@value" textalign="right"
                           sourceevent="ondblclick"
  -                        target="${parent.parent.parent}" targetevent="onselect">
  +                        target="${parent.parent.parent}" targetevent="onselect"
  +                        warningthreshold="${webappAnalyzerWarningSettings.subviews[0].enabled.getValue()?
  +                                            webappAnalyzerWarningSettings.subviews[0].threshold.getValue():null}"
  +                        warningcolor="${webappAnalyzerWarningSettings.subviews[0].enabled.getValue()?
  +                                        webappAnalyzerWarningSettings.subviews[0].color.getValue():null}">
             Elapsed Time
           </notifygridtext>
         </grid>
  
  
  
  1.1.2.3   +43 -23    jboss-profiler/java/webapp/lzx/Attic/settingdialog.lzx
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: settingdialog.lzx
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-profiler/java/webapp/lzx/Attic/settingdialog.lzx,v
  retrieving revision 1.1.2.2
  retrieving revision 1.1.2.3
  diff -u -b -r1.1.2.2 -r1.1.2.3
  --- settingdialog.lzx	6 Nov 2006 07:39:47 -0000	1.1.2.2
  +++ settingdialog.lzx	7 Nov 2006 06:49:05 -0000	1.1.2.3
  @@ -149,28 +149,36 @@
               <simplelayout axis="y" spacing="4"/>
               <view>
                 <simplelayout axis="x" spacing="4"/>
  -              <checkbox name="enabled" text="Execution Time" valign="middle"/>
  +              <checkbox name="enabled" text="Execution Time" valign="middle">
  +                <handler name="onclick">
  +                  LzFocus.setFocus(parent.threshold);
  +                </handler>
  +              </checkbox>
                 <view width="4"/>
                 <text valign="middle">Threshold</text>
                 <edittext name="threshold" width="100" height="22"/>
                 <text valign="middle">Color</text>
                 <combobox name="color" width="60" editable="false">
  -                <textlistitem text="red" selected="true"/>
  -                <textlistitem text="green"/>
  -                <textlistitem text="blue"/>
  +                <textlistitem text="red" value="0xff0000" selected="true"/>
  +                <textlistitem text="green" value="0x00ff00"/>
  +                <textlistitem text="blue" value="0x0000ff"/>
                 </combobox>
               </view>
               <view>
                 <simplelayout axis="x" spacing="4"/>
  -              <checkbox name="enabled" text="Coverage Count" valign="middle"/>
  +              <checkbox name="enabled" text="Coverage Count" valign="middle">
  +                <handler name="onclick">
  +                  LzFocus.setFocus(parent.threshold);
  +                </handler>
  +              </checkbox>
                 <view width="1"/>
                 <text valign="middle">Threshold</text>
                 <edittext name="threshold" width="100" height="22"/>
                 <text valign="middle">Color</text>
                 <combobox name="color" width="60" editable="false">
  -                <textlistitem text="red" selected="true"/>
  -                <textlistitem text="green"/>
  -                <textlistitem text="blue"/>
  +                <textlistitem text="red" value="0xff0000" selected="true"/>
  +                <textlistitem text="green" value="0x00ff00"/>
  +                <textlistitem text="blue" value="0x0000ff"/>
                 </combobox>
               </view>
             </view>
  @@ -182,15 +190,19 @@
               <simplelayout axis="y" spacing="4"/>
               <view>
                 <simplelayout axis="x" spacing="4"/>
  -              <checkbox name="enabled" text="Coverage Count" valign="middle"/>
  +              <checkbox name="enabled" text="Coverage Count" valign="middle">
  +                <handler name="onclick">
  +                  LzFocus.setFocus(parent.threshold);
  +                </handler>
  +              </checkbox>
                 <view width="1"/>
                 <text valign="middle">Threshold</text>
                 <edittext name="threshold" width="100" height="22"/>
                 <text valign="middle">Color</text>
                 <combobox name="color" width="60" editable="false">
  -                <textlistitem text="red" selected="true"/>
  -                <textlistitem text="green"/>
  -                <textlistitem text="blue"/>
  +                <textlistitem text="red" value="0xff0000" selected="true"/>
  +                <textlistitem text="green" value="0x00ff00"/>
  +                <textlistitem text="blue" value="0x0000ff"/>
                 </combobox>
               </view>
             </view>
  @@ -202,15 +214,19 @@
               <simplelayout axis="y" spacing="4"/>
               <view>
                 <simplelayout axis="x" spacing="4"/>
  -              <checkbox name="enabled" text="Memory Usage" valign="middle"/>
  +              <checkbox name="enabled" text="Memory Usage" valign="middle">
  +                <handler name="onclick">
  +                  LzFocus.setFocus(parent.threshold);
  +                </handler>
  +              </checkbox>
                 <view width="6"/>
                 <text valign="middle">Threshold</text>
                 <edittext name="threshold" width="100" height="22"/>
                 <text valign="middle">Color</text>
                 <combobox name="color" width="60" editable="false">
  -                <textlistitem text="red" selected="true"/>
  -                <textlistitem text="green"/>
  -                <textlistitem text="blue"/>
  +                <textlistitem text="red" value="0xff0000" selected="true"/>
  +                <textlistitem text="green" value="0x00ff00"/>
  +                <textlistitem text="blue" value="0x0000ff"/>
                 </combobox>
               </view>
             </view>
  @@ -222,15 +238,19 @@
               <simplelayout axis="y" spacing="4"/>
               <view>
                 <simplelayout axis="x" spacing="4"/>
  -              <checkbox name="enabled" text="Execution Time" valign="middle"/>
  +              <checkbox name="enabled" text="Execution Time" valign="middle">
  +                <handler name="onclick">
  +                  LzFocus.setFocus(parent.threshold);
  +                </handler>
  +              </checkbox>
                 <view width="3"/>
                 <text valign="middle">Threshold</text>
                 <edittext name="threshold" width="100" height="22"/>
                 <text valign="middle">Color</text>
                 <combobox name="color" width="60" editable="false">
  -                <textlistitem text="red" selected="true"/>
  -                <textlistitem text="green"/>
  -                <textlistitem text="blue"/>
  +                <textlistitem text="red" value="0xff0000" selected="true"/>
  +                <textlistitem text="green" value="0x00ff00"/>
  +                <textlistitem text="blue" value="0x0000ff"/>
                 </combobox>
               </view>
             </view>
  @@ -252,9 +272,9 @@
           var waMetricName = webappAnalyzerSettings.subviews[0].metricName.getValue();
           switch(waMetricName) {
             // See the enum value of org.jboss.profiler.exp.agent.collector.model.MetricName
  -          case 0: waMetricName="CPU_TIME_PASSAGE_DETAIL"; break;
  -          case 1: waMetricName="USER_CPU_TIME_PASSAGE_DETAIL"; break;
  -          case 2: waMetricName="REAL_TIME_PASSAGE_DETAIL"; break;
  +          case 0: waMetricName="REAL_TIME_PASSAGE_DETAIL"; break;
  +          case 1: waMetricName="CPU_TIME_PASSAGE_DETAIL"; break;
  +          case 2: waMetricName="USER_CPU_TIME_PASSAGE_DETAIL"; break;
           }
           canvas.initializeData.setQueryParam(AppInfo.RPK_WA_METRIC_NAME, waMetricName);
           
  
  
  
  1.1.2.2   +21 -9     jboss-profiler/java/webapp/lzx/Attic/memorystatistics.lzx
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: memorystatistics.lzx
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-profiler/java/webapp/lzx/Attic/memorystatistics.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
  --- memorystatistics.lzx	26 Oct 2006 09:02:25 -0000	1.1.2.1
  +++ memorystatistics.lzx	7 Nov 2006 06:49:05 -0000	1.1.2.2
  @@ -84,15 +84,27 @@
               Operation Name
               <hcell y="$once{ parent.height /2 - this.height/2}" datapath="@name" parentGrid="${parent.parent}"/>
             </gridcolumn>
  -          <gridtext width="120" datapath="@max" textalign="right" editable="false" sortable="false">
  -            Max
  -          </gridtext>
  -          <gridtext width="120" datapath="@min" textalign="right" editable="false" sortable="false">
  -            Min
  -          </gridtext>
  -          <gridtext width="120" datapath="@avg" textalign="right" editable="false" sortable="false">
  -            Average
  -          </gridtext>
  +          <notifygridtext width="120" datapath="@max" textalign="right" sortable="false"
  +                          warningthreshold="${memoryStatisticsWarningSettings.subviews[0].enabled.getValue()?
  +                                              memoryStatisticsWarningSettings.subviews[0].threshold.getValue():null}"
  +                          warningcolor="${memoryStatisticsWarningSettings.subviews[0].enabled.getValue()?
  +                                          memoryStatisticsWarningSettings.subviews[0].color.getValue():null}">
  +            Max Bytes
  +          </notifygridtext>
  +          <notifygridtext width="120" datapath="@min" textalign="right" sortable="false"
  +                          warningthreshold="${memoryStatisticsWarningSettings.subviews[0].enabled.getValue()?
  +                                              memoryStatisticsWarningSettings.subviews[0].threshold.getValue():null}"
  +                          warningcolor="${memoryStatisticsWarningSettings.subviews[0].enabled.getValue()?
  +                                          memoryStatisticsWarningSettings.subviews[0].color.getValue():null}">
  +            Min Bytes
  +          </notifygridtext>
  +          <notifygridtext width="120" datapath="@avg" textalign="right" sortable="false"
  +                          warningthreshold="${memoryStatisticsWarningSettings.subviews[0].enabled.getValue()?
  +                                              memoryStatisticsWarningSettings.subviews[0].threshold.getValue():null}"
  +                          warningcolor="${memoryStatisticsWarningSettings.subviews[0].enabled.getValue()?
  +                                          memoryStatisticsWarningSettings.subviews[0].color.getValue():null}">
  +            Average Bytes
  +          </notifygridtext>
           </treegrid>
           
           <!--- @keywords private -->
  
  
  
  1.1.2.2   +11 -2     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.1
  retrieving revision 1.1.2.2
  diff -u -b -r1.1.2.1 -r1.1.2.2
  --- dataaccessstatistics.lzx	26 Oct 2006 09:02:25 -0000	1.1.2.1
  +++ dataaccessstatistics.lzx	7 Nov 2006 06:49:05 -0000	1.1.2.2
  @@ -52,6 +52,11 @@
               rowheight="18"
               showvlines="true" bgcolor0="0xe0e0e0"
               multiselect="false">
  +        <notifygridtext width="60" datapath="@id" textalign="right"
  +                        sourceevent="ondblclick"
  +                        target="${parent.parent.parent}" targetevent="onselect">
  +          ID
  +        </notifygridtext>
           <notifygridtext width="${parent.width-(6+500)}" datapath="@name"
                           sourceevent="ondblclick"
                           target="${parent.parent.parent}" targetevent="onselect">
  @@ -63,9 +68,13 @@
                           exclude="null">
             SQL Query
           </notifygridtext>
  -        <notifygridtext width="100" datapath="@value"
  +        <notifygridtext width="120" datapath="@value" textalign="right"
                           sourceevent="ondblclick"
  -                        target="${parent.parent.parent}" targetevent="onselect">
  +                        target="${parent.parent.parent}" targetevent="onselect"
  +                        warningthreshold="${webappAnalyzerWarningSettings.subviews[0].enabled.getValue()?
  +                                            webappAnalyzerWarningSettings.subviews[0].threshold.getValue():null}"
  +                        warningcolor="${webappAnalyzerWarningSettings.subviews[0].enabled.getValue()?
  +                                        webappAnalyzerWarningSettings.subviews[0].color.getValue():null}">
             Elapsed Time
           </notifygridtext>
         </grid>
  
  
  
  1.1.2.2   +1 -1      jboss-profiler/java/webapp/lzx/Attic/style.lzx
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: style.lzx
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-profiler/java/webapp/lzx/Attic/style.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
  --- style.lzx	26 Oct 2006 09:02:25 -0000	1.1.2.1
  +++ style.lzx	7 Nov 2006 06:49:05 -0000	1.1.2.2
  @@ -38,7 +38,7 @@
            basecolor="0xffffff"
            
            bgcolor="0xffffff"
  -         textcolor="0x666666"
  +         textcolor="0x333333"
            
            textdisabledcolor="0x999999"
            
  
  
  



More information about the jboss-cvs-commits mailing list