home *** CD-ROM | disk | FTP | other *** search
/ Internet Gallery / INTERGAL.bin / intergal / prgs / mojoinst / mojoinst.exe / MOJODISK / DATA.2 / user / SampleComponent.def < prev   
Text File  |  1996-06-03  |  2KB  |  96 lines

  1. DEF_COMPONENTNAME
  2. SampleComponent
  3. DEF_SUPERCLASS
  4. Panel
  5. DEF_SUPERCOMPONENT
  6. Screen1
  7. DEF_PACKAGE
  8. user
  9. default
  10. DEF_ENDLIST
  11. DEF_SUBCOMPONENTLIST
  12. DEF_ENDLIST
  13. DEF_SUBCOMPONENTCLASSLIST
  14. DEF_ENDLIST
  15. DEF_CATEGORY
  16. User-Defined
  17. DEF_BITMAP
  18.  
  19. DEF_THUMBNAIL
  20. but1.bmp
  21. DEF_VISUAL
  22. DEF_TOOL
  23. DEF_PANEL
  24. DEF_IMPORTS
  25. DEF_ENDLIST
  26. DEF_REQUIRES
  27. DEF_ENDLIST
  28. DEF_DECLARATION
  29.    public class Panel    extends Container
  30. // A Panel Container class. This produces a generic container.
  31. DEF_ENDLIST
  32. DEF_PROPERTY
  33. Top
  34. int
  35. move(bounds().x, AVALUE);
  36. AVALUE = bounds().y;
  37. 40
  38. DEF_ENDLIST
  39. DEF_PROPERTY
  40. Left
  41. int
  42. move(AVALUE, bounds().y);
  43. AVALUE = bounds().x;
  44. 50
  45. DEF_ENDLIST
  46. DEF_PROPERTY
  47. Height
  48. int
  49. resize(bounds().width, AVALUE);
  50. AVALUE = bounds().height;
  51. 100
  52. DEF_ENDLIST
  53. DEF_PROPERTY
  54. Width
  55. int
  56. resize(AVALUE, bounds().height);
  57. AVALUE = bounds().width;
  58. 100
  59. DEF_ENDLIST
  60. DEF_PROPERTY
  61. ForegroundColor
  62. Color
  63. setForeground(AVALUE);
  64. AVALUE = getForeground();
  65. Color.black
  66. DEF_ENDLIST
  67. DEF_PROPERTY
  68. BackgroundColor
  69. Color
  70. setBackground(AVALUE);
  71. AVALUE = getBackground();
  72. Color.lightGray
  73. DEF_ENDLIST
  74. DEF_PROPERTY
  75. FontName
  76. String
  77. setFont(new Font(AVALUE, getFont().getStyle(), getFont().getSize()));
  78. AVALUE = getFont().getName();
  79. Courier
  80. DEF_ENDLIST
  81. DEF_PROPERTY
  82. FontStyle
  83. int
  84. setFont(new Font(getFont().getName(), AVALUE, getFont().getSize()));
  85. AVALUE = getFont().getStyle();
  86. Font.PLAIN
  87. DEF_ENDLIST
  88. DEF_PROPERTY
  89. FontSize
  90. int
  91. setFont(new Font(getFont().getName(), getFont().getStyle(), AVALUE));
  92. AVALUE = getFont().getSize();
  93. 10
  94. DEF_ENDLIST
  95. DEF_ENDCOMPONENT
  96.