home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1998 July & August / Pcwk78a98.iso / Internet / Javadraw / DATA.Z / Objects.610 < prev    next >
INI File  |  1997-04-07  |  22KB  |  739 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. [Events]
  31. FocusGained=FocusEvent
  32. FocusLost=FocusEvent
  33. ComponentHidden=ComponentEvent
  34. ComponentMoved=ComponentEvent
  35. ComponentResized=ComponentEvent
  36. ComponentShown=ComponentEvent
  37. CharUndefined=KeyEvent
  38. KeyPressed=KeyEvent
  39. KeyReleased=KeyEvent
  40. KeyTyped=KeyEvent
  41. MouseClicked=MouseEvent
  42. MouseDragged=MouseEvent
  43. MouseEntered=MouseEvent
  44. MouseExited=MouseEvent
  45. MouseMoved=MouseEvent
  46. MousePressed=MouseEvent
  47. MouseReleased=MouseEvent
  48.  
  49. [EventNameChanges]
  50. onGotFocus=focusGained
  51. onLostFocus=focusLost
  52. onKeyPress=keyPressed
  53. onKeyRelease=keyReleased
  54. onClick=mouseClicked
  55. onMouseDrag=mouseDragged
  56. onMouseEnter=mouseEntered
  57. onMouseExit=mouseExited
  58. onMouseMove=mouseMoved
  59. onMouseDown=mousePressed
  60. onMouseUp=mouseReleased
  61.  
  62. [Visualmain]
  63. Color=java.awt.Color(0,255,0)
  64. Height=300
  65. Name=
  66. Width=450
  67.  
  68. [Visualmain.Properties]
  69. Color=java.awt.Color
  70. Height=int
  71. Name=Name
  72. Width=int
  73.  
  74. [Visualmain.Eventlist]
  75. FocusGained=
  76. FocusLost=
  77. componentHidden=
  78. componentMoved=
  79. componentResized=
  80. componentShown=
  81. charUndefined=
  82. keyPressed=
  83. keyReleased=
  84. keyTyped=
  85. mouseClicked=
  86. mouseDragged=
  87. mouseEntered=
  88. mouseExited=
  89. mouseMoved=
  90. mousePressed=
  91. mouseReleased=
  92.  
  93. [Visualmain.Init]
  94. 1=setBackground (new \Color\);
  95. 2=setSize (\Width\,\Height\);
  96.  
  97. [Visualmain.Events]
  98. 1=\?focusGained\if ((e.target == this) && (e.id == Event.GOT_FOCUS)) { return \focusGained\ (e); }\-\
  99. 2=\?keyPressed\if ((e.target == this) && (e.id == Event.KEY_PRESS)) { return \keyPressed\ (e); }\-\
  100. 3=\?keyReleased\if ((e.target == this) && (e.id == Event.KEY_RELEASE)) { return \keyReleased\ (e); }\-\
  101. 4=\?focusLost\if ((e.target == this) && (e.id == Event.LOST_FOCUS)) { return \focusLost\ (e); }\-\
  102. 5=\?mousePressed\if ((e.target == this) && (e.id == Event.MOUSE_DOWN)) { return \mousePressed\ (e); }\-\
  103. 6=\?mouseMoved\if ((e.target == this) && (e.id == Event.MOUSE_MOVE)) { return \mouseMoved\ (e); }\-\
  104. 7=\?mouseReleased\if ((e.target == this) && (e.id == Event.MOUSE_UP)) { return \mouseReleased\ (e); }\-\
  105.  
  106. [Visualmain.ComponentEvents]
  107. 1=\?componentHidden\if ((e.getSource()==this)&&(e.getID()==ComponentEvent.COMPONENT_HIDDEN)) { \componentHidden\ (e); }\-\
  108. 2=\?componentMoved\if ((e.getSource()==this)&&(e.getID()==ComponentEvent.COMPONENT_MOVED)) { \componentMoved\ (e); }\-\
  109. 3=\?componentResized\if ((e.getSource()==this)&&(e.getID()==ComponentEvent.COMPONENT_RESIZED)) { \componentResized\ (e); }\-\
  110. 4=\?componentShown\if ((e.getSource()==this)&&(e.getID()==ComponentEvent.COMPONENT_SHOWN)) { \componentShown\ (e); }\-\
  111.  
  112. [Visualmain.FocusEvents]
  113. 1=\?focusGained\if ((e.getSource()==this)&&(e.getID()==FocusEvent.FOCUS_GAINED)) { \focusGained\ (e); }\-\
  114. 2=\?focusLost\if ((e.getSource()==this)&&(e.getID()==FocusEvent.FOCUS_LOST)) { \focusLost\ (e); }\-\
  115.  
  116. [Visualmain.KeyEvents]
  117. 1=\?charUndefined\if ((e.getSource()==this)&&(e.getID()==KeyEvent.CHAR_UNDEFINED)) { \charUndefined\ (e); }\-\
  118. 2=\?keyPressed\if ((e.getSource()==this)&&(e.getID()==KeyEvent.KEY_PRESSED)) { \keyPressed\ (e); }\-\
  119. 3=\?keyReleased\if ((e.getSource()==this)&&(e.getID()==KeyEvent.KEY_RELEASED)) { \keyReleased\ (e); }\-\
  120. 4=\?keyTyped\if ((e.getSource()==this)&&(e.getID()==KeyEvent.KEY_TYPED)) { \keyTyped\ (e); }\-\
  121.  
  122. [Visualmain.MouseEvents]
  123. 1=\?mouseClicked\if ((e.getSource()==this)&&(e.getID()==MouseEvent.MOUSE_CLICKED)) { \mouseClicked\ (e); }\-\
  124. 2=\?mouseEntered\if ((e.getSource()==this)&&(e.getID()==MouseEvent.MOUSE_ENTERED)) { \mouseEntered\ (e); }\-\
  125. 3=\?mouseExited\if ((e.getSource()==this)&&(e.getID()==MouseEvent.MOUSE_EXITED)) { \mouseExited\ (e); }\-\
  126. 4=\?mousePressed\if ((e.getSource()==this)&&(e.getID()==MouseEvent.MOUSE_PRESSED)) { \mousePressed\ (e); }\-\
  127. 5=\?mouseReleased\if ((e.getSource()==this)&&(e.getID()==MouseEvent.MOUSE_RELEASED)) { \mouseReleased\ (e); }\-\
  128.  
  129. [Visualmain.MouseMotionEvents]
  130. 1=\?mouseDragged\if ((e.getSource()==this)&&(e.getID()==MouseEvent.MOUSE_DRAGGED)) { \mouseDragged\ (e); }\-\
  131. 2=\?mouseMoved\if ((e.getSource()==this)&&(e.getID()==MouseEvent.MOUSE_MOVED)) { \mouseMoved\ (e); }\-\
  132.  
  133. [Label]
  134. Caption=ALabel
  135. Color=java.awt.Color(255,255,255)
  136. Font=java.awt.Font("Dialog",Font.PLAIN,10)
  137. Fontcolor=java.awt.Color(0,0,0)
  138. Height=25
  139. Left=10
  140. Name=
  141. Top=10
  142. Width=75
  143.  
  144. [Label.Listeners]
  145. Component=
  146. Focus=
  147. Key=
  148. Mouse=
  149. MouseMotion=
  150.  
  151. [Label.Eventlist]
  152. focusGained=Focus
  153. focusLost=Focus
  154. componentHidden=Component
  155. componentMoved=Component
  156. componentResized=Component
  157. componentShown=Component
  158. charUndefined=Key
  159. keyPressed=Key
  160. keyReleased=Key
  161. keyTyped=Key
  162. mouseClicked=Mouse
  163. mouseDragged=MouseMotion
  164. mouseEntered=Mouse
  165. mouseExited=Mouse
  166. mouseMoved=MouseMotion
  167. mousePressed=Mouse
  168. mouseReleased=Mouse
  169.  
  170. [Label.Properties]
  171. Caption=java.lang.String
  172. Color=java.awt.Color
  173. Font=java.awt.Font
  174. Fontcolor=java.awt.Color
  175. Height=int
  176. Left=int
  177. Name=Name
  178. Top=int
  179. Width=int
  180.  
  181. [Label.Class]
  182. 1=Label \Name\ = new Label ("\Caption\");
  183.  
  184. [Label.Init]
  185. 1=add (\Name\);
  186. 2=\Name\.setFont (new \Font\);
  187. 3=\Name\.setForeground (new \Fontcolor\);
  188. 4=\Name\.setBackground (new \Color\);
  189.  
  190. [Label.Paint]
  191. 1=\Name\.setBounds (\Left\,\Top\,\Width\,\Height\);
  192.  
  193. [Button]
  194. Caption=AButton
  195. Left=10
  196. Name=
  197. Owner=
  198. Top=10
  199. Height=25
  200. Width=75
  201.  
  202. [Button.Properties]
  203. Caption=java.lang.String
  204. Left=int
  205. Name=Name
  206. Owner=java.lang.String
  207. Top=int
  208. Height=int
  209. Width=int
  210.  
  211. [Button.Class]
  212. 1=Button \Name\ = new Button ("\Caption\");
  213.  
  214. [Button.Init]
  215. 1=add (\Name\);
  216.  
  217. [Button.Paint]
  218. 1=\Name\.setBounds (\Left\,\Top\,\Width\,\Height\);
  219.  
  220. [Button.Listeners]
  221. Component=
  222. Focus=
  223. Key=
  224. Mouse=
  225. MouseMotion=
  226.  
  227. [Button.Eventlist]
  228. focusGained=Focus
  229. focusLost=Focus
  230. componentHidden=Component
  231. componentMoved=Component
  232. componentResized=Component
  233. componentShown=Component
  234. charUndefined=Key
  235. keyPressed=Key
  236. keyReleased=Key
  237. keyTyped=Key
  238. mouseClicked=Mouse
  239. mouseDragged=MouseMotion
  240. mouseEntered=Mouse
  241. mouseExited=Mouse
  242. mouseMoved=MouseMotion
  243. mousePressed=Mouse
  244. mouseReleased=Mouse
  245.  
  246. [Button.Events]
  247. 1=\?onClick\if ((e.target instanceof Button) && (e.equals ("\Caption\")) & (e.id == Event.ACTION_EVENT)) {return \onClick\ (e); }\-\
  248. 2=\?onKeyPress\if ((e.target instanceof Button) && (e.equals ("\Caption\")) & (e.id == Event.KEY_PRESS)) { return \onKeyPress\ (e); }\-\
  249. 3=\?onKeyRelease\if ((e.target instanceof Button) && (e.equals ("\Caption\")) & (e.id == Event.KEY_RELEASE)) { return \onKeyRelease\ (e); }\-\
  250.  
  251. [CheckboxGroup]
  252. Childcount=0
  253. Height=50
  254. Left=10
  255. Name=
  256. Top=10
  257. Width=110
  258.  
  259. [CheckboxGroup.Properties]
  260. Childcount=int
  261. Height=int
  262. Left=int
  263. Name=Name
  264. Top=int
  265. Width=int
  266.  
  267. [CheckboxGroup.Class]
  268. 1=CheckboxGroup \Name\ = new CheckboxGroup ();
  269.  
  270. [Checkbox]
  271. Caption=ACheckbox
  272. Checked=false
  273. Height=12
  274. Left=10
  275. Name=
  276. Owner=
  277. Top=10
  278. Width=100
  279.  
  280. [Checkbox.Properties]
  281. Caption=java.lang.String
  282. Checked=boolean
  283. Height=int
  284. Left=int
  285. Name=Name
  286. Owner=java.lang.String
  287. Top=int
  288. Width=int
  289.  
  290. [Checkbox.Listeners]
  291. Component=
  292. Focus=
  293. Key=
  294. Mouse=
  295. MouseMotion=
  296.  
  297. [Checkbox.Eventlist]
  298. focusGained=Focus
  299. focusLost=Focus
  300. componentHidden=Component
  301. componentMoved=Component
  302. componentResized=Component
  303. componentShown=Component
  304. charUndefined=Key
  305. keyPressed=Key
  306. keyReleased=Key
  307. keyTyped=Key
  308. mouseClicked=Mouse
  309. mouseDragged=MouseMotion
  310. mouseEntered=Mouse
  311. mouseExited=Mouse
  312. mouseMoved=MouseMotion
  313. mousePressed=Mouse
  314. mouseReleased=Mouse
  315.  
  316. [Checkbox.Class]
  317. 1=Checkbox \Name\ = new Checkbox ("\Caption\");
  318.  
  319. [Checkbox.class.tmp]
  320. 1=\?!Owner=VISUALWINNAME\>T\Owner\ \Owner\\-\
  321. 2=Checkbox \Name\ = new Checkbox ("\Caption\"\?!Owner=VISUALWINNAME\,\Owner\,\Checked\\-\);
  322.  
  323. [Checkbox.Init]
  324. 1=add (\Name\);
  325.  
  326. [Checkbox.Init.tmp]
  327. 1=add (\Name\);
  328. 2=\?Owner=VISUALWINNAME\\Name\.setState (\Checked\);\-\
  329.  
  330. [Checkbox.Paint]
  331. 1=\Name\.setBounds (\Left\,\Top\,\Width\,\Height\);
  332.  
  333. [Checkbox.Events]
  334. 1=\?onClick\if ((e.target instanceof Checkbox) && (e.equals ("\Caption\")) & (e.id == Event.ACTION_EVENT)) { return \onClick\ (e); }\-\
  335. 2=\?onKeyPress\if ((e.target instanceof Checkbox) && (e.equals ("\Caption\")) & (e.id == Event.KEY_PRESS)) { return \onKeyPress\ (e); }\-\
  336. 3=\?onKeyRelease\if ((e.target instanceof Checkbox) && (e.equals ("\Caption\")) & (e.id == Event.KEY_RELEASE)) { return \onKeyRelease\ (e); }\-\
  337.  
  338. [TextField]
  339. Columns=11
  340. Height=22
  341. Left=10
  342. Name=
  343. Owner=
  344. Text=ATextField
  345. Top=10
  346. Width=110
  347.  
  348. [TextField.Properties]
  349. Columns=int
  350. Height=int
  351. Left=int
  352. Name=Name
  353. Owner=java.lang.String
  354. Text=java.lang.String
  355. Top=int
  356. Width=int
  357.  
  358. [TextField.Listeners]
  359. Component=
  360. Focus=
  361. Key=
  362. Mouse=
  363. MouseMotion=
  364.  
  365. [TextField.Eventlist]
  366. focusGained=Focus
  367. focusLost=Focus
  368. componentHidden=Component
  369. componentMoved=Component
  370. componentResized=Component
  371. componentShown=Component
  372. charUndefined=Key
  373. keyPressed=Key
  374. keyReleased=Key
  375. keyTyped=Key
  376. mouseClicked=Mouse
  377. mouseDragged=MouseMotion
  378. mouseEntered=Mouse
  379. mouseExited=Mouse
  380. mouseMoved=MouseMotion
  381. mousePressed=Mouse
  382. mouseReleased=Mouse
  383.  
  384. [TextField.Class]
  385. 1=TextField \Name\ = new TextField ("\Text\", \Columns\);
  386.  
  387. [TextField.Init]
  388. 1=add (\Name\);
  389.  
  390. [TextField.Paint]
  391. 1=\Name\.setBounds (\Left\,\Top\,\Width\,\Height\);
  392.  
  393. [TextField.Events]
  394. 1=\?onKeyPress\if ((e.target instanceof TextField) && (e.id == Event.KEY_PRESS)) { return \onKeyPress\ (e); }\-\
  395. 2=\?onKeyRelease\if ((e.target instanceof TextField) && (e.id == Event.KEY_RELEASE)) { return \onKeyRelease\ (e); }\-\
  396.  
  397. [TextArea]
  398. Columns=15
  399. Height=200
  400. Left=150
  401. Name=
  402. Rows=20
  403. Text=ATextArea
  404. Top=10
  405. Width=150
  406.  
  407. [TextArea.Properties]
  408. Columns=int
  409. Height=int
  410. Left=int
  411. Name=Name
  412. Rows=int
  413. Text=java.lang.String
  414. Top=int
  415. Width=int
  416.  
  417. [TextArea.Listeners]
  418. Component=
  419. Focus=
  420. Key=
  421. Mouse=
  422. MouseMotion=
  423.  
  424. [TextArea.Eventlist]
  425. focusGained=Focus
  426. focusLost=Focus
  427. componentHidden=Component
  428. componentMoved=Component
  429. componentResized=Component
  430. componentShown=Component
  431. charUndefined=Key
  432. keyPressed=Key
  433. keyReleased=Key
  434. keyTyped=Key
  435. mouseClicked=Mouse
  436. mouseDragged=MouseMotion
  437. mouseEntered=Mouse
  438. mouseExited=Mouse
  439. mouseMoved=MouseMotion
  440. mousePressed=Mouse
  441. mouseReleased=Mouse
  442.  
  443. [TextArea.Class]
  444. 1=TextArea \Name\ = new TextArea (\?Text\"\Text\",\-\\Rows\,\Columns\);
  445.  
  446. [TextArea.Init]
  447. 1=add (\Name\);
  448.  
  449. [TextArea.Paint]
  450. 1=\Name\.setBounds (\Left\,\Top\,\Width\,\Height\);
  451.  
  452. [FileDialog]
  453. Caption=Make your choices...
  454. FileDlgMode=LOAD
  455. Left=10
  456. Name=
  457. Top=10
  458.  
  459. [FileDialog.Properties]
  460. Caption=java.lang.String
  461. Left=int
  462. Name=Name
  463. Top=int
  464.  
  465. [FileDialog.Class]
  466. 1=FileDialog \Name\ = new FileDialog (new Frame(),"\Caption\");
  467.  
  468. [FileDialog.Start]
  469. 1=//\Name\.show();
  470.  
  471. [MessageFrame]
  472. CancelButton=false
  473. Caption=A Message occured
  474. Left=10
  475. Name=
  476. NoButton=false
  477. OkButton=true
  478. Text=Information
  479. Top=10
  480. YesButton=false
  481.  
  482. [MessageFrame.Properties]
  483. CancelButton=boolean
  484. Caption=java.lang.String
  485. Left=int
  486. Name=Name
  487. NoButton=boolean
  488. OkButton=boolean
  489. Text=java.lang.String
  490. Top=int
  491. YesButton=boolean
  492.  
  493. [MessageFrame.Class]
  494. 1=T\Name\ \Name\ = new T\Name\ (new Frame(),\OkButton\,\YesButton\,\NoButton\,\CancelButton\);
  495.  
  496. [MessageFrame.Start]
  497. 1=//\Name\.show("\Text\","\Caption\");
  498. 2=//if (\Name\.getResult==?) // ?: 0=OK 1=Yes 2=No 3=Cancel 
  499.  
  500. [MessageFrame.Typedef]
  501. 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"); 
  502. 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); 
  503. 3=Okbu.setBounds (Width-50,90,75,25); Width+=100; } if(yesbu) { Yesbu.show(); add (Yesbu); Yesbu.setBounds (Width-50,90,75,25); Width+=100; } if(nobu) { Nobu.show(); add (Nobu); Nobu.setBounds (Width-50,90,75,25); 
  504. 4=Width+=100; } if(canbu) { Canbu.show(); add (Canbu); Canbu.setBounds (Width-50,90,75,25); Width+=100; } super.setBounds (250,250,Width,150); } public int getResult () { return AResult; } public void paint (Graphics g) { if (!wrhd) 
  505. 5={ setBounds (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) 
  506. 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)) 
  507. 7=AResult=1; if ("No".equals (o)) AResult=2; if ("Cancel".equals (o)) AResult=3; super.dispose(); return true; } default: return false; } } }
  508.  
  509. [FindDialog]
  510. Left=10
  511. Name=
  512. Text=
  513. Top=10
  514.  
  515. [FindDialog.Properties]
  516. Left=int
  517. Name=Name
  518. Text=java.lang.String
  519. Top=int
  520.  
  521. [FindDialog.Class]
  522. 1=T\Name\ \Name\ = new T\Name\ (new Frame(),"\Text\");
  523.  
  524. [FindDialog.Start]
  525. 1=//\Name\.show();
  526. 2=//if (\Name\.getSearchtext ().equals ("")) { };
  527.  
  528. [FindDialog.Typedef]
  529. 1=class T\Name\ extends Dialog { Checkbox Cbox1=new Checkbox("Hole word"); Checkbox Cbox2=new Checkbox("Case sensitive"); CheckboxGroup Cbgr1=new CheckboxGroup();
  530. 2=Checkbox Cbox3=new Checkbox("Down",Cbgr1,true); Checkbox Cbox4=new Checkbox("Up",Cbgr1,false); CheckboxGroup Cbgr2=new CheckboxGroup();
  531. 3=Checkbox Cbox5=new Checkbox("From cursor",Cbgr2,false); Checkbox Cbox6=new Checkbox("Entire text",Cbgr2,true); Button Button1=new Button("Search");
  532. 4=TextField TxtFld1=new TextField(); boolean wsrhd;
  533. 5=T\Name\ (Frame AFrame,String ASearch) { super(AFrame,"Text search...",true); setBounds (50,50,420,150); wsrhd=false; add(Cbox1); add(Cbox2);
  534. 6=add(Cbox3); add(Cbox4); add(Cbox5); add(Cbox6); add(Button1); add(TxtFld1); TxtFld1.setText(ASearch); }
  535. 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; } }
  536. 8=public String getSearchtext () { return TxtFld1.getText(); } public boolean getHoleword() { return Cbox1.getState(); } public boolean getCasesensitive() { return Cbox2.getState(); }
  537. 9=public boolean getDown() { return Cbox3.getState(); } public boolean getEntiretext () { return Cbox6.getState(); } 
  538. 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);
  539. 11=if (!wsrhd) { setBounds(50,50,420,150); Cbox1.setBounds(20,70,100,12); Cbox1.setState(false); Cbox2.setBounds(20,100,120,12); Cbox2.setState(false); Cbox3.setBounds(195,70,90,12); Cbox4.setBounds(310,70,100,12); 
  540. 12=Cbox5.setBounds(195,100,105,12); Cbox6.setBounds(310,100,100,12); Button1.setBounds(334,34,76,25); TxtFld1.setBounds(70,35,256,23); wsrhd=true; } super.paint (g); } } 
  541.  
  542. [Rectangle]
  543. Color=java.awt.Color(0,0,0)
  544. Height=20
  545. Left=10
  546. Name=
  547. Top=10
  548. Width=20
  549.  
  550. [Rectangle.Properties]
  551. Color=java.awt.Color
  552. Height=int
  553. Left=int
  554. Name=Name
  555. Top=int
  556. Width=int
  557.  
  558. [Rectangle.Paint]
  559. 1=g.setColor (new \Color\);
  560. 2=g.drawRect (\Left\,\Top\,\Width\,\Height\);
  561.  
  562. [Image]
  563. Filename=
  564. Left=10
  565. Name=
  566. Path=
  567. Top=10
  568.  
  569. [Image.Properties]
  570. Filename=Filename
  571. Left=int
  572. Name=Name
  573. Path=Path
  574. Top=int
  575.  
  576. [Image.Listeners]
  577. Component=
  578. Focus=
  579. Key=
  580. Mouse=
  581. MouseMotion=
  582.  
  583. [Image.Eventlist]
  584. focusGained=Focus
  585. focusLost=Focus
  586. componentHidden=Component
  587. componentMoved=Component
  588. componentResized=Component
  589. componentShown=Component
  590. charUndefined=Key
  591. keyPressed=Key
  592. keyReleased=Key
  593. keyTyped=Key
  594. mouseClicked=Mouse
  595. mouseDragged=MouseMotion
  596. mouseEntered=Mouse
  597. mouseExited=Mouse
  598. mouseMoved=MouseMotion
  599. mousePressed=Mouse
  600. mouseReleased=Mouse
  601.  
  602. [Image.Class]
  603. 1=Image \Name\;
  604. 2=\?Path\URL \Name\URL = null;\-\
  605.  
  606. [Image.Init]
  607. 1=\?Path\try { \Name\URL = new URL ("\Path\"); } catch (MalformedURLException \Name\URL) { showStatus("Error"); }\-\
  608. 2=\Name\ = getImage (\?!Path\getCodeBase (), "\Filename\"\-\\?Path\\Name\URL\-\);
  609.  
  610. [Image.Paint]
  611. 1=g.drawImage (\Name\, \Left\, \Top\, this);
  612.  
  613. [List]
  614. Height=200
  615. Items=
  616. Left=10
  617. Name=
  618. Multiselect=false
  619. Selected=0
  620. Top=10
  621. Width=100
  622.  
  623. [List.Properties]
  624. Height=int
  625. Items=Items
  626. Left=int
  627. Name=Name
  628. Multiselect=boolean
  629. Selected=int
  630. Top=int
  631. Width=int
  632.  
  633. [List.Listeners]
  634. Component=
  635. Focus=
  636. Key=
  637. Mouse=
  638. MouseMotion=
  639.  
  640. [List.Eventlist]
  641. focusGained=Focus
  642. focusLost=Focus
  643. componentHidden=Component
  644. componentMoved=Component
  645. componentResized=Component
  646. componentShown=Component
  647. charUndefined=Key
  648. keyPressed=Key
  649. keyReleased=Key
  650. keyTyped=Key
  651. mouseClicked=Mouse
  652. mouseDragged=MouseMotion
  653. mouseEntered=Mouse
  654. mouseExited=Mouse
  655. mouseMoved=MouseMotion
  656. mousePressed=Mouse
  657. mouseReleased=Mouse
  658.  
  659. [List.Class]
  660. 1=List \Name\ = new List ();
  661.  
  662. [List.Init]
  663. 1=add (\Name\);
  664. 2=\Name\.setMultipleSelections (\Multiselect\);
  665. 3=\░░0\
  666. 4=\?Items░0\\Name\.addItem ("\Items░0\");\-\
  667. 5=\░+0\
  668. 6=\?Items░0\\░>0\\-\
  669.  
  670. [List.Paint]
  671. 1=\Name\.setBounds (\Left\,\Top\,\Width\,\Height\);
  672.  
  673. [MenuBar]
  674. Items=
  675. Name=
  676.  
  677. [MenuBar.Properties]
  678. Items=Items
  679. Name=Name
  680.  
  681. [MenuBar.Listeners]
  682. Component=
  683. Focus=
  684. Key=
  685. Mouse=
  686. MouseMotion=
  687.  
  688. [MenuBar.Eventlist]
  689. focusGained=Focus
  690. focusLost=Focus
  691. componentHidden=Component
  692. componentMoved=Component
  693. componentResized=Component
  694. componentShown=Component
  695. charUndefined=Key
  696. keyPressed=Key
  697. keyReleased=Key
  698. keyTyped=Key
  699. mouseClicked=Mouse
  700. mouseDragged=MouseMotion
  701. mouseEntered=Mouse
  702. mouseExited=Mouse
  703. mouseMoved=MouseMotion
  704. mousePressed=Mouse
  705. mouseReleased=Mouse
  706.  
  707. [MenuBar.Class]
  708. 1=MenuBar \Name\ = new MenuBar ();
  709. 2=\░░0\
  710. 3=\?Items░0\Menu \Items░0\ = new Menu ("\Items░0\");\-\
  711. 4=\░░1\
  712. 5=\?Items░0░1\MenuItem \Items░0░1\ = new MenuItem ("\Items░0░1\");\-\
  713. 6=\░+1\
  714. 7=\?Items░0░1\\░>1\\-\
  715. 8=\░+0\
  716. 9=\?Items░0\\░>0\\-\
  717.  
  718. [MenuBar.Init]
  719. 1=\░░0\
  720. 2=\?Items░0\\Name\.add (\Items░0\);\-\
  721. 3=\░░1\
  722. 4=\?Items░0░1\\Items░0\.add (\Items░0░1\);\-\
  723. 5=\░+1\
  724. 6=\?Items░0░1\\░>1\\-\
  725. 7=\░+0\
  726. 8=\?Items░0\\░>0\\-\
  727. 9=setMenuBar (\Name\);
  728.  
  729. [Bean.Class]
  730. 1=\BeanName\ \Name\;
  731.  
  732. [Bean.Init]
  733. 1=try { \Name\=((\BeanName\)Beans.instantiate (Class.forName("\BeanName\").getClassLoader(),"\Name\")); add(\Name\); }
  734. 2=catch (Exception e) { try { \Name\=((\BeanName\)Beans.instantiate(Class.forName("\BeanName\").getClassLoader(),"\BeanName\")); add(\Name\); }
  735. 3=   catch (Exception ex) { \Name\ = new \BeanName\ (); add (\Name\); } }
  736.  
  737. [Bean.Paint]
  738. 1=if (\Name\!=null) \Name\.setBounds (\Left\,\Top\,\Width\,\Height\);
  739.