blob: fe143b0a88afb7617425aa7bd678eda610af3f2a [file] [log] [blame]
<html xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:w="urn:schemas-microsoft-com:office:word"
xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=windows-1252">
<meta name=ProgId content=Word.Document>
<meta name=Generator content="Microsoft Word 9">
<meta name=Originator content="Microsoft Word 9">
<title>Appendix A: TableTree and TableTreeItem</title>
<!--[if gte mso 9]><xml>
<o:DocumentProperties>
<o:Author>Dave Thomson</o:Author>
<o:LastAuthor>Carolyn MacLeod</o:LastAuthor>
<o:Revision>6</o:Revision>
<o:TotalTime>13</o:TotalTime>
<o:Created>2001-06-04T02:58:00Z</o:Created>
<o:LastSaved>2001-06-04T03:49:00Z</o:LastSaved>
<o:Pages>20</o:Pages>
<o:Words>5130</o:Words>
<o:Characters>29242</o:Characters>
<o:Lines>243</o:Lines>
<o:Paragraphs>58</o:Paragraphs>
<o:CharactersWithSpaces>35911</o:CharactersWithSpaces>
<o:Version>9.2720</o:Version>
</o:DocumentProperties>
</xml><![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Courier;
panose-1:0 0 0 0 0 0 0 0 0 0;
mso-font-charset:0;
mso-generic-font-family:modern;
mso-font-format:other;
mso-font-pitch:fixed;
mso-font-signature:3 0 0 0 1 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-parent:"";
margin:0in;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";
color:windowtext;
mso-ansi-language:EN-CA;}
h1
{mso-style-next:Normal;
margin-top:12.0pt;
margin-right:0in;
margin-bottom:3.0pt;
margin-left:0in;
mso-pagination:widow-orphan;
page-break-after:avoid;
mso-outline-level:1;
font-size:20.0pt;
mso-bidi-font-size:10.0pt;
font-family:"Times New Roman";
color:windowtext;
mso-font-kerning:14.0pt;
font-weight:bold;
mso-bidi-font-weight:normal;}
h2
{mso-style-next:Normal;
margin-top:12.0pt;
margin-right:0in;
margin-bottom:6.0pt;
margin-left:0in;
mso-pagination:widow-orphan;
page-break-after:avoid;
mso-outline-level:2;
font-size:18.0pt;
mso-bidi-font-size:10.0pt;
font-family:"Times New Roman";
color:windowtext;
font-weight:bold;
mso-bidi-font-weight:normal;}
h3
{mso-style-next:Normal;
margin-top:12.0pt;
margin-right:0in;
margin-bottom:3.0pt;
margin-left:0in;
mso-pagination:widow-orphan;
page-break-after:avoid;
mso-outline-level:3;
font-size:14.0pt;
mso-bidi-font-size:10.0pt;
font-family:"Times New Roman";
color:windowtext;
font-weight:bold;
mso-bidi-font-weight:normal;}
p.MsoToc1, li.MsoToc1, div.MsoToc1
{mso-style-update:auto;
mso-style-next:Normal;
margin-top:.25in;
margin-right:0in;
margin-bottom:0in;
margin-left:0in;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
tab-stops:right 6.0in;
font-size:12.0pt;
mso-bidi-font-size:10.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";
color:windowtext;
text-transform:uppercase;
font-weight:bold;
mso-bidi-font-weight:normal;}
p.MsoToc2, li.MsoToc2, div.MsoToc2
{mso-style-update:auto;
mso-style-next:Normal;
margin-top:12.0pt;
margin-right:0in;
margin-bottom:0in;
margin-left:0in;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
tab-stops:right 6.0in;
font-size:12.0pt;
mso-bidi-font-size:10.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";
color:windowtext;
font-weight:bold;
mso-bidi-font-weight:normal;}
p.MsoToc3, li.MsoToc3, div.MsoToc3
{mso-style-update:auto;
mso-style-next:Normal;
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:10.0pt;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
tab-stops:right 6.0in;
font-size:12.0pt;
mso-bidi-font-size:10.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";
color:windowtext;}
p.MsoToc4, li.MsoToc4, div.MsoToc4
{mso-style-update:auto;
mso-style-next:Normal;
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:20.0pt;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
tab-stops:right 6.0in;
font-size:12.0pt;
mso-bidi-font-size:10.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";
color:windowtext;}
p.MsoToc5, li.MsoToc5, div.MsoToc5
{mso-style-update:auto;
mso-style-next:Normal;
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:30.0pt;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
tab-stops:right 6.0in;
font-size:12.0pt;
mso-bidi-font-size:10.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";
color:windowtext;}
p.MsoToc6, li.MsoToc6, div.MsoToc6
{mso-style-update:auto;
mso-style-next:Normal;
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:40.0pt;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
tab-stops:right 6.0in;
font-size:12.0pt;
mso-bidi-font-size:10.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";
color:windowtext;}
p.MsoToc7, li.MsoToc7, div.MsoToc7
{mso-style-update:auto;
mso-style-next:Normal;
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:50.0pt;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
tab-stops:right 6.0in;
font-size:12.0pt;
mso-bidi-font-size:10.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";
color:windowtext;}
p.MsoToc8, li.MsoToc8, div.MsoToc8
{mso-style-update:auto;
mso-style-next:Normal;
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:60.0pt;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
tab-stops:right 6.0in;
font-size:12.0pt;
mso-bidi-font-size:10.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";
color:windowtext;}
p.MsoToc9, li.MsoToc9, div.MsoToc9
{mso-style-update:auto;
mso-style-next:Normal;
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:70.0pt;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
tab-stops:right 6.0in;
font-size:12.0pt;
mso-bidi-font-size:10.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";
color:windowtext;}
p.MsoHeader, li.MsoHeader, div.MsoHeader
{margin:0in;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
tab-stops:center 3.0in right 6.0in;
font-size:12.0pt;
mso-bidi-font-size:10.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";
color:windowtext;}
p.MsoFooter, li.MsoFooter, div.MsoFooter
{margin:0in;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
tab-stops:center 3.0in right 6.0in;
font-size:12.0pt;
mso-bidi-font-size:10.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";
color:windowtext;}
p.MsoBodyText, li.MsoBodyText, div.MsoBodyText
{margin:0in;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
mso-bidi-font-size:10.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";
color:red;}
p.MsoBodyText2, li.MsoBodyText2, div.MsoBodyText2
{margin:0in;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
tab-stops:.25in .5in .75in 1.0in 1.25in 1.5in;
layout-grid-mode:char;
font-size:9.0pt;
mso-bidi-font-size:10.0pt;
font-family:"Courier New";
mso-fareast-font-family:"Times New Roman";
mso-bidi-font-family:"Times New Roman";
color:black;}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;
text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;
text-underline:single;}
strong
{mso-bidi-font-weight:normal;}
em
{mso-bidi-font-style:normal;}
p
{margin-top:5.0pt;
margin-right:0in;
margin-bottom:5.0pt;
margin-left:0in;
mso-pagination:widow-orphan;
font-size:12.0pt;
mso-bidi-font-size:10.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";
color:black;}
code
{mso-ascii-font-family:"Courier New";
mso-fareast-font-family:"Times New Roman";
mso-hansi-font-family:"Courier New";
mso-bidi-font-family:"Times New Roman";}
p.Code, li.Code, div.Code
{mso-style-name:Code;
margin:0in;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
tab-stops:.25in .5in .75in 1.0in 1.25in 1.5in 1.75in 2.0in 2.25in 2.5in 2.75in 3.0in 3.25in 3.5in 3.75in 4.0in 4.25in 4.5in 4.75in 5.0in 5.25in 5.5in 5.75in;
layout-grid-mode:char;
font-size:9.0pt;
mso-bidi-font-size:10.0pt;
font-family:"Courier New";
mso-fareast-font-family:"Times New Roman";
mso-bidi-font-family:"Times New Roman";
color:windowtext;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;
mso-header-margin:.5in;
mso-footer-margin:.5in;
mso-paper-source:0;}
div.Section1
{page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=purple style='tab-interval:.5in'>
<div class=Section1>
<h2><a name="_Ref498278978"></a><a name="_Toc506634640"><span style='mso-bookmark:
_Ref498278978'>Appendix A: TableTree and TableTreeItem</span></a><i
style='mso-bidi-font-style:normal'><o:p></o:p></i></h2>
<p class=MsoNormal><span lang=EN-CA>This appendix contains the source code for
the <i style='mso-bidi-font-style:normal'>TableTree</i> and <i
style='mso-bidi-font-style:normal'>TableTreeItem</i> classes.</span><span
style='mso-bidi-font-size:10.0pt;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<h3><a name="_Toc506634641">TableTree</a></h3>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#7F0055;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>package </span><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>org.eclipse.swt.custom;</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><![if !supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#2A7FAA;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>/*</span><span style='font-size:
10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#2A7FAA;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style="mso-spacerun:
yes"> </span>* (c) Copyright IBM Corp. 2000, 2001.</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#2A7FAA;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style="mso-spacerun:
yes"> </span>* All Rights Reserved</span><span style='font-size:10.0pt;
font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#2A7FAA;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style="mso-spacerun:
yes"> </span>*/</span><span style='font-size:10.0pt;font-family:Courier;
mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><![if !supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#7F0055;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>import </span><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>java.util.Enumeration;</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#7F0055;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>import </span><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>java.util.Vector;</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#7F0055;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>import </span><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>org.eclipse.swt.*;</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#7F0055;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>import </span><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>org.eclipse.swt.events.*;</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#7F0055;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>import </span><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>org.eclipse.swt.graphics.*;</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#7F0055;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>import </span><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>org.eclipse.swt.widgets.*;</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><![if !supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#3F7F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>/** </span><span style='font-size:
10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#3F7F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style="mso-spacerun:
yes"> </span>* A TableTree is a selectable user interface object</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#3F7F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style="mso-spacerun:
yes"> </span>* that displays a hierarchy of items, and issues</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#3F7F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style="mso-spacerun:
yes"> </span>* notification when an item is selected.</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#3F7F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style="mso-spacerun:
yes"> </span>* A TableTree may be single or multi select.</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#3F7F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style="mso-spacerun:
yes"> </span>* </span><span style='font-size:10.0pt;font-family:Courier;
color:#7F9F5F;background:white;mso-highlight:white;mso-ansi-language:EN-US'>&lt;p&gt;</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#7F9F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style="mso-spacerun:
yes"> </span></span><span style='font-size:10.0pt;font-family:Courier;
color:#3F7F5F;background:white;mso-highlight:white;mso-ansi-language:EN-US'>*
The item children that may be added to instances of this class</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#3F7F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style="mso-spacerun:
yes"> </span>* must be of type </span><span style='font-size:10.0pt;font-family:
Courier;color:#7F9F5F;background:white;mso-highlight:white;mso-ansi-language:
EN-US'>&lt;code&gt;</span><span style='font-size:10.0pt;font-family:Courier;
color:#3F7F5F;background:white;mso-highlight:white;mso-ansi-language:EN-US'>TableTreeItem</span><span
style='font-size:10.0pt;font-family:Courier;color:#7F9F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>&lt;/code&gt;</span><span
style='font-size:10.0pt;font-family:Courier;color:#3F7F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>.</span><span style='font-size:
10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#3F7F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style="mso-spacerun:
yes"> </span>* </span><span style='font-size:10.0pt;font-family:Courier;
color:#7F9F5F;background:white;mso-highlight:white;mso-ansi-language:EN-US'>&lt;/p&gt;&lt;p&gt;</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#7F9F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style="mso-spacerun:
yes"> </span></span><span style='font-size:10.0pt;font-family:Courier;
color:#3F7F5F;background:white;mso-highlight:white;mso-ansi-language:EN-US'>*
Note that although this class is a subclass of </span><span style='font-size:
10.0pt;font-family:Courier;color:#7F9F5F;background:white;mso-highlight:white;
mso-ansi-language:EN-US'>&lt;code&gt;</span><span style='font-size:10.0pt;
font-family:Courier;color:#3F7F5F;background:white;mso-highlight:white;
mso-ansi-language:EN-US'>Composite</span><span style='font-size:10.0pt;
font-family:Courier;color:#7F9F5F;background:white;mso-highlight:white;
mso-ansi-language:EN-US'>&lt;/code&gt;</span><span style='font-size:10.0pt;
font-family:Courier;color:#3F7F5F;background:white;mso-highlight:white;
mso-ansi-language:EN-US'>,</span><span style='font-size:10.0pt;font-family:
Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#3F7F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style="mso-spacerun:
yes"> </span>* it does not make sense to add </span><span style='font-size:
10.0pt;font-family:Courier;color:#7F9F5F;background:white;mso-highlight:white;
mso-ansi-language:EN-US'>&lt;code&gt;</span><span style='font-size:10.0pt;
font-family:Courier;color:#3F7F5F;background:white;mso-highlight:white;
mso-ansi-language:EN-US'>Control</span><span style='font-size:10.0pt;
font-family:Courier;color:#7F9F5F;background:white;mso-highlight:white;
mso-ansi-language:EN-US'>&lt;/code&gt; </span><span style='font-size:10.0pt;
font-family:Courier;color:#3F7F5F;background:white;mso-highlight:white;
mso-ansi-language:EN-US'>children to it,</span><span style='font-size:10.0pt;
font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#3F7F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style="mso-spacerun:
yes"> </span>* or set a layout on it.</span><span style='font-size:10.0pt;
font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#3F7F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style="mso-spacerun:
yes"> </span>* </span><span style='font-size:10.0pt;font-family:Courier;
color:#7F9F5F;background:white;mso-highlight:white;mso-ansi-language:EN-US'>&lt;/p&gt;&lt;p&gt;</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#7F9F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style="mso-spacerun:
yes"> </span></span><span style='font-size:10.0pt;font-family:Courier;
color:#3F7F5F;background:white;mso-highlight:white;mso-ansi-language:EN-US'>* </span><span
style='font-size:10.0pt;font-family:Courier;color:#7F9F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>&lt;dl&gt;</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#7F9F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style="mso-spacerun:
yes"> </span></span><span style='font-size:10.0pt;font-family:Courier;
color:#3F7F5F;background:white;mso-highlight:white;mso-ansi-language:EN-US'>*<span
style='mso-tab-count:1'>    </span></span><span style='font-size:10.0pt;
font-family:Courier;color:#7F9F5F;background:white;mso-highlight:white;
mso-ansi-language:EN-US'>&lt;dt&gt;&lt;b&gt;</span><span style='font-size:10.0pt;
font-family:Courier;color:#3F7F5F;background:white;mso-highlight:white;
mso-ansi-language:EN-US'>Styles:</span><span style='font-size:10.0pt;
font-family:Courier;color:#7F9F5F;background:white;mso-highlight:white;
mso-ansi-language:EN-US'>&lt;/b&gt; &lt;dd&gt; </span><span style='font-size:
10.0pt;font-family:Courier;color:#3F7F5F;background:white;mso-highlight:white;
mso-ansi-language:EN-US'>SINGLE, MULTI, CHECK, FULL_SELECTION</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#3F7F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style="mso-spacerun:
yes"> </span>*<span style='mso-tab-count:1'>    </span></span><span
style='font-size:10.0pt;font-family:Courier;color:#7F9F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>&lt;dt&gt;&lt;b&gt;</span><span
style='font-size:10.0pt;font-family:Courier;color:#3F7F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>Events:</span><span
style='font-size:10.0pt;font-family:Courier;color:#7F9F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>&lt;/b&gt; &lt;dd&gt; </span><span
style='font-size:10.0pt;font-family:Courier;color:#3F7F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>Selection, DefaultSelection,
Collapse, Expand</span><span style='font-size:10.0pt;font-family:Courier;
mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#3F7F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style="mso-spacerun:
yes"> </span>* </span><span style='font-size:10.0pt;font-family:Courier;
color:#7F9F5F;background:white;mso-highlight:white;mso-ansi-language:EN-US'>&lt;/dl&gt;</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#7F9F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style="mso-spacerun:
yes"> </span></span><span style='font-size:10.0pt;font-family:Courier;
color:#3F7F5F;background:white;mso-highlight:white;mso-ansi-language:EN-US'>*/</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#7F0055;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>public class </span><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>TableTree </span><span
style='font-size:10.0pt;font-family:Courier;color:#7F0055;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>extends </span><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>Composite {</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style='mso-tab-count:1'>      </span>Table
table;</span><span style='font-size:10.0pt;font-family:Courier;mso-ansi-language:
EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style='mso-tab-count:1'>      </span>TableTreeItem[]
items = EMPTY_ITEMS;</span><span style='font-size:10.0pt;font-family:Courier;
mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style='mso-tab-count:1'>      </span>Image
plusImage, minusImage, sizeImage;</span><span style='font-size:10.0pt;
font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><![if !supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style='mso-tab-count:1'>      </span></span><span
style='font-size:10.0pt;font-family:Courier;color:#2A7FAA;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>/*</span><span style='font-size:
10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#2A7FAA;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style='mso-tab-count:1'>      </span>*
TableTreeItems are not treated as children but rather as items.</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#2A7FAA;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style='mso-tab-count:1'>      </span>*
When the TableTree is disposed, all children are disposed because </span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#2A7FAA;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style='mso-tab-count:1'>      </span>*
TableTree inherits this behaviour from Composite.<span style="mso-spacerun:
yes">  </span>The items</span><span style='font-size:10.0pt;font-family:Courier;
mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#2A7FAA;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style='mso-tab-count:1'>      </span>*
must be disposed separately.<span style="mso-spacerun: yes">  </span>Because
TableTree is not part of</span><span style='font-size:10.0pt;font-family:Courier;
mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#2A7FAA;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style='mso-tab-count:1'>      </span>*
the org.eclipse.swt.widgets package, the method releaseWidget can </span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#2A7FAA;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style='mso-tab-count:1'>      </span>*
not be overriden (this is how items are disposed of in Table and Tree).</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#2A7FAA;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style='mso-tab-count:1'>      </span>*
Instead, the items are disposed of in response to the dispose event on the</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#2A7FAA;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style='mso-tab-count:1'>      </span>*
TableTree.<span style="mso-spacerun: yes">  </span>The &quot;inDispose&quot;
flag is used to distinguish between disposing</span><span style='font-size:
10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#2A7FAA;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style='mso-tab-count:1'>      </span>*
one TableTreeItem (e.g. when removing an entry from the TableTree) and </span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#2A7FAA;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style='mso-tab-count:1'>      </span>*
disposing the entire TableTree.</span><span style='font-size:10.0pt;font-family:
Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#2A7FAA;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style='mso-tab-count:1'>      </span>*/</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#7F0055;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style='mso-tab-count:1'>      </span>boolean
</span><span style='font-size:10.0pt;font-family:Courier;color:black;
background:white;mso-highlight:white;mso-ansi-language:EN-US'>inDispose = </span><span
style='font-size:10.0pt;font-family:Courier;color:#7F0055;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>false</span><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>;</span><span style='font-size:
10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style='mso-tab-count:1'>      </span></span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style='mso-tab-count:1'>      </span></span><span
style='font-size:10.0pt;font-family:Courier;color:#7F0055;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>static final </span><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>TableTreeItem[] EMPTY_ITEMS = </span><span
style='font-size:10.0pt;font-family:Courier;color:#7F0055;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>new </span><span style='font-size:
10.0pt;font-family:Courier;color:black;background:white;mso-highlight:white;
mso-ansi-language:EN-US'>TableTreeItem [0];<span style='mso-tab-count:1'> </span></span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style='mso-tab-count:1'>      </span></span><span
style='font-size:10.0pt;font-family:Courier;color:#7F0055;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>static final </span><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>String[] EMPTY_TEXTS = </span><span
style='font-size:10.0pt;font-family:Courier;color:#7F0055;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>new </span><span style='font-size:
10.0pt;font-family:Courier;color:black;background:white;mso-highlight:white;
mso-ansi-language:EN-US'>String [0];<span style='mso-tab-count:1'>   </span></span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style='mso-tab-count:1'>      </span></span><span
style='font-size:10.0pt;font-family:Courier;color:#7F0055;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>static final </span><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>Image[] EMPTY_IMAGES = </span><span
style='font-size:10.0pt;font-family:Courier;color:#7F0055;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>new </span><span style='font-size:
10.0pt;font-family:Courier;color:black;background:white;mso-highlight:white;
mso-ansi-language:EN-US'>Image [0];<span style='mso-tab-count:1'>    </span></span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><![if !supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#3F7F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>/**</span><span style='font-size:
10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#3F7F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style="mso-spacerun:
yes"> </span>* Creates a new instance of the widget.</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#3F7F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style="mso-spacerun:
yes"> </span>*</span><span style='font-size:10.0pt;font-family:Courier;
mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#3F7F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style="mso-spacerun:
yes"> </span>* </span><span style='font-size:10.0pt;font-family:Courier;
color:#7F9F5F;background:white;mso-highlight:white;mso-ansi-language:EN-US'>@param
</span><span style='font-size:10.0pt;font-family:Courier;color:#3F7F5F;
background:white;mso-highlight:white;mso-ansi-language:EN-US'>parent a
composite widget</span><span style='font-size:10.0pt;font-family:Courier;
mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#3F7F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style="mso-spacerun:
yes"> </span>* </span><span style='font-size:10.0pt;font-family:Courier;
color:#7F9F5F;background:white;mso-highlight:white;mso-ansi-language:EN-US'>@param
</span><span style='font-size:10.0pt;font-family:Courier;color:#3F7F5F;
background:white;mso-highlight:white;mso-ansi-language:EN-US'>style the bitwise
OR'ing of widget styles</span><span style='font-size:10.0pt;font-family:Courier;
mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#3F7F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style="mso-spacerun:
yes"> </span>*/</span><span style='font-size:10.0pt;font-family:Courier;
mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#7F0055;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>public </span><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>TableTree(Composite parent, </span><span
style='font-size:10.0pt;font-family:Courier;color:#7F0055;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>int </span><span style='font-size:
10.0pt;font-family:Courier;color:black;background:white;mso-highlight:white;
mso-ansi-language:EN-US'>style) {</span><span style='font-size:10.0pt;
font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style='mso-tab-count:1'>      </span></span><span
style='font-size:10.0pt;font-family:Courier;color:#7F0055;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>super</span><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>(parent, SWT.NONE);</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style='mso-tab-count:1'>      </span>table
= </span><span style='font-size:10.0pt;font-family:Courier;color:#7F0055;
background:white;mso-highlight:white;mso-ansi-language:EN-US'>new </span><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>Table(</span><span
style='font-size:10.0pt;font-family:Courier;color:#7F0055;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>this</span><span style='font-size:
10.0pt;font-family:Courier;color:black;background:white;mso-highlight:white;
mso-ansi-language:EN-US'>, style);</span><span style='font-size:10.0pt;
font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style='mso-tab-count:1'>      </span>setBackground(table.getBackground());</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style='mso-tab-count:1'>      </span>setForeground(table.getForeground());</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style='mso-tab-count:1'>      </span>setFont(table.getFont());</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style='mso-tab-count:1'>      </span>table.addListener(SWT.MouseDown,
</span><span style='font-size:10.0pt;font-family:Courier;color:#7F0055;
background:white;mso-highlight:white;mso-ansi-language:EN-US'>new </span><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>Listener() {</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style='mso-tab-count:2'>            </span></span><span
style='font-size:10.0pt;font-family:Courier;color:#7F0055;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>public void </span><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>handleEvent(Event e) {</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style='mso-tab-count:3'>                  </span>onMouseDown(e);</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style='mso-tab-count:2'>            </span>}</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style='mso-tab-count:1'>      </span>});</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style='mso-tab-count:1'>      </span>table.addListener(SWT.Selection,
</span><span style='font-size:10.0pt;font-family:Courier;color:#7F0055;
background:white;mso-highlight:white;mso-ansi-language:EN-US'>new </span><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>Listener() {</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style='mso-tab-count:2'>            </span></span><span
style='font-size:10.0pt;font-family:Courier;color:#7F0055;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>public void </span><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>handleEvent(Event e) {</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style='mso-tab-count:3'>                  </span>onSelection(e);</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style='mso-tab-count:2'>            </span>}</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style='mso-tab-count:1'>      </span>});</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style='mso-tab-count:1'>      </span>table.addListener(SWT.DefaultSelection,
</span><span style='font-size:10.0pt;font-family:Courier;color:#7F0055;
background:white;mso-highlight:white;mso-ansi-language:EN-US'>new </span><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>Listener() {</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style='mso-tab-count:2'>            </span></span><span
style='font-size:10.0pt;font-family:Courier;color:#7F0055;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>public void </span><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>handleEvent(Event e) {</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style='mso-tab-count:3'>                  </span>onSelection(e);</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style='mso-tab-count:2'>            </span>}</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style='mso-tab-count:1'>      </span>});</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><![if !supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style='mso-tab-count:1'>      </span>addListener(SWT.Dispose,
</span><span style='font-size:10.0pt;font-family:Courier;color:#7F0055;
background:white;mso-highlight:white;mso-ansi-language:EN-US'>new </span><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>Listener() {</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style='mso-tab-count:2'>            </span></span><span
style='font-size:10.0pt;font-family:Courier;color:#7F0055;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>public void </span><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>handleEvent(Event e) {</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style='mso-tab-count:3'>                  </span>onDispose();</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style='mso-tab-count:2'>            </span>}</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style='mso-tab-count:1'>      </span>});</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style='mso-tab-count:1'>      </span>addListener(SWT.Resize,
</span><span style='font-size:10.0pt;font-family:Courier;color:#7F0055;
background:white;mso-highlight:white;mso-ansi-language:EN-US'>new </span><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>Listener() {</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style='mso-tab-count:2'>            </span></span><span
style='font-size:10.0pt;font-family:Courier;color:#7F0055;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>public void </span><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>handleEvent(Event e) {</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style='mso-tab-count:3'>                  </span>onResize();</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style='mso-tab-count:2'>            </span>}</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style='mso-tab-count:1'>      </span>});</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style='mso-tab-count:1'>      </span>addListener(SWT.FocusIn,
</span><span style='font-size:10.0pt;font-family:Courier;color:#7F0055;
background:white;mso-highlight:white;mso-ansi-language:EN-US'>new </span><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>Listener() {</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style='mso-tab-count:2'>            </span></span><span
style='font-size:10.0pt;font-family:Courier;color:#7F0055;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>public void </span><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>handleEvent(Event e) {</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style='mso-tab-count:3'>                  </span>onFocusIn();</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style='mso-tab-count:2'>            </span>}</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style='mso-tab-count:1'>      </span>});</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>}</span><span style='font-size:
10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><![if !supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#7F0055;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>int </span><span style='font-size:
10.0pt;font-family:Courier;color:black;background:white;mso-highlight:white;
mso-ansi-language:EN-US'>addItem(TableTreeItem item, </span><span
style='font-size:10.0pt;font-family:Courier;color:#7F0055;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>int </span><span style='font-size:
10.0pt;font-family:Courier;color:black;background:white;mso-highlight:white;
mso-ansi-language:EN-US'>index) {</span><span style='font-size:10.0pt;
font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style='mso-tab-count:1'>      </span></span><span
style='font-size:10.0pt;font-family:Courier;color:#7F0055;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>if </span><span style='font-size:
10.0pt;font-family:Courier;color:black;background:white;mso-highlight:white;
mso-ansi-language:EN-US'>(index &lt; 0 || index &gt; items.length) </span><span
style='font-size:10.0pt;font-family:Courier;color:#7F0055;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>throw new </span><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>SWTError(SWT.ERROR_INVALID_ARGUMENT);</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style='mso-tab-count:1'>      </span>TableTreeItem[]
newItems = </span><span style='font-size:10.0pt;font-family:Courier;color:#7F0055;
background:white;mso-highlight:white;mso-ansi-language:EN-US'>new </span><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>TableTreeItem[items.length + 1];</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style='mso-tab-count:1'>      </span>System.arraycopy(items,
0, newItems, 0, index);</span><span style='font-size:10.0pt;font-family:Courier;
mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style='mso-tab-count:1'>      </span>newItems[index]
= item;</span><span style='font-size:10.0pt;font-family:Courier;mso-ansi-language:
EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style='mso-tab-count:1'>      </span>System.arraycopy(items,
index, newItems, index + 1, items.length - index); </span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style='mso-tab-count:1'>      </span>items
= newItems;</span><span style='font-size:10.0pt;font-family:Courier;mso-ansi-language:
EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><![if !supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style='mso-tab-count:1'>      </span></span><span
style='font-size:10.0pt;font-family:Courier;color:#2A7FAA;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>/* Return the index in the table
where this table should be inserted */</span><span style='font-size:10.0pt;
font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#7F0055;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style='mso-tab-count:1'>      </span>if
</span><span style='font-size:10.0pt;font-family:Courier;color:black;
background:white;mso-highlight:white;mso-ansi-language:EN-US'>(index ==
items.length - 1 ) </span><span style='font-size:10.0pt;font-family:Courier;
mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style='mso-tab-count:2'>            </span></span><span
style='font-size:10.0pt;font-family:Courier;color:#7F0055;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>return </span><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>table.getItemCount();</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style='mso-tab-count:1'>      </span></span><span
style='font-size:10.0pt;font-family:Courier;color:#7F0055;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>else </span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#7F0055;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style='mso-tab-count:2'>            </span>return
</span><span style='font-size:10.0pt;font-family:Courier;color:black;
background:white;mso-highlight:white;mso-ansi-language:EN-US'>table.indexOf(items[index+1].tableItem);</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>}</span><span style='font-size:
10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><![if !supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#3F7F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>/**<span style='mso-tab-count:
1'>   </span> </span><span style='font-size:10.0pt;font-family:Courier;
mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#3F7F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style="mso-spacerun:
yes"> </span>* Adds the listener to receive selection events.</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#3F7F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style="mso-spacerun:
yes"> </span>* </span><span style='font-size:10.0pt;font-family:Courier;
color:#7F9F5F;background:white;mso-highlight:white;mso-ansi-language:EN-US'>&lt;p&gt;</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#7F9F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style="mso-spacerun:
yes"> </span></span><span style='font-size:10.0pt;font-family:Courier;
color:#3F7F5F;background:white;mso-highlight:white;mso-ansi-language:EN-US'>*</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#3F7F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style="mso-spacerun:
yes"> </span>* </span><span style='font-size:10.0pt;font-family:Courier;
color:#7F9F5F;background:white;mso-highlight:white;mso-ansi-language:EN-US'>@param
</span><span style='font-size:10.0pt;font-family:Courier;color:#3F7F5F;
background:white;mso-highlight:white;mso-ansi-language:EN-US'>listener the
selection listener</span><span style='font-size:10.0pt;font-family:Courier;
mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#3F7F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style="mso-spacerun:
yes"> </span>*</span><span style='font-size:10.0pt;font-family:Courier;
mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#3F7F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style="mso-spacerun:
yes"> </span>* </span><span style='font-size:10.0pt;font-family:Courier;
color:#7F9F5F;background:white;mso-highlight:white;mso-ansi-language:EN-US'>@exception
</span><span style='font-size:10.0pt;font-family:Courier;color:#3F7F5F;
background:white;mso-highlight:white;mso-ansi-language:EN-US'>SWTError </span><span
style='font-size:10.0pt;font-family:Courier;color:#7F9F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>&lt;ul&gt;</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#7F9F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style="mso-spacerun:
yes"> </span></span><span style='font-size:10.0pt;font-family:Courier;
color:#3F7F5F;background:white;mso-highlight:white;mso-ansi-language:EN-US'>*<span
style='mso-tab-count:1'>    </span></span><span style='font-size:10.0pt;
font-family:Courier;color:#7F9F5F;background:white;mso-highlight:white;
mso-ansi-language:EN-US'>&lt;li&gt;</span><span style='font-size:10.0pt;
font-family:Courier;color:#3F7F5F;background:white;mso-highlight:white;
mso-ansi-language:EN-US'>ERROR_THREAD_INVALID_ACCESS when called from the wrong
thread</span><span style='font-size:10.0pt;font-family:Courier;mso-ansi-language:
EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#3F7F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style="mso-spacerun:
yes"> </span>*<span style='mso-tab-count:1'>    </span></span><span
style='font-size:10.0pt;font-family:Courier;color:#7F9F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>&lt;li&gt;</span><span
style='font-size:10.0pt;font-family:Courier;color:#3F7F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>ERROR_WIDGET_DISPOSED when the
widget has been disposed</span><span style='font-size:10.0pt;font-family:Courier;
mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#3F7F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style="mso-spacerun:
yes"> </span>*<span style='mso-tab-count:1'>    </span></span><span
style='font-size:10.0pt;font-family:Courier;color:#7F9F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>&lt;li&gt;</span><span
style='font-size:10.0pt;font-family:Courier;color:#3F7F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>ERROR_NULL_ARGUMENT when listener
is null</span><span style='font-size:10.0pt;font-family:Courier;mso-ansi-language:
EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#3F7F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style="mso-spacerun:
yes"> </span>* </span><span style='font-size:10.0pt;font-family:Courier;
color:#7F9F5F;background:white;mso-highlight:white;mso-ansi-language:EN-US'>&lt;/ul&gt;</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#7F9F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style="mso-spacerun:
yes"> </span></span><span style='font-size:10.0pt;font-family:Courier;
color:#3F7F5F;background:white;mso-highlight:white;mso-ansi-language:EN-US'>*/</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#7F0055;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>public void </span><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>addSelectionListener(SelectionListener
listener) {</span><span style='font-size:10.0pt;font-family:Courier;mso-ansi-language:
EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style='mso-tab-count:1'>      </span></span><span
style='font-size:10.0pt;font-family:Courier;color:#7F0055;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>if </span><span style='font-size:
10.0pt;font-family:Courier;color:black;background:white;mso-highlight:white;
mso-ansi-language:EN-US'>(listener == </span><span style='font-size:10.0pt;
font-family:Courier;color:#7F0055;background:white;mso-highlight:white;
mso-ansi-language:EN-US'>null</span><span style='font-size:10.0pt;font-family:
Courier;color:black;background:white;mso-highlight:white;mso-ansi-language:
EN-US'>) </span><span style='font-size:10.0pt;font-family:Courier;color:#7F0055;
background:white;mso-highlight:white;mso-ansi-language:EN-US'>throw new </span><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>SWTError
(SWT.ERROR_NULL_ARGUMENT);</span><span style='font-size:10.0pt;font-family:
Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style='mso-tab-count:1'>      </span>TypedListener
typedListener = </span><span style='font-size:10.0pt;font-family:Courier;
color:#7F0055;background:white;mso-highlight:white;mso-ansi-language:EN-US'>new
</span><span style='font-size:10.0pt;font-family:Courier;color:black;
background:white;mso-highlight:white;mso-ansi-language:EN-US'>TypedListener
(listener);</span><span style='font-size:10.0pt;font-family:Courier;mso-ansi-language:
EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style='mso-tab-count:1'>      </span>addListener
(SWT.Selection,typedListener);</span><span style='font-size:10.0pt;font-family:
Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style='mso-tab-count:1'>      </span>addListener
(SWT.DefaultSelection,typedListener);</span><span style='font-size:10.0pt;
font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>}</span><span style='font-size:
10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><![if !supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#3F7F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>/**<span style='mso-tab-count:
1'>   </span> </span><span style='font-size:10.0pt;font-family:Courier;
mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#3F7F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style="mso-spacerun:
yes"> </span>* Adds the listener to receive tree events.</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#3F7F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style="mso-spacerun:
yes"> </span>* </span><span style='font-size:10.0pt;font-family:Courier;
color:#7F9F5F;background:white;mso-highlight:white;mso-ansi-language:EN-US'>&lt;p&gt;</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#7F9F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style="mso-spacerun:
yes"> </span></span><span style='font-size:10.0pt;font-family:Courier;
color:#3F7F5F;background:white;mso-highlight:white;mso-ansi-language:EN-US'>*</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#3F7F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style="mso-spacerun:
yes"> </span>* </span><span style='font-size:10.0pt;font-family:Courier;
color:#7F9F5F;background:white;mso-highlight:white;mso-ansi-language:EN-US'>@param
</span><span style='font-size:10.0pt;font-family:Courier;color:#3F7F5F;
background:white;mso-highlight:white;mso-ansi-language:EN-US'>listener the tree
listener</span><span style='font-size:10.0pt;font-family:Courier;mso-ansi-language:
EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#3F7F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style="mso-spacerun:
yes"> </span>*</span><span style='font-size:10.0pt;font-family:Courier;
mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#3F7F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style="mso-spacerun:
yes"> </span>* </span><span style='font-size:10.0pt;font-family:Courier;
color:#7F9F5F;background:white;mso-highlight:white;mso-ansi-language:EN-US'>@exception
</span><span style='font-size:10.0pt;font-family:Courier;color:#3F7F5F;
background:white;mso-highlight:white;mso-ansi-language:EN-US'>SWTError </span><span
style='font-size:10.0pt;font-family:Courier;color:#7F9F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>&lt;ul&gt;</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#7F9F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style="mso-spacerun:
yes"> </span></span><span style='font-size:10.0pt;font-family:Courier;
color:#3F7F5F;background:white;mso-highlight:white;mso-ansi-language:EN-US'>*<span
style='mso-tab-count:1'>    </span></span><span style='font-size:10.0pt;
font-family:Courier;color:#7F9F5F;background:white;mso-highlight:white;
mso-ansi-language:EN-US'>&lt;li&gt;</span><span style='font-size:10.0pt;
font-family:Courier;color:#3F7F5F;background:white;mso-highlight:white;
mso-ansi-language:EN-US'>ERROR_THREAD_INVALID_ACCESS when called from the wrong
thread</span><span style='font-size:10.0pt;font-family:Courier;mso-ansi-language:
EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#3F7F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style="mso-spacerun:
yes"> </span>*<span style='mso-tab-count:1'>    </span></span><span
style='font-size:10.0pt;font-family:Courier;color:#7F9F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>&lt;li&gt;</span><span
style='font-size:10.0pt;font-family:Courier;color:#3F7F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>ERROR_WIDGET_DISPOSED when the
widget has been disposed</span><span style='font-size:10.0pt;font-family:Courier;
mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#3F7F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style="mso-spacerun:
yes"> </span>*<span style='mso-tab-count:1'>    </span></span><span
style='font-size:10.0pt;font-family:Courier;color:#7F9F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>&lt;li&gt;</span><span
style='font-size:10.0pt;font-family:Courier;color:#3F7F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>ERROR_NULL_ARGUMENT when listener
is null</span><span style='font-size:10.0pt;font-family:Courier;mso-ansi-language:
EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#3F7F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style="mso-spacerun:
yes"> </span>* </span><span style='font-size:10.0pt;font-family:Courier;
color:#7F9F5F;background:white;mso-highlight:white;mso-ansi-language:EN-US'>&lt;/ul&gt;</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#7F9F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style="mso-spacerun:
yes"> </span></span><span style='font-size:10.0pt;font-family:Courier;
color:#3F7F5F;background:white;mso-highlight:white;mso-ansi-language:EN-US'>*/</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#7F0055;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>public void </span><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>addTreeListener(TreeListener
listener) {</span><span style='font-size:10.0pt;font-family:Courier;mso-ansi-language:
EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style='mso-tab-count:1'>      </span></span><span
style='font-size:10.0pt;font-family:Courier;color:#7F0055;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>if </span><span style='font-size:
10.0pt;font-family:Courier;color:black;background:white;mso-highlight:white;
mso-ansi-language:EN-US'>(listener == </span><span style='font-size:10.0pt;
font-family:Courier;color:#7F0055;background:white;mso-highlight:white;
mso-ansi-language:EN-US'>null</span><span style='font-size:10.0pt;font-family:
Courier;color:black;background:white;mso-highlight:white;mso-ansi-language:
EN-US'>) </span><span style='font-size:10.0pt;font-family:Courier;color:#7F0055;
background:white;mso-highlight:white;mso-ansi-language:EN-US'>throw new </span><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>SWTError
(SWT.ERROR_NULL_ARGUMENT);</span><span style='font-size:10.0pt;font-family:
Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style='mso-tab-count:1'>      </span>TypedListener
typedListener = </span><span style='font-size:10.0pt;font-family:Courier;
color:#7F0055;background:white;mso-highlight:white;mso-ansi-language:EN-US'>new
</span><span style='font-size:10.0pt;font-family:Courier;color:black;
background:white;mso-highlight:white;mso-ansi-language:EN-US'>TypedListener
(listener);</span><span style='font-size:10.0pt;font-family:Courier;mso-ansi-language:
EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style='mso-tab-count:1'>      </span>addListener
(SWT.Expand, typedListener);</span><span style='font-size:10.0pt;font-family:
Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style='mso-tab-count:1'>      </span>addListener
(SWT.Collapse, typedListener);</span><span style='font-size:10.0pt;font-family:
Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>}<span style="mso-spacerun: yes"> 
</span></span><span style='font-size:10.0pt;font-family:Courier;mso-ansi-language:
EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><![if !supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#3F7F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>/**</span><span style='font-size:
10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#3F7F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style="mso-spacerun:
yes"> </span>* Computes the preferred size of the widget.</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#3F7F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style="mso-spacerun:
yes"> </span>* </span><span style='font-size:10.0pt;font-family:Courier;
color:#7F9F5F;background:white;mso-highlight:white;mso-ansi-language:EN-US'>&lt;p&gt;</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#7F9F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style="mso-spacerun:
yes"> </span></span><span style='font-size:10.0pt;font-family:Courier;
color:#3F7F5F;background:white;mso-highlight:white;mso-ansi-language:EN-US'>*
Calculate the preferred size of the widget based</span><span style='font-size:
10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#3F7F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style="mso-spacerun:
yes"> </span>* on the current contents. The hint arguments allow</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#3F7F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style="mso-spacerun:
yes"> </span>* a specific client area width and/or height to be</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#3F7F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style="mso-spacerun:
yes"> </span>* requested. The hints may be honored depending on</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#3F7F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style="mso-spacerun:
yes"> </span>* the platform and the layout.</span><span style='font-size:10.0pt;
font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#3F7F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style="mso-spacerun:
yes"> </span>*</span><span style='font-size:10.0pt;font-family:Courier;
mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#3F7F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style="mso-spacerun:
yes"> </span>* </span><span style='font-size:10.0pt;font-family:Courier;
color:#7F9F5F;background:white;mso-highlight:white;mso-ansi-language:EN-US'>@param
</span><span style='font-size:10.0pt;font-family:Courier;color:#3F7F5F;
background:white;mso-highlight:white;mso-ansi-language:EN-US'>wHint the width
hint (can be SWT.DEFAULT)</span><span style='font-size:10.0pt;font-family:Courier;
mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#3F7F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style="mso-spacerun:
yes"> </span>* </span><span style='font-size:10.0pt;font-family:Courier;
color:#7F9F5F;background:white;mso-highlight:white;mso-ansi-language:EN-US'>@param
</span><span style='font-size:10.0pt;font-family:Courier;color:#3F7F5F;
background:white;mso-highlight:white;mso-ansi-language:EN-US'>hHint the height
hint (can be SWT.DEFAULT)</span><span style='font-size:10.0pt;font-family:Courier;
mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#3F7F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style="mso-spacerun:
yes"> </span>* </span><span style='font-size:10.0pt;font-family:Courier;
color:#7F9F5F;background:white;mso-highlight:white;mso-ansi-language:EN-US'>@return
</span><span style='font-size:10.0pt;font-family:Courier;color:#3F7F5F;
background:white;mso-highlight:white;mso-ansi-language:EN-US'>a point
containing the preferred size of the widget including trim</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#3F7F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style="mso-spacerun:
yes"> </span>*</span><span style='font-size:10.0pt;font-family:Courier;
mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#3F7F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style="mso-spacerun:
yes"> </span>* </span><span style='font-size:10.0pt;font-family:Courier;
color:#7F9F5F;background:white;mso-highlight:white;mso-ansi-language:EN-US'>@exception
</span><span style='font-size:10.0pt;font-family:Courier;color:#3F7F5F;
background:white;mso-highlight:white;mso-ansi-language:EN-US'>SWTError </span><span
style='font-size:10.0pt;font-family:Courier;color:#7F9F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>&lt;ul&gt;</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#7F9F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style="mso-spacerun:
yes"> </span></span><span style='font-size:10.0pt;font-family:Courier;
color:#3F7F5F;background:white;mso-highlight:white;mso-ansi-language:EN-US'>*<span
style='mso-tab-count:2'>          </span></span><span style='font-size:10.0pt;
font-family:Courier;color:#7F9F5F;background:white;mso-highlight:white;
mso-ansi-language:EN-US'>&lt;li&gt;</span><span style='font-size:10.0pt;
font-family:Courier;color:#3F7F5F;background:white;mso-highlight:white;
mso-ansi-language:EN-US'>ERROR_THREAD_INVALID_ACCESS when called from the wrong
thread</span><span style='font-size:10.0pt;font-family:Courier;color:#7F9F5F;
background:white;mso-highlight:white;mso-ansi-language:EN-US'>&lt;/li&gt;</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#7F9F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style="mso-spacerun:
yes"> </span></span><span style='font-size:10.0pt;font-family:Courier;
color:#3F7F5F;background:white;mso-highlight:white;mso-ansi-language:EN-US'>*<span
style='mso-tab-count:2'>          </span></span><span style='font-size:10.0pt;
font-family:Courier;color:#7F9F5F;background:white;mso-highlight:white;
mso-ansi-language:EN-US'>&lt;li&gt;</span><span style='font-size:10.0pt;
font-family:Courier;color:#3F7F5F;background:white;mso-highlight:white;
mso-ansi-language:EN-US'>ERROR_WIDGET_DISPOSED when the widget has been
disposed</span><span style='font-size:10.0pt;font-family:Courier;color:#7F9F5F;
background:white;mso-highlight:white;mso-ansi-language:EN-US'>&lt;/li&gt;</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#7F9F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style="mso-spacerun:
yes"> </span></span><span style='font-size:10.0pt;font-family:Courier;
color:#3F7F5F;background:white;mso-highlight:white;mso-ansi-language:EN-US'>*<span
style='mso-tab-count:1'>    </span></span><span style='font-size:10.0pt;
font-family:Courier;color:#7F9F5F;background:white;mso-highlight:white;
mso-ansi-language:EN-US'>&lt;/ul&gt;</span><span style='font-size:10.0pt;
font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#7F9F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style="mso-spacerun:
yes"> </span></span><span style='font-size:10.0pt;font-family:Courier;
color:#3F7F5F;background:white;mso-highlight:white;mso-ansi-language:EN-US'>*/</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#7F0055;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>public </span><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>Point computeSize (</span><span
style='font-size:10.0pt;font-family:Courier;color:#7F0055;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>int </span><span style='font-size:
10.0pt;font-family:Courier;color:black;background:white;mso-highlight:white;
mso-ansi-language:EN-US'>wHint, </span><span style='font-size:10.0pt;
font-family:Courier;color:#7F0055;background:white;mso-highlight:white;
mso-ansi-language:EN-US'>int </span><span style='font-size:10.0pt;font-family:
Courier;color:black;background:white;mso-highlight:white;mso-ansi-language:
EN-US'>hHint) {</span><span style='font-size:10.0pt;font-family:Courier;
mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style='mso-tab-count:1'>      </span></span><span
style='font-size:10.0pt;font-family:Courier;color:#7F0055;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>return </span><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>table.computeSize (wHint, hHint, </span><span
style='font-size:10.0pt;font-family:Courier;color:#7F0055;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>true</span><span style='font-size:
10.0pt;font-family:Courier;color:black;background:white;mso-highlight:white;
mso-ansi-language:EN-US'>);</span><span style='font-size:10.0pt;font-family:
Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:black;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>}</span><span style='font-size:
10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><![if !supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#3F7F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'>/**</span><span style='font-size:
10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#3F7F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style="mso-spacerun:
yes"> </span>* Computes the widget trim.</span><span style='font-size:10.0pt;
font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#3F7F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style="mso-spacerun:
yes"> </span>* </span><span style='font-size:10.0pt;font-family:Courier;
color:#7F9F5F;background:white;mso-highlight:white;mso-ansi-language:EN-US'>&lt;p&gt;</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#7F9F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style="mso-spacerun:
yes"> </span></span><span style='font-size:10.0pt;font-family:Courier;
color:#3F7F5F;background:white;mso-highlight:white;mso-ansi-language:EN-US'>*
Trim is widget specific and may include scroll</span><span style='font-size:
10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#3F7F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style="mso-spacerun:
yes"> </span>* bars and menu bar in addition to other trimmings</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#3F7F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style="mso-spacerun:
yes"> </span>* that are outside of the widget's client area.</span><span
style='font-size:10.0pt;font-family:Courier;mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#3F7F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style="mso-spacerun:
yes"> </span>*</span><span style='font-size:10.0pt;font-family:Courier;
mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#3F7F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style="mso-spacerun:
yes"> </span>* </span><span style='font-size:10.0pt;font-family:Courier;
color:#7F9F5F;background:white;mso-highlight:white;mso-ansi-language:EN-US'>@param
</span><span style='font-size:10.0pt;font-family:Courier;color:#3F7F5F;
background:white;mso-highlight:white;mso-ansi-language:EN-US'>x the x location
of the client area</span><span style='font-size:10.0pt;font-family:Courier;
mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#3F7F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style="mso-spacerun:
yes"> </span>* </span><span style='font-size:10.0pt;font-family:Courier;
color:#7F9F5F;background:white;mso-highlight:white;mso-ansi-language:EN-US'>@param
</span><span style='font-size:10.0pt;font-family:Courier;color:#3F7F5F;
background:white;mso-highlight:white;mso-ansi-language:EN-US'>y the y location
of the client area</span><span style='font-size:10.0pt;font-family:Courier;
mso-ansi-language:EN-US'><o:p></o:p></span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:Courier;color:#3F7F5F;background:white;
mso-highlight:white;mso-ansi-language:EN-US'><span style="mso-spacerun:
yes"> </span>* </span><span style='font-size:10.0pt;font-family:Courier;
color:#7F9F5F;