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 / SmtpComp.def < prev    next >
Encoding:
Text File  |  1996-07-02  |  20.3 KB  |  1,211 lines

  1. DEF_COMPONENTNAME
  2. SmtpComp
  3. DEF_SUPERCLASS
  4. Panel
  5. DEF_SUPERCOMPONENT
  6. Object
  7. DEF_PACKAGE
  8. mojo
  9. networking
  10. DEF_ENDLIST
  11. DEF_SUBCOMPONENTLIST
  12. toText
  13. fromText
  14. subjText
  15. mesgText
  16. sendit
  17. Label1
  18. Label2
  19. Label3
  20. Label4
  21. DEF_ENDLIST
  22. DEF_SUBCOMPONENTCLASSLIST
  23. SmtpComp_toText
  24. SmtpComp_fromText
  25. SmtpComp_subjText
  26. SmtpComp_mesgText
  27. SmtpComp_sendit
  28. SmtpComp_Label1
  29. SmtpComp_Label2
  30. SmtpComp_Label3
  31. SmtpComp_Label4
  32. DEF_ENDLIST
  33. DEF_CATEGORY
  34. Networking
  35. DEF_BITMAP
  36.  
  37. DEF_THUMBNAIL_UP
  38. mail.bmp
  39. DEF_THUMBNAIL_DOWN
  40. 2-mail.bmp
  41. DEF_VISUAL
  42. DEF_TOOL
  43. DEF_PANEL
  44. DEF_IMPORTS
  45. java.io.*
  46. java.net.ProtocolException
  47. java.net.UnknownHostException
  48. DEF_ENDLIST
  49. DEF_REQUIRES
  50. Smtp
  51. DEF_ENDLIST
  52. DEF_IMPLEMENTS
  53. DEF_ENDLIST
  54. DEF_DECLARATION
  55. // A class that is a wrapper for the smtp class.
  56. //  Variable Declarations
  57.     private String from;
  58.     private String to;
  59.     private String subject = "Uninitialized";
  60.     private String message = "Uninitialized";
  61.     private String mailhost = "unknown";
  62.     private boolean editTo;
  63.     private boolean editFrom;
  64. //    Button sendit;
  65. //    Label fromLabel;
  66. //    Label toLabel;
  67. //    TextField fromText, toText;
  68. //    TextField subjText;
  69. //    TextArea mesgText;
  70. DEF_ENDLIST
  71. DEF_EVENT
  72.     public boolean action(Event e, Object o) {
  73.         if (e.target instanceof Button)  {
  74.             if ("Send".equals( (String) o ) ) {
  75.                 try {
  76. /*  Nice idea - but for some reason it is locking up... I'll fix it for v1.1 :-)
  77. //                  showStatus("Getting Mailhost");
  78.                     String mailhost = getCodeBase().getHost();
  79. */
  80. //                  showStatus("Connecting to mailhost ");
  81.                     Smtp connect = new Smtp(mailhost);
  82. //                    showStatus("Connected to mailhost... sending...");
  83.  
  84.                     subject = subjText.getText();
  85.                     message = mesgText.getText();
  86.  
  87.                     connect.sendmsg(from,to,subject,message);
  88. //                    showStatus("Message sent");
  89.  
  90.                     if (fromText.isEditable())
  91.                         fromText.setText(from);
  92.                     if (toText.isEditable())
  93.                         toText.setText(to);
  94.  
  95.                     subjText.setText("Send from Applet");
  96.                     mesgText.setText("Sample Message");
  97.                 }
  98.                 catch (UnknownHostException x1) {
  99. //                    showStatus("Failed to find host - " + mailhost);
  100.                     System.out.println(x1.getMessage());
  101.                 }
  102.                 catch (ProtocolException x2) {
  103. //                    showStatus("Some sort of protocol exception");
  104.                     System.out.println(x2.getMessage());
  105.                 }
  106.                 catch (IOException x3) {
  107. //                    showStatus("Error reading/writing to socket on " + mailhost);
  108.                     System.out.println(x3.getMessage());
  109.                 }
  110.                 finally {
  111.                 }
  112.                 return true;
  113.             }
  114.         }
  115.         if (e.target instanceof TextField) {
  116.         return true;
  117.         }
  118.         return super.action(e,o);
  119.     }
  120. DEF_ENDLIST
  121. DEF_METHOD
  122. void initialize()
  123. {
  124.         if (editTo == false)
  125.           toText.setEditable(false);
  126.         else
  127.           toText.setEditable(true);
  128.  
  129.  
  130.         if (editFrom == true)
  131.             fromText.setEditable(true);
  132.         else
  133.             fromText.setEditable(false);
  134.  
  135. }
  136. DEF_ENDLIST
  137. DEF_METHOD
  138.     public void paint(Graphics g) {
  139.     }
  140. DEF_ENDLIST
  141. DEF_METHOD
  142. public void setSmtpTo(String aParam)
  143. {
  144.   to = aParam;
  145. }
  146. DEF_ENDLIST
  147. DEF_METHOD
  148. public String getSmtpTo()
  149. {
  150.   return to;
  151. }
  152. DEF_ENDLIST
  153. DEF_METHOD
  154. public void setSmtpFrom(String aParam)
  155. {
  156.   from = aParam;
  157. }
  158. DEF_ENDLIST
  159. DEF_METHOD
  160. public String getSmtpFrom()
  161. {
  162.   return from;
  163. }
  164. DEF_ENDLIST
  165. DEF_METHOD
  166. public void setSmtpMailHost(String aParam)
  167. {
  168.   mailhost = aParam;
  169. }
  170. DEF_ENDLIST
  171. DEF_METHOD
  172. public String getSmtpMailHost()
  173. {
  174.   return mailhost;
  175. }
  176. DEF_ENDLIST
  177. DEF_METHOD
  178. public void setSmtpEditTo(boolean aParam)
  179. {
  180.   editTo = aParam;  
  181. }
  182. DEF_ENDLIST
  183. DEF_METHOD
  184. public boolean getSmtpEditTo()
  185. {
  186.   return editTo;
  187. }
  188. DEF_ENDLIST
  189. DEF_METHOD
  190. public void setSmtpEditFrom(boolean aParam)
  191. {
  192.   editFrom = aParam;
  193. }
  194. DEF_ENDLIST
  195. DEF_METHOD
  196. public boolean getSmtpEditFrom()
  197. {
  198.   return editFrom;  
  199. }
  200. DEF_ENDLIST
  201. DEF_PROPERTY
  202. To:
  203. String
  204. setSmtpTo(AVALUE);
  205. AVALUE=getSmtpTo();
  206.  
  207. DEF_ENDLIST
  208. DEF_PROPERTY
  209. From:
  210. String
  211. setSmtpFrom(AVALUE);
  212. AVALUE=getSmtpFrom();
  213.  
  214. DEF_ENDLIST
  215. DEF_PROPERTY
  216. MailHost
  217. String
  218. setSmtpMailHost(AVALUE);
  219. AVALUE=getSmtpMailHost();
  220.  
  221. DEF_ENDLIST
  222. DEF_PROPERTY
  223. Edit To
  224. boolean
  225. setSmtpEditTo(AVALUE);
  226. AVALUE=getSmtpEditTo();
  227. true
  228. DEF_ENDLIST
  229. DEF_PROPERTY
  230. Edit From
  231. boolean
  232. setSmtpEditFrom(AVALUE);
  233. AVALUE=getSmtpEditFrom();
  234. true
  235. DEF_ENDLIST
  236. DEF_PROPERTY
  237. Top
  238. int
  239. move(bounds().x, AVALUE);
  240. AVALUE = bounds().y;
  241. 40
  242. DEF_ENDLIST
  243. DEF_PROPERTY
  244. Left
  245. int
  246. move(AVALUE, bounds().y);
  247. AVALUE = bounds().x;
  248. 30
  249. DEF_ENDLIST
  250. DEF_PROPERTY
  251. Height
  252. int
  253. resize(bounds().width, AVALUE);
  254. AVALUE = bounds().height;
  255. 356
  256. DEF_ENDLIST
  257. DEF_PROPERTY
  258. Width
  259. int
  260. resize(AVALUE, bounds().height);
  261. AVALUE = bounds().width;
  262. 413
  263. DEF_ENDLIST
  264. DEF_ENDCOMPONENT
  265. DEF_COMPONENTNAME
  266. SmtpComp_fromText
  267. DEF_SUPERCLASS
  268. TextField
  269. DEF_SUPERCOMPONENT
  270. SmtpComp
  271. DEF_PACKAGE
  272. mojo
  273. networking
  274. subcomponents
  275. smtpcomp
  276. DEF_ENDLIST
  277. DEF_SUBCOMPONENTLIST
  278. DEF_ENDLIST
  279. DEF_SUBCOMPONENTCLASSLIST
  280. DEF_ENDLIST
  281. DEF_CATEGORY
  282.  
  283. DEF_BITMAP
  284.  
  285. DEF_THUMBNAIL_UP
  286. ntex-ed.bmp
  287. DEF_THUMBNAIL_DOWN
  288. d-ntex-ed.bmp
  289. DEF_VISUAL
  290. DEF_IMPORTS
  291. DEF_ENDLIST
  292. DEF_REQUIRES
  293. DEF_ENDLIST
  294. DEF_IMPLEMENTS
  295. DEF_ENDLIST
  296. DEF_DECLARATION
  297. // TextField is a component that allows the editing of a single line of text.
  298. DEF_ENDLIST
  299. DEF_PROPERTY
  300. Top
  301. int
  302. move(bounds().x, AVALUE);
  303. AVALUE = bounds().y;
  304. 70
  305. DEF_ENDLIST
  306. DEF_PROPERTY
  307. Left
  308. int
  309. move(AVALUE, bounds().y);
  310. AVALUE = bounds().x;
  311. 90
  312. DEF_ENDLIST
  313. DEF_PROPERTY
  314. Height
  315. int
  316. resize(bounds().width, AVALUE);
  317. AVALUE = bounds().height;
  318. 24
  319. DEF_ENDLIST
  320. DEF_PROPERTY
  321. Width
  322. int
  323. resize(AVALUE, bounds().height);
  324. AVALUE = bounds().width;
  325. 121
  326. DEF_ENDLIST
  327. DEF_PROPERTY
  328. ForegroundColor
  329. Color
  330. setForeground(AVALUE);
  331. AVALUE = getForeground();
  332. Color.black
  333. DEF_ENDLIST
  334. DEF_PROPERTY
  335. BackgroundColor
  336. Color
  337. setBackground(AVALUE);
  338. AVALUE = getBackground();
  339. Color.white
  340. DEF_ENDLIST
  341. DEF_PROPERTY
  342. FontName
  343. String
  344. setFont(new Font(AVALUE, getFont().getStyle(), getFont().getSize()));
  345. AVALUE = getFont().getName();
  346. Courier
  347. DEF_ENDLIST
  348. DEF_PROPERTY
  349. FontStyle
  350. int
  351. setFont(new Font(getFont().getName(), AVALUE, getFont().getSize()));
  352. AVALUE = getFont().getStyle();
  353. Font.PLAIN
  354. DEF_ENDLIST
  355. DEF_PROPERTY
  356. FontSize
  357. int
  358. setFont(new Font(getFont().getName(), getFont().getStyle(), AVALUE));
  359. AVALUE = getFont().getSize();
  360. 10
  361. DEF_ENDLIST
  362. DEF_ENDCOMPONENT
  363. DEF_COMPONENTNAME
  364. SmtpComp_Label1
  365. DEF_SUPERCLASS
  366. Label
  367. DEF_SUPERCOMPONENT
  368. SmtpComp
  369. DEF_PACKAGE
  370. mojo
  371. networking
  372. subcomponents
  373. smtpcomp
  374. DEF_ENDLIST
  375. DEF_SUBCOMPONENTLIST
  376. DEF_ENDLIST
  377. DEF_SUBCOMPONENTCLASSLIST
  378. DEF_ENDLIST
  379. DEF_CATEGORY
  380.  
  381. DEF_BITMAP
  382.  
  383. DEF_THUMBNAIL_UP
  384. nlabel.bmp
  385. DEF_THUMBNAIL_DOWN
  386. d-nlabel.bmp
  387. DEF_VISUAL
  388. DEF_IMPORTS
  389. DEF_ENDLIST
  390. DEF_REQUIRES
  391. DEF_ENDLIST
  392. DEF_IMPLEMENTS
  393. DEF_ENDLIST
  394. DEF_DECLARATION
  395. // A component that displays a single line of read-only text.
  396. DEF_ENDLIST
  397. DEF_PROPERTY
  398. Text
  399. String
  400. setText(AVALUE);
  401. AVALUE = getText();
  402. To:
  403. DEF_ENDLIST
  404. DEF_PROPERTY
  405. Alignment
  406. int
  407. setAlignment(AVALUE);
  408. AVALUE = getAlignment();
  409. Label.LEFT
  410. DEF_ENDLIST
  411. DEF_PROPERTY
  412. Top
  413. int
  414. move(bounds().x, AVALUE);
  415. AVALUE = bounds().y;
  416. 28
  417. DEF_ENDLIST
  418. DEF_PROPERTY
  419. Left
  420. int
  421. move(AVALUE, bounds().y);
  422. AVALUE = bounds().x;
  423. 28
  424. DEF_ENDLIST
  425. DEF_PROPERTY
  426. Height
  427. int
  428. resize(bounds().width, AVALUE);
  429. AVALUE = bounds().height;
  430. 14
  431. DEF_ENDLIST
  432. DEF_PROPERTY
  433. Width
  434. int
  435. resize(AVALUE, bounds().height);
  436. AVALUE = bounds().width;
  437. 40
  438. DEF_ENDLIST
  439. DEF_PROPERTY
  440. ForegroundColor
  441. Color
  442. setForeground(AVALUE);
  443. AVALUE = getForeground();
  444. Color.black
  445. DEF_ENDLIST
  446. DEF_PROPERTY
  447. BackgroundColor
  448. Color
  449. setBackground(AVALUE);
  450. AVALUE = getBackground();
  451. Color.lightGray
  452. DEF_ENDLIST
  453. DEF_PROPERTY
  454. FontName
  455. String
  456. setFont(new Font(AVALUE, getFont().getStyle(), getFont().getSize()));
  457. AVALUE = getFont().getName();
  458. Courier
  459. DEF_ENDLIST
  460. DEF_PROPERTY
  461. FontStyle
  462. int
  463. setFont(new Font(getFont().getName(), AVALUE, getFont().getSize()));
  464. AVALUE = getFont().getStyle();
  465. Font.PLAIN
  466. DEF_ENDLIST
  467. DEF_PROPERTY
  468. FontSize
  469. int
  470. setFont(new Font(getFont().getName(), getFont().getStyle(), AVALUE));
  471. AVALUE = getFont().getSize();
  472. 10
  473. DEF_ENDLIST
  474. DEF_ENDCOMPONENT
  475. DEF_COMPONENTNAME
  476. SmtpComp_Label2
  477. DEF_SUPERCLASS
  478. Label
  479. DEF_SUPERCOMPONENT
  480. SmtpComp
  481. DEF_PACKAGE
  482. mojo
  483. networking
  484. subcomponents
  485. smtpcomp
  486. DEF_ENDLIST
  487. DEF_SUBCOMPONENTLIST
  488. DEF_ENDLIST
  489. DEF_SUBCOMPONENTCLASSLIST
  490. DEF_ENDLIST
  491. DEF_CATEGORY
  492.  
  493. DEF_BITMAP
  494.  
  495. DEF_THUMBNAIL_UP
  496. nlabel.bmp
  497. DEF_THUMBNAIL_DOWN
  498. d-nlabel.bmp
  499. DEF_VISUAL
  500. DEF_IMPORTS
  501. DEF_ENDLIST
  502. DEF_REQUIRES
  503. DEF_ENDLIST
  504. DEF_IMPLEMENTS
  505. DEF_ENDLIST
  506. DEF_DECLARATION
  507. // A component that displays a single line of read-only text.
  508. DEF_ENDLIST
  509. DEF_PROPERTY
  510. Text
  511. String
  512. setText(AVALUE);
  513. AVALUE = getText();
  514. From:
  515. DEF_ENDLIST
  516. DEF_PROPERTY
  517. Alignment
  518. int
  519. setAlignment(AVALUE);
  520. AVALUE = getAlignment();
  521. Label.LEFT
  522. DEF_ENDLIST
  523. DEF_PROPERTY
  524. Top
  525. int
  526. move(bounds().x, AVALUE);
  527. AVALUE = bounds().y;
  528. 68
  529. DEF_ENDLIST
  530. DEF_PROPERTY
  531. Left
  532. int
  533. move(AVALUE, bounds().y);
  534. AVALUE = bounds().x;
  535. 28
  536. DEF_ENDLIST
  537. DEF_PROPERTY
  538. Height
  539. int
  540. resize(bounds().width, AVALUE);
  541. AVALUE = bounds().height;
  542. 14
  543. DEF_ENDLIST
  544. DEF_PROPERTY
  545. Width
  546. int
  547. resize(AVALUE, bounds().height);
  548. AVALUE = bounds().width;
  549. 51
  550. DEF_ENDLIST
  551. DEF_PROPERTY
  552. ForegroundColor
  553. Color
  554. setForeground(AVALUE);
  555. AVALUE = getForeground();
  556. Color.black
  557. DEF_ENDLIST
  558. DEF_PROPERTY
  559. BackgroundColor
  560. Color
  561. setBackground(AVALUE);
  562. AVALUE = getBackground();
  563. Color.lightGray
  564. DEF_ENDLIST
  565. DEF_PROPERTY
  566. FontName
  567. String
  568. setFont(new Font(AVALUE, getFont().getStyle(), getFont().getSize()));
  569. AVALUE = getFont().getName();
  570. Courier
  571. DEF_ENDLIST
  572. DEF_PROPERTY
  573. FontStyle
  574. int
  575. setFont(new Font(getFont().getName(), AVALUE, getFont().getSize()));
  576. AVALUE = getFont().getStyle();
  577. Font.PLAIN
  578. DEF_ENDLIST
  579. DEF_PROPERTY
  580. FontSize
  581. int
  582. setFont(new Font(getFont().getName(), getFont().getStyle(), AVALUE));
  583. AVALUE = getFont().getSize();
  584. 10
  585. DEF_ENDLIST
  586. DEF_ENDCOMPONENT
  587. DEF_COMPONENTNAME
  588. SmtpComp_Label3
  589. DEF_SUPERCLASS
  590. Label
  591. DEF_SUPERCOMPONENT
  592. SmtpComp
  593. DEF_PACKAGE
  594. mojo
  595. networking
  596. subcomponents
  597. smtpcomp
  598. DEF_ENDLIST
  599. DEF_SUBCOMPONENTLIST
  600. DEF_ENDLIST
  601. DEF_SUBCOMPONENTCLASSLIST
  602. DEF_ENDLIST
  603. DEF_CATEGORY
  604.  
  605. DEF_BITMAP
  606.  
  607. DEF_THUMBNAIL_UP
  608. nlabel.bmp
  609. DEF_THUMBNAIL_DOWN
  610. d-nlabel.bmp
  611. DEF_VISUAL
  612. DEF_IMPORTS
  613. DEF_ENDLIST
  614. DEF_REQUIRES
  615. DEF_ENDLIST
  616. DEF_IMPLEMENTS
  617. DEF_ENDLIST
  618. DEF_DECLARATION
  619. // A component that displays a single line of read-only text.
  620. DEF_ENDLIST
  621. DEF_PROPERTY
  622. Text
  623. String
  624. setText(AVALUE);
  625. AVALUE = getText();
  626. Subject:
  627. DEF_ENDLIST
  628. DEF_PROPERTY
  629. Alignment
  630. int
  631. setAlignment(AVALUE);
  632. AVALUE = getAlignment();
  633. Label.LEFT
  634. DEF_ENDLIST
  635. DEF_PROPERTY
  636. Top
  637. int
  638. move(bounds().x, AVALUE);
  639. AVALUE = bounds().y;
  640. 98
  641. DEF_ENDLIST
  642. DEF_PROPERTY
  643. Left
  644. int
  645. move(AVALUE, bounds().y);
  646. AVALUE = bounds().x;
  647. 28
  648. DEF_ENDLIST
  649. DEF_PROPERTY
  650. Height
  651. int
  652. resize(bounds().width, AVALUE);
  653. AVALUE = bounds().height;
  654. 13
  655. DEF_ENDLIST
  656. DEF_PROPERTY
  657. Width
  658. int
  659. resize(AVALUE, bounds().height);
  660. AVALUE = bounds().width;
  661. 85
  662. DEF_ENDLIST
  663. DEF_PROPERTY
  664. ForegroundColor
  665. Color
  666. setForeground(AVALUE);
  667. AVALUE = getForeground();
  668. Color.black
  669. DEF_ENDLIST
  670. DEF_PROPERTY
  671. BackgroundColor
  672. Color
  673. setBackground(AVALUE);
  674. AVALUE = getBackground();
  675. Color.lightGray
  676. DEF_ENDLIST
  677. DEF_PROPERTY
  678. FontName
  679. String
  680. setFont(new Font(AVALUE, getFont().getStyle(), getFont().getSize()));
  681. AVALUE = getFont().getName();
  682. Courier
  683. DEF_ENDLIST
  684. DEF_PROPERTY
  685. FontStyle
  686. int
  687. setFont(new Font(getFont().getName(), AVALUE, getFont().getSize()));
  688. AVALUE = getFont().getStyle();
  689. Font.PLAIN
  690. DEF_ENDLIST
  691. DEF_PROPERTY
  692. FontSize
  693. int
  694. setFont(new Font(getFont().getName(), getFont().getStyle(), AVALUE));
  695. AVALUE = getFont().getSize();
  696. 10
  697. DEF_ENDLIST
  698. DEF_ENDCOMPONENT
  699. DEF_COMPONENTNAME
  700. SmtpComp_Label4
  701. DEF_SUPERCLASS
  702. Label
  703. DEF_SUPERCOMPONENT
  704. SmtpComp
  705. DEF_PACKAGE
  706. mojo
  707. networking
  708. subcomponents
  709. smtpcomp
  710. DEF_ENDLIST
  711. DEF_SUBCOMPONENTLIST
  712. DEF_ENDLIST
  713. DEF_SUBCOMPONENTCLASSLIST
  714. DEF_ENDLIST
  715. DEF_CATEGORY
  716.  
  717. DEF_BITMAP
  718.  
  719. DEF_THUMBNAIL_UP
  720. nlabel.bmp
  721. DEF_THUMBNAIL_DOWN
  722. d-nlabel.bmp
  723. DEF_VISUAL
  724. DEF_IMPORTS
  725. DEF_ENDLIST
  726. DEF_REQUIRES
  727. DEF_ENDLIST
  728. DEF_IMPLEMENTS
  729. DEF_ENDLIST
  730. DEF_DECLARATION
  731. // A component that displays a single line of read-only text.
  732. DEF_ENDLIST
  733. DEF_PROPERTY
  734. Text
  735. String
  736. setText(AVALUE);
  737. AVALUE = getText();
  738. Message:
  739. DEF_ENDLIST
  740. DEF_PROPERTY
  741. Alignment
  742. int
  743. setAlignment(AVALUE);
  744. AVALUE = getAlignment();
  745. Label.LEFT
  746. DEF_ENDLIST
  747. DEF_PROPERTY
  748. Top
  749. int
  750. move(bounds().x, AVALUE);
  751. AVALUE = bounds().y;
  752. 160
  753. DEF_ENDLIST
  754. DEF_PROPERTY
  755. Left
  756. int
  757. move(AVALUE, bounds().y);
  758. AVALUE = bounds().x;
  759. 30
  760. DEF_ENDLIST
  761. DEF_PROPERTY
  762. Height
  763. int
  764. resize(bounds().width, AVALUE);
  765. AVALUE = bounds().height;
  766. 17
  767. DEF_ENDLIST
  768. DEF_PROPERTY
  769. Width
  770. int
  771. resize(AVALUE, bounds().height);
  772. AVALUE = bounds().width;
  773. 90
  774. DEF_ENDLIST
  775. DEF_PROPERTY
  776. ForegroundColor
  777. Color
  778. setForeground(AVALUE);
  779. AVALUE = getForeground();
  780. Color.black
  781. DEF_ENDLIST
  782. DEF_PROPERTY
  783. BackgroundColor
  784. Color
  785. setBackground(AVALUE);
  786. AVALUE = getBackground();
  787. Color.lightGray
  788. DEF_ENDLIST
  789. DEF_PROPERTY
  790. FontName
  791. String
  792. setFont(new Font(AVALUE, getFont().getStyle(), getFont().getSize()));
  793. AVALUE = getFont().getName();
  794. Courier
  795. DEF_ENDLIST
  796. DEF_PROPERTY
  797. FontStyle
  798. int
  799. setFont(new Font(getFont().getName(), AVALUE, getFont().getSize()));
  800. AVALUE = getFont().getStyle();
  801. Font.PLAIN
  802. DEF_ENDLIST
  803. DEF_PROPERTY
  804. FontSize
  805. int
  806. setFont(new Font(getFont().getName(), getFont().getStyle(), AVALUE));
  807. AVALUE = getFont().getSize();
  808. 10
  809. DEF_ENDLIST
  810. DEF_ENDCOMPONENT
  811. DEF_COMPONENTNAME
  812. SmtpComp_mesgText
  813. DEF_SUPERCLASS
  814. TextArea
  815. DEF_SUPERCOMPONENT
  816. SmtpComp
  817. DEF_PACKAGE
  818. mojo
  819. networking
  820. subcomponents
  821. smtpcomp
  822. DEF_ENDLIST
  823. DEF_SUBCOMPONENTLIST
  824. DEF_ENDLIST
  825. DEF_SUBCOMPONENTCLASSLIST
  826. DEF_ENDLIST
  827. DEF_CATEGORY
  828.  
  829. DEF_BITMAP
  830.  
  831. DEF_THUMBNAIL_UP
  832. nmemo.bmp
  833. DEF_THUMBNAIL_DOWN
  834. d-nmemo.bmp
  835. DEF_VISUAL
  836. DEF_IMPORTS
  837. DEF_ENDLIST
  838. DEF_REQUIRES
  839. DEF_ENDLIST
  840. DEF_IMPLEMENTS
  841. DEF_ENDLIST
  842. DEF_DECLARATION
  843. // A TextArea object is a multi-line area that displays text. It can
  844. // be set to allow editing or read-only modes.
  845. DEF_ENDLIST
  846. DEF_PROPERTY
  847. Top
  848. int
  849. move(bounds().x, AVALUE);
  850. AVALUE = bounds().y;
  851. 190
  852. DEF_ENDLIST
  853. DEF_PROPERTY
  854. Left
  855. int
  856. move(AVALUE, bounds().y);
  857. AVALUE = bounds().x;
  858. 27
  859. DEF_ENDLIST
  860. DEF_PROPERTY
  861. Height
  862. int
  863. resize(bounds().width, AVALUE);
  864. AVALUE = bounds().height;
  865. 148
  866. DEF_ENDLIST
  867. DEF_PROPERTY
  868. Width
  869. int
  870. resize(AVALUE, bounds().height);
  871. AVALUE = bounds().width;
  872. 349
  873. DEF_ENDLIST
  874. DEF_PROPERTY
  875. ForegroundColor
  876. Color
  877. setForeground(AVALUE);
  878. AVALUE = getForeground();
  879. Color.black
  880. DEF_ENDLIST
  881. DEF_PROPERTY
  882. BackgroundColor
  883. Color
  884. setBackground(AVALUE);
  885. AVALUE = getBackground();
  886. Color.white
  887. DEF_ENDLIST
  888. DEF_PROPERTY
  889. FontName
  890. String
  891. setFont(new Font(AVALUE, getFont().getStyle(), getFont().getSize()));
  892. AVALUE = getFont().getName();
  893. Courier
  894. DEF_ENDLIST
  895. DEF_PROPERTY
  896. FontStyle
  897. int
  898. setFont(new Font(getFont().getName(), AVALUE, getFont().getSize()));
  899. AVALUE = getFont().getStyle();
  900. Font.PLAIN
  901. DEF_ENDLIST
  902. DEF_PROPERTY
  903. FontSize
  904. int
  905. setFont(new Font(getFont().getName(), getFont().getStyle(), AVALUE));
  906. AVALUE = getFont().getSize();
  907. 10
  908. DEF_ENDLIST
  909. DEF_ENDCOMPONENT
  910. DEF_COMPONENTNAME
  911. SmtpComp_sendit
  912. DEF_SUPERCLASS
  913. Button
  914. DEF_SUPERCOMPONENT
  915. SmtpComp
  916. DEF_PACKAGE
  917. mojo
  918. networking
  919. subcomponents
  920. smtpcomp
  921. DEF_ENDLIST
  922. DEF_SUBCOMPONENTLIST
  923. DEF_ENDLIST
  924. DEF_SUBCOMPONENTCLASSLIST
  925. DEF_ENDLIST
  926. DEF_CATEGORY
  927.  
  928. DEF_BITMAP
  929.  
  930. DEF_THUMBNAIL_UP
  931. nbutn2.bmp
  932. DEF_THUMBNAIL_DOWN
  933. d-nbutn2.bmp
  934. DEF_VISUAL
  935. DEF_IMPORTS
  936. DEF_ENDLIST
  937. DEF_REQUIRES
  938. DEF_ENDLIST
  939. DEF_IMPLEMENTS
  940. DEF_ENDLIST
  941. DEF_DECLARATION
  942. // A class that produces a labeled button component.
  943. DEF_ENDLIST
  944. DEF_PROPERTY
  945. Label
  946. String
  947. setLabel(AVALUE);
  948. AVALUE = getLabel();
  949. Send
  950. DEF_ENDLIST
  951. DEF_PROPERTY
  952. Top
  953. int
  954. move(bounds().x, AVALUE);
  955. AVALUE = bounds().y;
  956. 30
  957. DEF_ENDLIST
  958. DEF_PROPERTY
  959. Left
  960. int
  961. move(AVALUE, bounds().y);
  962. AVALUE = bounds().x;
  963. 290
  964. DEF_ENDLIST
  965. DEF_PROPERTY
  966. Height
  967. int
  968. resize(bounds().width, AVALUE);
  969. AVALUE = bounds().height;
  970. 25
  971. DEF_ENDLIST
  972. DEF_PROPERTY
  973. Width
  974. int
  975. resize(AVALUE, bounds().height);
  976. AVALUE = bounds().width;
  977. 75
  978. DEF_ENDLIST
  979. DEF_PROPERTY
  980. ForegroundColor
  981. Color
  982. setForeground(AVALUE);
  983. AVALUE = getForeground();
  984. Color.black
  985. DEF_ENDLIST
  986. DEF_PROPERTY
  987. BackgroundColor
  988. Color
  989. setBackground(AVALUE);
  990. AVALUE = getBackground();
  991. Color.lightGray
  992. DEF_ENDLIST
  993. DEF_PROPERTY
  994. FontName
  995. String
  996. setFont(new Font(AVALUE, getFont().getStyle(), getFont().getSize()));
  997. AVALUE = getFont().getName();
  998. Courier
  999. DEF_ENDLIST
  1000. DEF_PROPERTY
  1001. FontStyle
  1002. int
  1003. setFont(new Font(getFont().getName(), AVALUE, getFont().getSize()));
  1004. AVALUE = getFont().getStyle();
  1005. Font.PLAIN
  1006. DEF_ENDLIST
  1007. DEF_PROPERTY
  1008. FontSize
  1009. int
  1010. setFont(new Font(getFont().getName(), getFont().getStyle(), AVALUE));
  1011. AVALUE = getFont().getSize();
  1012. 10
  1013. DEF_ENDLIST
  1014. DEF_ENDCOMPONENT
  1015. DEF_COMPONENTNAME
  1016. SmtpComp_subjText
  1017. DEF_SUPERCLASS
  1018. TextField
  1019. DEF_SUPERCOMPONENT
  1020. SmtpComp
  1021. DEF_PACKAGE
  1022. mojo
  1023. networking
  1024. subcomponents
  1025. smtpcomp
  1026. DEF_ENDLIST
  1027. DEF_SUBCOMPONENTLIST
  1028. DEF_ENDLIST
  1029. DEF_SUBCOMPONENTCLASSLIST
  1030. DEF_ENDLIST
  1031. DEF_CATEGORY
  1032.  
  1033. DEF_BITMAP
  1034.  
  1035. DEF_THUMBNAIL_UP
  1036. ntex-ed.bmp
  1037. DEF_THUMBNAIL_DOWN
  1038. d-ntex-ed.bmp
  1039. DEF_VISUAL
  1040. DEF_IMPORTS
  1041. DEF_ENDLIST
  1042. DEF_REQUIRES
  1043. DEF_ENDLIST
  1044. DEF_IMPLEMENTS
  1045. DEF_ENDLIST
  1046. DEF_DECLARATION
  1047. // TextField is a component that allows the editing of a single line of text.
  1048. DEF_ENDLIST
  1049. DEF_PROPERTY
  1050. Top
  1051. int
  1052. move(bounds().x, AVALUE);
  1053. AVALUE = bounds().y;
  1054. 130
  1055. DEF_ENDLIST
  1056. DEF_PROPERTY
  1057. Left
  1058. int
  1059. move(AVALUE, bounds().y);
  1060. AVALUE = bounds().x;
  1061. 29
  1062. DEF_ENDLIST
  1063. DEF_PROPERTY
  1064. Height
  1065. int
  1066. resize(bounds().width, AVALUE);
  1067. AVALUE = bounds().height;
  1068. 22
  1069. DEF_ENDLIST
  1070. DEF_PROPERTY
  1071. Width
  1072. int
  1073. resize(AVALUE, bounds().height);
  1074. AVALUE = bounds().width;
  1075. 348
  1076. DEF_ENDLIST
  1077. DEF_PROPERTY
  1078. ForegroundColor
  1079. Color
  1080. setForeground(AVALUE);
  1081. AVALUE = getForeground();
  1082. Color.black
  1083. DEF_ENDLIST
  1084. DEF_PROPERTY
  1085. BackgroundColor
  1086. Color
  1087. setBackground(AVALUE);
  1088. AVALUE = getBackground();
  1089. Color.white
  1090. DEF_ENDLIST
  1091. DEF_PROPERTY
  1092. FontName
  1093. String
  1094. setFont(new Font(AVALUE, getFont().getStyle(), getFont().getSize()));
  1095. AVALUE = getFont().getName();
  1096. Courier
  1097. DEF_ENDLIST
  1098. DEF_PROPERTY
  1099. FontStyle
  1100. int
  1101. setFont(new Font(getFont().getName(), AVALUE, getFont().getSize()));
  1102. AVALUE = getFont().getStyle();
  1103. Font.PLAIN
  1104. DEF_ENDLIST
  1105. DEF_PROPERTY
  1106. FontSize
  1107. int
  1108. setFont(new Font(getFont().getName(), getFont().getStyle(), AVALUE));
  1109. AVALUE = getFont().getSize();
  1110. 10
  1111. DEF_ENDLIST
  1112. DEF_ENDCOMPONENT
  1113. DEF_COMPONENTNAME
  1114. SmtpComp_toText
  1115. DEF_SUPERCLASS
  1116. TextField
  1117. DEF_SUPERCOMPONENT
  1118. SmtpComp
  1119. DEF_PACKAGE
  1120. mojo
  1121. networking
  1122. subcomponents
  1123. smtpcomp
  1124. DEF_ENDLIST
  1125. DEF_SUBCOMPONENTLIST
  1126. DEF_ENDLIST
  1127. DEF_SUBCOMPONENTCLASSLIST
  1128. DEF_ENDLIST
  1129. DEF_CATEGORY
  1130.  
  1131. DEF_BITMAP
  1132.  
  1133. DEF_THUMBNAIL_UP
  1134. ntex-ed.bmp
  1135. DEF_THUMBNAIL_DOWN
  1136. d-ntex-ed.bmp
  1137. DEF_VISUAL
  1138. DEF_IMPORTS
  1139. DEF_ENDLIST
  1140. DEF_REQUIRES
  1141. DEF_ENDLIST
  1142. DEF_IMPLEMENTS
  1143. DEF_ENDLIST
  1144. DEF_DECLARATION
  1145. // TextField is a component that allows the editing of a single line of text.
  1146. DEF_ENDLIST
  1147. DEF_PROPERTY
  1148. Top
  1149. int
  1150. move(bounds().x, AVALUE);
  1151. AVALUE = bounds().y;
  1152. 30
  1153. DEF_ENDLIST
  1154. DEF_PROPERTY
  1155. Left
  1156. int
  1157. move(AVALUE, bounds().y);
  1158. AVALUE = bounds().x;
  1159. 90
  1160. DEF_ENDLIST
  1161. DEF_PROPERTY
  1162. Height
  1163. int
  1164. resize(bounds().width, AVALUE);
  1165. AVALUE = bounds().height;
  1166. 24
  1167. DEF_ENDLIST
  1168. DEF_PROPERTY
  1169. Width
  1170. int
  1171. resize(AVALUE, bounds().height);
  1172. AVALUE = bounds().width;
  1173. 121
  1174. DEF_ENDLIST
  1175. DEF_PROPERTY
  1176. ForegroundColor
  1177. Color
  1178. setForeground(AVALUE);
  1179. AVALUE = getForeground();
  1180. Color.black
  1181. DEF_ENDLIST
  1182. DEF_PROPERTY
  1183. BackgroundColor
  1184. Color
  1185. setBackground(AVALUE);
  1186. AVALUE = getBackground();
  1187. Color.white
  1188. DEF_ENDLIST
  1189. DEF_PROPERTY
  1190. FontName
  1191. String
  1192. setFont(new Font(AVALUE, getFont().getStyle(), getFont().getSize()));
  1193. AVALUE = getFont().getName();
  1194. Courier
  1195. DEF_ENDLIST
  1196. DEF_PROPERTY
  1197. FontStyle
  1198. int
  1199. setFont(new Font(getFont().getName(), AVALUE, getFont().getSize()));
  1200. AVALUE = getFont().getStyle();
  1201. Font.PLAIN
  1202. DEF_ENDLIST
  1203. DEF_PROPERTY
  1204. FontSize
  1205. int
  1206. setFont(new Font(getFont().getName(), getFont().getStyle(), AVALUE));
  1207. AVALUE = getFont().getSize();
  1208. 10
  1209. DEF_ENDLIST
  1210. DEF_ENDCOMPONENT
  1211.