home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1998 July & August / Pcwk78a98.iso / Internet / Javadraw / DATA.Z / Objects.510 < prev    next >
INI File  |  1997-01-18  |  13KB  |  385 lines

  1. [Allevents]
  2. \?onClick\if ((e.target instanceof T\Name\) & (e.id == Event.ACTION_EVENT)) { return \onClick\ (e); }\-\
  3. \?onKeyPress\if ((e.target instanceof T\Name\) & (e.id == Event.KEY_PRESS)) { return \onKeyPress\ (e); }\-\
  4. \?onKeyRelease\if ((e.target instanceof T\Name\) & (e.id == Event.KEY_RELEASE)) { return \onKeyRelease\ (e); }\-\
  5. \?onGotFocus\if ((e.target instanceof T\Name\) & (e.id == Event.GOT_FOCUS)) { return \onGotFocus\ (e); }\-\
  6. \?onKeyAction\if ((e.target instanceof T\Name\) & (e.id == Event.KEY_ACTION)) { return \onKeyAction\ (e); }\-\
  7. \?onKeyActionRelease\if ((e.target instanceof T\Name\) & (e.id == Event.KEY_ACTION_RELEASE)) { return \onKeyActionRelease\ (e); }\-\
  8. \?onListDeselect\if ((e.target instanceof T\Name\) & (e.id == Event.LIST_DESELECT)) { return \onListDeselect\ (e); }\-\
  9. \?onListSelect\if ((e.target instanceof T\Name\) & (e.id == Event.LIST_SELECT)) { return \onListSelect\ (e); }\-\
  10. \?onLoadFile\if ((e.target instanceof T\Name\) & (e.id == Event.LOAD_FILE)) { return \onLoadFile\ (e); }\-\
  11. \?onLostFocus\if ((e.target instanceof T\Name\) & (e.id == Event.LOST_FOCUS)) { return \onLostFocus\ (e); }\-\
  12. \?onMouseDown\if ((e.target instanceof T\Name\) & (e.id == Event.MOUSE_DOWN)) { return \onMouseDown\ (e); }\-\
  13. \?onMouseDrag\if ((e.target instanceof T\Name\) & (e.id == Event.MOUSE_DRAG)) { return \onMouseDrag\ (e); }\-\
  14. \?onMouseEnter\if ((e.target instanceof T\Name\) & (e.id == Event.MOUSE_ENTER)) { return \onMouseEnter\ (e); }\-\
  15. \?onMouseExit\if ((e.target instanceof T\Name\) & (e.id == Event.MOUSE_EXIT)) { return \onMouseExit\ (e); }\-\
  16. \?onMouseMove\if ((e.target instanceof T\Name\) & (e.id == Event.MOUSE_MOVE)) { return \onMouseMove\ (e); }\-\
  17. \?onMouseUp\if ((e.target instanceof T\Name\) & (e.id == Event.MOUSE_UP)) { return \onMouseUp\ (e); }\-\
  18. \?onSaveFile\if ((e.target instanceof T\Name\) & (e.id == Event.SAVE_FILE)) { return \onSaveFile\ (e); }\-\
  19. \?onScrollAbsolute\if ((e.target instanceof T\Name\) & (e.id == Event.SCROLL_ABSOLUTE)) { return \onScrollAbsolute\ (e); }\-\
  20. \?onScrollLineDown\if ((e.target instanceof T\Name\) & (e.id == Event.SCROLL_LINE_DOWN)) { return \onScrollLineDown\ (e); }\-\
  21. \?onScrollLineUp\if ((e.target instanceof T\Name\) & (e.id == Event.SCROLL_LINE_UP)) { return \onScrollLineUp\ (e); }\-\
  22. \?onScrollPageDown\if ((e.target instanceof T\Name\) & (e.id == Event.SCROLL_PAGE_DOWN)) { return \onScrollPageDown\ (e); }\-\
  23. \?onScrollPageUp\if ((e.target instanceof T\Name\) & (e.id == Event.SCROLL_PAGE_UP)) { return \onScrollPageUp\ (e); }\-\
  24. \?onWindowDeiconify\if ((e.target instanceof T\Name\) & (e.id == Event.WINDOW_DEICONIFY)) { return \onWindowDeiconify\ (e); }\-\
  25. \?onWindowDestroy\if ((e.target instanceof T\Name\) & (e.id == Event.WINDOW_DESTROY)) { return \onWindowDestroy\ (e); }\-\
  26. \?onWindowExpose\if ((e.target instanceof T\Name\) & (e.id == Event.WINDOW_EXPOSE)) { return \onWindowExpose\ (e); }\-\
  27. \?onWindowIconify\if ((e.target instanceof T\Name\) & (e.id == Event.WINDOW_ICONIFY)) { return \onWindowIconify\ (e); }\-\
  28. \?onWindowMoved\if ((e.target instanceof T\Name\) & (e.id == Event.WINDOW_MOVED)) { return \onWindowMoved\ (e); }\-\
  29.  
  30. [Properties]
  31. Alignment=Alignment
  32. Caption=String
  33. CancelButton=Boolean
  34. Checked=Boolean
  35. Childcount=Integer
  36. Color=Color
  37. Columns=Integer
  38. Filename=Filename
  39. Fontcolor=Color
  40. Fontname=Fontname
  41. Fontsize=Integer
  42. Fontstyle=Fontstyle
  43. Height=Integer
  44. Items=Items
  45. Left=Integer
  46. Min=Integer
  47. Max=Integer
  48. MultiSelect=Boolean
  49. Name=Name
  50. NoButton=Boolean
  51. OkButton=Boolean
  52. Owner=String
  53. Path=Path
  54. Rows=Integer
  55. Text=String
  56. Top=Integer
  57. Width=Integer
  58. YesButton=Boolean
  59.  
  60. [Events]
  61. onClick=
  62. onKeyPress=
  63. onKeyRelease=
  64. onGotFocus=
  65. onKeyAction=
  66. onKeyActionRelease=
  67. onListDeselect=
  68. onListSelect=
  69. onLoadFile=
  70. onLostFocus=
  71. onMouseDown=
  72. onMouseDrag=
  73. onMouseEnter=
  74. onMouseExit=
  75. onMouseMove=
  76. onMouseUp=
  77. onSaveFile=
  78. onScrollAbsolute=
  79. onScrollLineDown=
  80. onScrollLineUp=
  81. onScrollPageDown=
  82. onScrollPageUp=
  83. onWindowDeiconify=
  84. onWindowDestroy=
  85. onWindowExpose=
  86. onWindowIconify=
  87. onWindowMoved=
  88.  
  89. [Visualmain]
  90. Color=blue
  91. Height=300
  92. Name=
  93. onGotFocus=
  94. onKeyPress=
  95. onKeyRelease=
  96. onLostFocus=
  97. onMouseDown=
  98. onMouseMove=
  99. onMouseUp=
  100. Width=450
  101.  
  102. [Visualmain.Init]
  103. 1=setBackground (Color.\Color\);
  104. 2=resize (\Width\,\Height\);
  105.  
  106. [Visualmain.Events]
  107. 1=\?onGotFocus\if ((e.target == this) & (e.id == Event.GOT_FOCUS)) { return \onGotFocus\ (e); }\-\
  108. 2=\?onKeyPress\if ((e.target == this) & (e.id == Event.KEY_PRESS)) { return \onKeyPress\ (e); }\-\
  109. 3=\?onKeyRelease\if ((e.target == this) & (e.id == Event.KEY_RELEASE)) { return \onKeyRelease\ (e); }\-\
  110. 4=\?onLostFocus\if ((e.target == this) & (e.id == Event.LOST_FOCUS)) { return \onLostFocus\ (e); }\-\
  111. 5=\?onMouseDown\if ((e.target == this) & (e.id == Event.MOUSE_DOWN)) { return \onMouseDown\ (e); }\-\
  112. 6=\?onMouseMove\if ((e.target == this) & (e.id == Event.MOUSE_MOVE)) { return \onMouseMove\ (e); }\-\
  113. 7=\?onMouseUp\if ((e.target == this) & (e.id == Event.MOUSE_UP)) { return \onMouseUp\ (e); }\-\
  114.  
  115. [Label]
  116. Caption=ALabel
  117. Color=black
  118. Fontname=TimesRoman
  119. Fontcolor=black
  120. Fontstyle=Font.PLAIN
  121. Fontsize=8
  122. Left=10
  123. Name=
  124. Top=10
  125.  
  126. [Label.Class]
  127. 1=String \Name\ = "\Caption\";
  128.  
  129. [Label.Paint]
  130. 1=g.setFont (new Font ("\Fontname\",\Fontstyle\,\Fontsize\));
  131. 2=g.setColor (Color.\Fontcolor\);
  132. 3=g.drawString (\Name\,\Left\,\Top\);
  133.  
  134. [Button]
  135. Caption=AButton
  136. Left=10
  137. Name=
  138. onClick=
  139. onKeyPress=
  140. onKeyRelease=
  141. Owner=
  142. Top=10
  143. Height=25
  144. Width=75
  145.  
  146. [Button.Class]
  147. 1=Button \Name\ = new Button ("\Caption\");
  148.  
  149. [Button.Init]
  150. 1=add (\Name\);
  151.  
  152. [Button.Paint]
  153. 1=\Name\.reshape (\Left\,\Top\,\Width\,\Height\);
  154.  
  155. [Button.Events]
  156. 1=\?onClick\if ((e.target instanceof Button) & (e.equals ("\Caption\")) & (e.id == Event.ACTION_EVENT)) {return \onClick\ (e); }\-\
  157. 2=\?onKeyPress\if ((e.target instanceof Button) & (e.equals ("\Caption\")) & (e.id == Event.KEY_PRESS)) { return \onKeyPress\ (e); }\-\
  158. 3=\?onKeyRelease\if ((e.target instanceof Button) & (e.equals ("\Caption\")) & (e.id == Event.KEY_RELEASE)) { return \onKeyRelease\ (e); }\-\
  159.  
  160. [CheckboxGroup]
  161. Childcount=0
  162. Height=50
  163. Left=10
  164. Name=
  165. Top=10
  166. Width=110
  167.  
  168. [CheckboxGroup.Class]
  169. 1=CheckboxGroup \Name\ = new CheckboxGroup ();
  170.  
  171. [Checkbox]
  172. Caption=ACheckbox
  173. Checked=false
  174. Height=12
  175. Left=10
  176. Name=
  177. onClick=
  178. onKeyPress=
  179. onKeyRelease=
  180. Owner=
  181. Top=10
  182. Width=100
  183.  
  184. [Checkbox.Class]
  185. 1=\?!Owner=VISUALWINNAME\>T\Owner\ \Owner\\-\
  186. 2=Checkbox \Name\ = new Checkbox ("\Caption\"\?!Owner=VISUALWINNAME\,\Owner\,\Checked\\-\);
  187.  
  188. [Checkbox.Init]
  189. 1=add (\Name\);
  190. 2=\?Owner=VISUALWINNAME\\Name\.setState (\Checked\);\-\
  191.  
  192. [Checkbox.Paint]
  193. 1=\Name\.reshape (\Left\,\Top\,\Width\,\Height\);
  194.  
  195. [Checkbox.Events]
  196. 1=\?onClick\if ((e.target instanceof Checkbox) & (e.equals ("\Caption\")) & (e.id == Event.ACTION_EVENT)) { return \onClick\ (e); }\-\
  197. 2=\?onKeyPress\if ((e.target instanceof Checkbox) & (e.equals ("\Caption\")) & (e.id == Event.KEY_PRESS)) { return \onKeyPress\ (e); }\-\
  198. 3=\?onKeyRelease\if ((e.target instanceof Checkbox) & (e.equals ("\Caption\")) & (e.id == Event.KEY_RELEASE)) { return \onKeyRelease\ (e); }\-\
  199.  
  200. [TextField]
  201. Columns=11
  202. Height=22
  203. Left=10
  204. Name=
  205. onKeyPress=
  206. onKeyRelease=
  207. Owner=
  208. Text=ATextField
  209. Top=10
  210. Width=110
  211.  
  212. [TextField.Class]
  213. 1=TextField \Name\ = new TextField ("\Text\", \Columns\);
  214.  
  215. [TextField.Init]
  216. 1=add (\Name\);
  217.  
  218. [TextField.Paint]
  219. 1=\Name\.reshape (\Left\,\Top\,\Width\,\Height\);
  220.  
  221. [TextField.Events]
  222. 1=\?onKeyPress\if ((e.target instanceof TextField) & (e.id == Event.KEY_PRESS)) { return \onKeyPress\ (e); }\-\
  223. 2=\?onKeyRelease\if ((e.target instanceof TextField) & (e.id == Event.KEY_RELEASE)) { return \onKeyRelease\ (e); }\-\
  224.  
  225. [TextArea]
  226. Columns=15
  227. Height=200
  228. Left=150
  229. Name=
  230. Rows=20
  231. Text=ATextArea
  232. Top=10
  233. Width=150
  234.  
  235. [TextArea.Class]
  236. 1=TextArea \Name\ = new TextArea (\?Text\"\Text\",\-\\Rows\,\Columns\);
  237.  
  238. [TextArea.Init]
  239. 1=add (\Name\);
  240.  
  241. [TextArea.Paint]
  242. 1=\Name\.reshape (\Left\,\Top\,\Width\,\Height\);
  243.  
  244. [FileDialog]
  245. Caption=Make your choices...
  246. FileDlgMode=LOAD
  247. Left=10
  248. Name=
  249. Top=10
  250.  
  251. [FileDialog.Class]
  252. 1=FileDialog \Name\ = new FileDialog (new Frame(),"\Caption\");
  253.  
  254. [FileDialog.Start]
  255. 1=//\Name\.show();
  256.  
  257. [MessageFrame]
  258. CancelButton=false
  259. Caption=A Message occured
  260. Left=10
  261. Name=
  262. NoButton=false
  263. OkButton=true
  264. Text=Information
  265. Top=10
  266. YesButton=false
  267.  
  268. [MessageFrame.Class]
  269. 1=T\Name\ \Name\ = new T\Name\ (new Frame(),\OkButton\,\YesButton\,\NoButton\,\CancelButton\);
  270.  
  271. [MessageFrame.Start]
  272. 1=//\Name\.show("\Text\","\Caption\");
  273. 2=//if (\Name\.getResult==?) // ?: 0=OK 1=Yes 2=No 3=Cancel 
  274.  
  275. [MessageFrame.Typedef]
  276. 1=class T\Name\ extends Dialog { boolean wrhd; String TheText; int Width; Button Okbu=new Button("OK"); Button Yesbu=new Button("Yes"); Button Nobu=new Button("No"); Button Canbu=new Button("Cancel"); 
  277. 2=int AResult; T\Name\ (Frame AFrame,boolean okbu,boolean yesbu,boolean nobu,boolean canbu) { super(AFrame,true); setResizable (false); wrhd=false; Width=100; if(okbu) { Okbu.show(); add (Okbu); 
  278. 3=Okbu.reshape (Width-50,90,75,25); Width+=100; } if(yesbu) { Yesbu.show(); add (Yesbu); Yesbu.reshape (Width-50,90,75,25); Width+=100; } if(nobu) { Nobu.show(); add (Nobu); Nobu.reshape (Width-50,90,75,25); 
  279. 4=Width+=100; } if(canbu) { Canbu.show(); add (Canbu); Canbu.reshape (Width-50,90,75,25); Width+=100; } super.reshape (250,250,Width,150); } public int getResult () { return AResult; } public void paint (Graphics g) { if (!wrhd) 
  280. 5={ reshape (250,250,Width-25,150); wrhd=true; } g.setFont (new Font ("TimesRoman",Font.PLAIN,15)); g.drawString (TheText,((Width - (TheText.length()*10))/2),36); super.paint (g); } public int show (String ACaption,String AText) 
  281. 6={ TheText=AText; wrhd=false; setTitle (ACaption); super.show (); return AResult; } public boolean action (Event e,Object o) { switch (e.id) { case Event.ACTION_EVENT: { if ("OK".equals(o)) AResult=0; if ("Yes".equals (o)) 
  282. 7=AResult=1; if ("No".equals (o)) AResult=2; if ("Cancel".equals (o)) AResult=3; super.dispose(); return true; } default: return false; } } }
  283.  
  284. [FindDialog]
  285. Left=10
  286. Name=
  287. Text=
  288. Top=10
  289.  
  290. [FindDialog.Class]
  291. 1=T\Name\ \Name\ = new T\Name\ (new Frame(),"\Text\");
  292.  
  293. [FindDialog.Start]
  294. 1=//\Name\.show();
  295. 2=//if (\Name\.getSearchtext ().equals ("")) { };
  296.  
  297. [FindDialog.Typedef]
  298. 1=class T\Name\ extends Dialog { Checkbox Cbox1=new Checkbox("Hole word"); Checkbox Cbox2=new Checkbox("Case sensitive"); CheckboxGroup Cbgr1=new CheckboxGroup();
  299. 2=Checkbox Cbox3=new Checkbox("Down",Cbgr1,true); Checkbox Cbox4=new Checkbox("Up",Cbgr1,false); CheckboxGroup Cbgr2=new CheckboxGroup();
  300. 3=Checkbox Cbox5=new Checkbox("From cursor",Cbgr2,false); Checkbox Cbox6=new Checkbox("Entire text",Cbgr2,true); Button Button1=new Button("Search");
  301. 4=TextField TxtFld1=new TextField(); boolean wsrhd;
  302. 5=T\Name\ (Frame AFrame,String ASearch) { super(AFrame,"Text search...",true); reshape (50,50,420,150); wsrhd=false; add(Cbox1); add(Cbox2);
  303. 6=add(Cbox3); add(Cbox4); add(Cbox5); add(Cbox6); add(Button1); add(TxtFld1); TxtFld1.setText(ASearch); }
  304. 7=public boolean action(Event e,Object o) { switch(e.id) { case Event.ACTION_EVENT: { if ("Search".equals (o)) { dispose(); return true; } } default: return false; } }
  305. 8=public String getSearchtext () { return TxtFld1.getText(); } public boolean getHoleword() { return Cbox1.getState(); } public boolean getCasesensitive() { return Cbox2.getState(); }
  306. 9=public boolean getDown() { return Cbox3.getState(); } public boolean getEntiretext () { return Cbox6.getState(); } 
  307. 10=public void paint(Graphics g) { g.setFont(new Font("TimesRoman",Font.PLAIN,10)); g.setColor(Color.black); g.drawString("Search for:",20,25); g.drawString("Direction",170,45); g.drawString("Method",170,75);
  308. 11=if (!wsrhd) { reshape(50,50,420,150); Cbox1.reshape(20,70,100,12); Cbox1.setState(false); Cbox2.reshape(20,100,120,12); Cbox2.setState(false); Cbox3.reshape(195,70,90,12); Cbox4.reshape(310,70,100,12); 
  309. 12=Cbox5.reshape(195,100,105,12); Cbox6.reshape(310,100,100,12); Button1.reshape(334,34,76,25); TxtFld1.reshape(70,35,256,23); wsrhd=true; } super.paint (g); } } 
  310.  
  311. [Rectangle]
  312. Color=black
  313. Height=20
  314. Left=10
  315. Name=
  316. Top=10
  317. Width=20
  318.  
  319. [Rectangle.Paint]
  320. 1=g.setColor (Color.\Color\);
  321. 2=g.drawRect (\Left\,\Top\,\Width\,\Height\);
  322.  
  323. [Image]
  324. Filename=
  325. Left=10
  326. Name=
  327. Path=
  328. Top=10
  329.  
  330. [Image.Class]
  331. 1=Image \Name\;
  332. 2=\?Path\URL \Name\URL = null;\-\
  333.  
  334. [Image.Init]
  335. 1=\?Path\try { \Name\URL = new URL ("\Path\"); } catch (MalformedURLException \Name\URL) { showStatus("Error"); }\-\
  336. 2=\Name\ = getImage (\?!Path\getCodeBase (), "\Filename\"\-\\?Path\\Name\URL\-\);
  337.  
  338. [Image.Paint]
  339. 1=g.drawImage (\Name\, \Left\, \Top\, this);
  340.  
  341. [List]
  342. Height=200
  343. Items=
  344. Left=10
  345. Name=
  346. Multiselect=false
  347. Selected=0
  348. Top=10
  349. Width=100
  350.  
  351. [List.Class]
  352. 1=List \Name\ = new List ();
  353.  
  354. [List.Init]
  355. 1=add (\Name\);
  356. 2=\Name\.setMultipleSelections (\Multiselect\);
  357. 3=\░░0\
  358. 4=\?Items░0\\Name\.addItem ("\Items░0\");\-\
  359. 5=\░+0\
  360. 6=\?Items░0\\░>0\\-\
  361.  
  362. [List.Paint]
  363. 1=\Name\.reshape (\Left\,\Top\,\Width\,\Height\);
  364.  
  365. [MenuBar]
  366. Items=
  367. Left=10
  368. Name=
  369. Top=10
  370.  
  371. [MenuBar.Class]
  372. 1=MenuBar \Name\ = new MenuBar ();
  373. 2=\░░0\
  374. 3=\?Items░0\Menu \Items░0\ = new Menu ("\Items░0\");\-\
  375. 4=\░+0\
  376. 5=\?Items░0\\░>0\\-\
  377.  
  378. [MenuBar.Init]
  379. 1=\░░0\
  380. 2=\?Items░0\\Name\.add (\Items░0\);\-\
  381. 3=\░+0\
  382. 4=\?Items░0\\░>0\\-\
  383. 5=setMenuBar (\Name\);
  384.  
  385.