/* */ package NET.worlds.console; /* */ /* */ import java.awt.Font; /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ class MailDialogReceiver /* */ implements DialogReceiver /* */ { /* */ Console console; /* 178 */ private static Font font = new Font(Console.message("ConsoleFont"), /* 179 */ 0, 12); /* */ /* */ public MailDialogReceiver(Console console) /* */ { /* 183 */ this.console = console; /* */ } /* */ /* */ /* */ /* */ /* */ /* */ public void dialogDone(Object who, boolean confirmed) /* */ { /* 192 */ MailDialog dlg = (MailDialog)who; /* 193 */ dlg.setFont(font); /* 194 */ if (confirmed) { /* 195 */ String[] to = dlg.getTo(); /* 196 */ if (to.length > 0) /* */ { /* 198 */ MailMessage msg = new MailMessage(this.console.getSmtpServer(), /* 199 */ this.console.getLongID() + "@" + this.console.getMailDomain(), /* 200 */ to[0], dlg.getSubject(), null); /* */ /* 202 */ for (int i = 1; i < to.length; i++) { /* 203 */ msg.addCC(to[i]); /* */ } /* */ /* */ /* 207 */ msg.appendParagraphs(dlg.getBody()); /* 208 */ msg.send(); /* */ } else { /* 210 */ Console.println(Console.message("No-recipient")); /* */ } /* */ } /* */ } /* */ } /* Location: C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\console\MailDialogReceiver.class * Java compiler version: 6 (50.0) * JD-Core Version: 0.7.1 */