home *** CD-ROM | disk | FTP | other *** search
/ The Best of Windows 95.com 1996 September / WIN95_09961.iso / java / mojo1-2e.exe / MOJODISK / DATA.4 / plugins / treewrap.def < prev   
Encoding:
Text File  |  1996-07-01  |  3.9 KB  |  160 lines

  1. DEF_COMPONENTNAME
  2. MlTree
  3. DEF_SUPERCLASS
  4. Panel
  5. DEF_SUPERCOMPONENT
  6.  
  7. DEF_PACKAGE
  8. plugins
  9. microline
  10. DEF_ENDLIST
  11. DEF_SUBCOMPONENTLIST
  12. DEF_ENDLIST
  13. DEF_SUBCOMPONENTCLASSLIST
  14. DEF_ENDLIST
  15. DEF_CATEGORY
  16.  
  17. DEF_BITMAP
  18.  
  19. DEF_THUMBNAIL_UP
  20.  
  21. DEF_THUMBNAIL_DOWN
  22.  
  23. DEF_BASE
  24. DEF_IMPORTS
  25. DEF_ENDLIST
  26. DEF_REQUIRES
  27. DEF_ENDLIST
  28. DEF_IMPLEMENTS
  29. DEF_ENDLIST
  30. DEF_DECLARATION
  31. DEF_ENDLIST
  32. DEF_METHOD
  33. public void addRow(int level, boolean expands, String string)
  34. // Adds a row of level to end of the Tree displaying the string passed. If expands is true, the row may
  35. // be expanded by the user. 
  36. DEF_ENDLIST
  37. DEF_METHOD
  38. public void addRow(int level, boolean expands, boolean isExpanded, int position, Image
  39. image, String string)
  40. // Adds a row of level to the Tree at position. A position of -1 specifies after the last content row. The
  41. // image and string will appear in the first cell of the row. The image value may be null, in which case,
  42. // the default image will be displayed. If expands is true, the row may be expanded by the user. The
  43. // isExpanded flag indicates if the row is currently expanded (true) or not (false). 
  44. DEF_ENDLIST
  45. DEF_METHOD
  46. public void addRows(MlTreeRowDefinition rows[], int position)
  47. // Adds rows to the tree at the given position. A position of -1 specifies after the last content row. The
  48. // elements of the rows array are defined as: 
  49. //
  50. //    public class MlTreeRowDefinition
  51. //    {
  52. //    public boolean expands;
  53. //    public Image image;
  54. //  public boolean isExpanded;
  55. //  public int level;
  56. //  public String string;
  57. //  }
  58. DEF_ENDLIST
  59. DEF_METHOD
  60. public void collapseRow(int row, boolean notify)
  61. // Collapses the given row. If notify is true, and the row is currently expanded, a COLLAPSE_ROW
  62. // event will be posted. 
  63. DEF_ENDLIST
  64. DEF_METHOD
  65. public int countRowChildren(int row)
  66. // Returns the number of children of the row passed. The children of a parent row are defined as all
  67. // rows following the parent row which have a level greater than the parent row until a row with a level
  68. // equal to or less than the parent row is found. 
  69. DEF_ENDLIST
  70. DEF_METHOD
  71. public void expandRow(int row, boolean notify)
  72. // Expands the given row. If notify is true, and the row is currently collapsed, an EXPAND_ROW
  73. // event will be posted. 
  74. DEF_ENDLIST
  75. DEF_ENDCOMPONENT
  76. DEF_COMPONENTNAME
  77. MicrolineTree
  78. DEF_SUPERCLASS
  79. MlTree
  80. DEF_SUPERCOMPONENT
  81.  
  82. DEF_PACKAGE
  83. plugins
  84. trees
  85. DEF_ENDLIST
  86. DEF_SUBCOMPONENTLIST
  87. DEF_ENDLIST
  88. DEF_SUBCOMPONENTCLASSLIST
  89. DEF_ENDLIST
  90. DEF_CATEGORY
  91. MicroLine
  92. DEF_BITMAP
  93. treem.bmp
  94. DEF_THUMBNAIL_UP
  95. mltree.bmp
  96. DEF_THUMBNAIL_DOWN
  97. 2-mltree.bmp
  98. DEF_VISUAL
  99. DEF_TOOL
  100. DEF_IMPORTS
  101. DEF_ENDLIST
  102. DEF_REQUIRES
  103. DEF_ENDLIST
  104. DEF_IMPLEMENTS
  105. DEF_ENDLIST
  106. DEF_DECLARATION
  107. // A class that produces a tabpanel.
  108. // Check the microline Documentation for a full feature list.
  109. // This component has much more functionality which is described in
  110. // the included Microline documentation in /docs/microline.
  111. // This third party component was created by MicroLine.  They can be contacted at:
  112. // http://www.mlsoft.com
  113. DEF_ENDLIST
  114. DEF_METHOD
  115. void initialize() {
  116.     setLayout(new BorderLayout());
  117.  
  118.     setValue("layoutFrozen", true);
  119.     addRow(0, true,"Root");
  120.     addRow(1, true, "Level 1 Parent");
  121.     addRow(2, false,"1st Child of Level 1 Parent");
  122.     addRow(2, false,"2nd Child of Level 1 Parent");
  123.     addRow(2, true, "Level 2 Parent");
  124.     addRow(3, false, "Child of Level 2 Parent");
  125.     addRow(1, true, "Level 1 Parent");
  126.     addRow(2, false, "Child of Level 1 Parent");
  127.     setValue("layoutFrozen", false);
  128.  
  129.     }
  130. DEF_ENDLIST
  131. DEF_PROPERTY
  132. Top
  133. int
  134. move(bounds().x, AVALUE);
  135. AVALUE = bounds().y;
  136. 0
  137. DEF_ENDLIST
  138. DEF_PROPERTY
  139. Left
  140. int
  141. move(AVALUE, bounds().y);
  142. AVALUE = bounds().x;
  143. 0
  144. DEF_ENDLIST
  145. DEF_PROPERTY
  146. Height
  147. int
  148. resize(bounds().width, AVALUE);
  149. AVALUE = bounds().height;
  150. 200
  151. DEF_ENDLIST
  152. DEF_PROPERTY
  153. Width
  154. int
  155. resize(AVALUE, bounds().height);
  156. AVALUE = bounds().width;
  157. 300
  158. DEF_ENDLIST
  159. DEF_ENDCOMPONENT
  160.