Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

initial commit

  • Loading branch information...
commit c0ce20f7d3f2a60c9cdfc89589d87f9a2d20b1c7 0 parents
@sh1mmer sh1mmer authored
Showing with 2,117 additions and 0 deletions.
  1. +24 −0 LICENSE
  2. +27 −0 README
  3. +83 −0 YahooMessengerExample/build.xml
  4. +1 −0  YahooMessengerExample/build/.timestamp
  5. BIN  YahooMessengerExample/build/compiled/LWUITtheme.res
  6. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/Button.class
  7. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/ButtonGroup.class
  8. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/Calendar$MonthView.class
  9. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/Calendar.class
  10. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/CheckBox.class
  11. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/ComboBox.class
  12. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/Command.class
  13. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/Component$BGPainter.class
  14. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/Component.class
  15. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/Container$Anim.class
  16. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/Container.class
  17. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/CustomFont.class
  18. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/Dialog.class
  19. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/Display.class
  20. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/EncodedImage.class
  21. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/Font.class
  22. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/Form$MenuBar.class
  23. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/Form.class
  24. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/Graphics.class
  25. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/Image.class
  26. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/IndexedImage.class
  27. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/Label.class
  28. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/List$1.class
  29. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/List$Listeners.class
  30. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/List.class
  31. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/M3G$Callback.class
  32. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/M3G.class
  33. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/MediaComponent.class
  34. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/Painter.class
  35. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/RGBImage.class
  36. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/RadioButton.class
  37. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/RunnableWrapper.class
  38. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/SVGImage.class
  39. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/StaticAnimation$Frame.class
  40. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/StaticAnimation.class
  41. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/TabbedPane$1.class
  42. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/TabbedPane$2.class
  43. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/TabbedPane$TabsRenderer.class
  44. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/TabbedPane.class
  45. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/TextArea.class
  46. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/TextField$CommandHandler.class
  47. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/TextField.class
  48. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/animations/Animation.class
  49. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/animations/CommonTransitions.class
  50. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/animations/Motion.class
  51. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/animations/Transition.class
  52. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/animations/Transition3D.class
  53. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/events/ActionEvent.class
  54. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/events/ActionListener.class
  55. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/events/DataChangedListener.class
  56. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/events/FocusListener.class
  57. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/events/SelectionListener.class
  58. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/events/StyleListener.class
  59. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/geom/Dimension.class
  60. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/geom/Rectangle.class
  61. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/impl/ImplementationFactory.class
  62. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/impl/LWUITImplementation.class
  63. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/impl/midp/CanvasImplementation$C.class
  64. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/impl/midp/CanvasImplementation.class
  65. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/impl/midp/GameCanvasImplementation$C.class
  66. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/impl/midp/GameCanvasImplementation.class
  67. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/impl/midp/SVGImplementation$Handler.class
  68. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/impl/midp/SVGImplementation.class
  69. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/impl/midp/SVGImplementationFactory.class
  70. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/impl/midp/VKBImplementation$1.class
  71. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/impl/midp/VKBImplementation.class
  72. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/impl/midp/VKBImplementationFactory.class
  73. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/impl/midp/VirtualKeyboard$1.class
  74. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/impl/midp/VirtualKeyboard$2.class
  75. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/impl/midp/VirtualKeyboard$3.class
  76. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/impl/midp/VirtualKeyboard$4.class
  77. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/impl/midp/VirtualKeyboard$TextPainter.class
  78. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/impl/midp/VirtualKeyboard.class
  79. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/layouts/BorderLayout.class
  80. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/layouts/BoxLayout.class
  81. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/layouts/CoordinateLayout.class
  82. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/layouts/FlowLayout.class
  83. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/layouts/GridLayout.class
  84. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/layouts/GroupLayout$1.class
  85. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/layouts/GroupLayout$AutopaddingMatch.class
  86. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/layouts/GroupLayout$AutopaddingSpring.class
  87. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/layouts/GroupLayout$BaselineGroup.class
  88. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/layouts/GroupLayout$ComponentInfo.class
  89. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/layouts/GroupLayout$ComponentSpring.class
  90. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/layouts/GroupLayout$ContainerAutopaddingSpring.class
  91. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/layouts/GroupLayout$GapSpring.class
  92. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/layouts/GroupLayout$Group.class
  93. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/layouts/GroupLayout$LinkInfo.class
  94. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/layouts/GroupLayout$PaddingSpring.class
  95. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/layouts/GroupLayout$ParallelGroup.class
  96. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/layouts/GroupLayout$SequentialGroup.class
  97. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/layouts/GroupLayout$Spring.class
  98. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/layouts/GroupLayout$SpringDelta.class
  99. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/layouts/GroupLayout.class
  100. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/layouts/Layout.class
  101. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/layouts/LayoutStyle.class
  102. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/list/DefaultListCellRenderer.class
  103. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/list/DefaultListModel.class
  104. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/list/ListCellRenderer.class
  105. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/list/ListModel.class
  106. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/painter/BackgroundPainter.class
  107. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/painter/PainterChain.class
  108. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/plaf/Border.class
  109. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/plaf/DefaultLookAndFeel$1.class
  110. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/plaf/DefaultLookAndFeel.class
  111. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/plaf/LookAndFeel.class
  112. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/plaf/Style.class
  113. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/plaf/UIManager.class
  114. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/spinner/DateTimeRenderer.class
  115. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/spinner/Spinner.class
  116. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/spinner/SpinnerDateModel.class
  117. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/spinner/SpinnerNumberModel.class
  118. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/table/DefaultTableModel.class
  119. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/table/Table$1.class
  120. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/table/Table$Listener.class
  121. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/table/Table.class
  122. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/table/TableLayout$Constraint.class
  123. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/table/TableLayout.class
  124. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/table/TableModel.class
  125. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/tree/Tree$Handler.class
  126. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/tree/Tree.class
  127. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/tree/TreeModel.class
  128. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/util/Effects.class
  129. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/util/EventDispatcher$1.class
  130. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/util/EventDispatcher.class
  131. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/util/Log$1.class
  132. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/util/Log.class
  133. BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/util/Resources.class
  134. BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/beans/IndexedPropertyChangeListener.class
  135. BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/beans/IndexedPropertyChangeSupport.class
  136. BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/beans/PropertyChangeListener.class
  137. BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/beans/PropertyChangeSupport.class
  138. BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/data/json/AddressBook.class
  139. BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/data/json/ClientCapability.class
  140. BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/data/json/ClientCapabilityList.class
  141. BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/data/json/Contact.class
  142. BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/data/json/ContactCollection.class
  143. BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/data/json/ContactList.class
  144. BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/data/json/Error.class
  145. BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/data/json/Group.class
  146. BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/data/json/GroupCollection.class
  147. BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/data/json/GroupList.class
  148. BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/data/json/IgnoredUser.class
  149. BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/data/json/IgnoredUserCollection.class
  150. BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/data/json/IgnoredUserList.class
  151. BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/data/json/Preference.class
  152. BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/data/json/PreferenceList.class
  153. BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/data/json/Presence.class
  154. BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/data/json/User.class
  155. BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/data/json/UserCollection.class
  156. BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/data/json/UserList.class
  157. BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/data/notification/json/BuddyInfo.class
  158. BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/data/notification/json/BuddyInfoContact.class
  159. BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/data/notification/json/BuddyInfoContactList.class
  160. BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/data/notification/json/Message.class
  161. BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/data/notification/json/Response.class
  162. BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/data/notification/json/ResponseList.class
  163. BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/exception/HttpException.class
  164. BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/exception/MessengerException.class
  165. BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/manager/YahooMessengerContactListManager.class
  166. BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/manager/YahooMessengerLoginManager.class
  167. BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/manager/YahooMessengerMessageManager.class
  168. BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/manager/YahooMessengerNotificationManager$1.class
  169. BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/manager/YahooMessengerNotificationManager.class
  170. BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/manager/YahooMessengerPresenceManager.class
  171. BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/manager/data/NotificationData.class
  172. BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/manager/data/SessionData.class
  173. BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/reqresp/YahooMessengerBaseReqResp.class
  174. BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/reqresp/YahooMessengerCreateSessionReqResp.class
  175. BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/reqresp/YahooMessengerDeleteSessionReqResp.class
  176. BIN  ...MessengerExample/build/compiled/com/yahoo/messenger/reqresp/YahooMessengerExchangePARTForOAuthReqResp.class
  177. BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/reqresp/YahooMessengerGetContactInfoReqResp.class
  178. BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/reqresp/YahooMessengerGetContactsReqResp.class
  179. BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/reqresp/YahooMessengerGetCrumbReqResp.class
  180. BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/reqresp/YahooMessengerGetNotificationsReqResp.class
  181. BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/reqresp/YahooMessengerGetPARTReqResp.class
  182. BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/reqresp/YahooMessengerGetPresenceReqResp.class
  183. BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/reqresp/YahooMessengerKeepAliveSessionReqResp.class
  184. BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/reqresp/YahooMessengerMessageReqResp.class
  185. BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/reqresp/YahooMessengerSetPresenceReqResp.class
  186. BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/reqresp/YahooMessengerValidateSessionReqResp.class
  187. BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/ui/MessengerChatScreen$1.class
  188. BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/ui/MessengerChatScreen$ChatScreenMessage.class
  189. BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/ui/MessengerChatScreen.class
  190. BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/ui/MessengerChatScreenChatRenderer.class
  191. BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/ui/MessengerContactsScreen$1.class
  192. BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/ui/MessengerContactsScreen$2.class
  193. BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/ui/MessengerContactsScreen.class
  194. BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/ui/MessengerContactsScreenContactsRenderer.class
  195. BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/ui/MessengerContactsScreenPresenceRenderer.class
  196. BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/ui/MessengerLWUITMidlet.class
  197. BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/ui/MessengerLoginScreen$1.class
  198. BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/ui/MessengerLoginScreen.class
  199. BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/ui/MessengerSplashScreen$SplashScreenTimerClass.class
  200. BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/ui/MessengerSplashScreen.class
  201. BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/ui/task/GetContactCancellableTask.class
  202. BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/ui/task/GetContactListCancellableTask.class
  203. BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/ui/task/GetPresenceCancellableTask.class
  204. BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/ui/task/LoginCancellableTask.class
  205. BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/ui/task/SendMessageCancellableTask.class
  206. BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/ui/task/SetPresenceCancellableTask.class
  207. BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/util/HttpUtils.class
  208. BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/util/StringUtils.class
  209. BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/util/YahooMessengerAuthentication.class
  210. BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/util/YahooMessengerConstants.class
  211. BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/util/YahooMessengerYTLoginUtilities.class
  212. BIN  YahooMessengerExample/build/compiled/org/json/me/JSONArray.class
  213. BIN  YahooMessengerExample/build/compiled/org/json/me/JSONException.class
  214. BIN  YahooMessengerExample/build/compiled/org/json/me/JSONObject$1.class
  215. BIN  YahooMessengerExample/build/compiled/org/json/me/JSONObject$Null.class
  216. BIN  YahooMessengerExample/build/compiled/org/json/me/JSONObject.class
  217. BIN  YahooMessengerExample/build/compiled/org/json/me/JSONString.class
  218. BIN  YahooMessengerExample/build/compiled/org/json/me/JSONStringer.class
  219. BIN  YahooMessengerExample/build/compiled/org/json/me/JSONTokener.class
  220. BIN  YahooMessengerExample/build/compiled/org/json/me/JSONWriter.class
  221. BIN  YahooMessengerExample/build/compiled/org/json/me/StringWriter.class
  222. BIN  YahooMessengerExample/build/compiled/org/json/me/util/XML.class
  223. BIN  YahooMessengerExample/build/compiled/org/json/me/util/XMLTokener.class
  224. BIN  YahooMessengerExample/build/compiled/org/netbeans/microedition/lcdui/AbstractInfoScreen.class
  225. BIN  YahooMessengerExample/build/compiled/org/netbeans/microedition/lcdui/BaseColorSchemaStrategy.class
  226. BIN  YahooMessengerExample/build/compiled/org/netbeans/microedition/lcdui/LoginScreen$1.class
  227. BIN  YahooMessengerExample/build/compiled/org/netbeans/microedition/lcdui/LoginScreen$InputTextBox.class
  228. BIN  YahooMessengerExample/build/compiled/org/netbeans/microedition/lcdui/LoginScreen.class
  229. BIN  YahooMessengerExample/build/compiled/org/netbeans/microedition/lcdui/SimpleTableModel.class
  230. BIN  YahooMessengerExample/build/compiled/org/netbeans/microedition/lcdui/SplashScreen$1.class
  231. BIN  YahooMessengerExample/build/compiled/org/netbeans/microedition/lcdui/SplashScreen$Watchdog.class
  232. BIN  YahooMessengerExample/build/compiled/org/netbeans/microedition/lcdui/SplashScreen.class
  233. BIN  YahooMessengerExample/build/compiled/org/netbeans/microedition/lcdui/TableColorSchemaStrategy.class
  234. BIN  YahooMessengerExample/build/compiled/org/netbeans/microedition/lcdui/TableItem.class
  235. BIN  YahooMessengerExample/build/compiled/org/netbeans/microedition/lcdui/TableModel.class
  236. BIN  YahooMessengerExample/build/compiled/org/netbeans/microedition/lcdui/TableModelListener.class
  237. BIN  YahooMessengerExample/build/compiled/org/netbeans/microedition/lcdui/TablePaintStrategy.class
  238. BIN  YahooMessengerExample/build/compiled/org/netbeans/microedition/lcdui/WaitScreen$1.class
  239. BIN  YahooMessengerExample/build/compiled/org/netbeans/microedition/lcdui/WaitScreen$BackgroundExecutor$1.class
  240. BIN  YahooMessengerExample/build/compiled/org/netbeans/microedition/lcdui/WaitScreen$BackgroundExecutor.class
  241. BIN  YahooMessengerExample/build/compiled/org/netbeans/microedition/lcdui/WaitScreen.class
  242. BIN  YahooMessengerExample/build/compiled/org/netbeans/microedition/lcdui/laf/ColorSchema.class
  243. BIN  YahooMessengerExample/build/compiled/org/netbeans/microedition/lcdui/laf/DefaultColorSchema.class
  244. BIN  YahooMessengerExample/build/compiled/org/netbeans/microedition/lcdui/laf/SystemColorSchema.class
  245. BIN  YahooMessengerExample/build/compiled/org/netbeans/microedition/lcdui/laf/TableColorSchema.class
  246. BIN  YahooMessengerExample/build/compiled/org/netbeans/microedition/lcdui/laf/UserColorSchema.class
  247. BIN  YahooMessengerExample/build/compiled/org/netbeans/microedition/util/CancellableTask.class
  248. BIN  YahooMessengerExample/build/compiled/org/netbeans/microedition/util/Executable.class
  249. BIN  YahooMessengerExample/build/compiled/org/netbeans/microedition/util/SimpleCancellableTask.class
  250. +6 −0 YahooMessengerExample/build/manifest.mf
  251. BIN  YahooMessengerExample/build/preprocessed/LWUITtheme.res
  252. +233 −0 YahooMessengerExample/build/preprocessed/com/yahoo/messenger/ui/MessengerChatScreen.java
  253. +77 −0 YahooMessengerExample/build/preprocessed/com/yahoo/messenger/ui/MessengerChatScreenChatRenderer.java
  254. +403 −0 YahooMessengerExample/build/preprocessed/com/yahoo/messenger/ui/MessengerContactsScreen.java
  255. +79 −0 YahooMessengerExample/build/preprocessed/com/yahoo/messenger/ui/MessengerContactsScreenContactsRenderer.java
  256. +78 −0 YahooMessengerExample/build/preprocessed/com/yahoo/messenger/ui/MessengerContactsScreenPresenceRenderer.java
  257. +238 −0 YahooMessengerExample/build/preprocessed/com/yahoo/messenger/ui/MessengerLWUITMidlet.java
  258. +223 −0 YahooMessengerExample/build/preprocessed/com/yahoo/messenger/ui/MessengerLoginScreen.java
  259. +99 −0 YahooMessengerExample/build/preprocessed/com/yahoo/messenger/ui/MessengerSplashScreen.java
  260. +87 −0 YahooMessengerExample/build/preprocessed/com/yahoo/messenger/ui/task/GetContactCancellableTask.java
  261. +85 −0 YahooMessengerExample/build/preprocessed/com/yahoo/messenger/ui/task/GetContactListCancellableTask.java
  262. +85 −0 YahooMessengerExample/build/preprocessed/com/yahoo/messenger/ui/task/GetPresenceCancellableTask.java
  263. +128 −0 YahooMessengerExample/build/preprocessed/com/yahoo/messenger/ui/task/LoginCancellableTask.java
  264. +83 −0 YahooMessengerExample/build/preprocessed/com/yahoo/messenger/ui/task/SendMessageCancellableTask.java
  265. +78 −0 YahooMessengerExample/build/preprocessed/com/yahoo/messenger/ui/task/SetPresenceCancellableTask.java
  266. BIN  YahooMessengerExample/build/preverified/LWUITtheme.res
  267. BIN  YahooMessengerExample/build/preverified/com/sun/lwuit/Button.class
  268. BIN  YahooMessengerExample/build/preverified/com/sun/lwuit/ButtonGroup.class
  269. BIN  YahooMessengerExample/build/preverified/com/sun/lwuit/Calendar$MonthView.class
  270. BIN  YahooMessengerExample/build/preverified/com/sun/lwuit/Calendar.class
  271. BIN  YahooMessengerExample/build/preverified/com/sun/lwuit/CheckBox.class
  272. BIN  YahooMessengerExample/build/preverified/com/sun/lwuit/ComboBox.class
  273. BIN  YahooMessengerExample/build/preverified/com/sun/lwuit/Command.class
  274. BIN  YahooMessengerExample/build/preverified/com/sun/lwuit/Component$BGPainter.class
  275. BIN  YahooMessengerExample/build/preverified/com/sun/lwuit/Component.class
  276. BIN  YahooMessengerExample/build/preverified/com/sun/lwuit/Container$Anim.class
  277. BIN  YahooMessengerExample/build/preverified/com/sun/lwuit/Container.class
  278. BIN  YahooMessengerExample/build/preverified/com/sun/lwuit/CustomFont.class
  279. BIN  YahooMessengerExample/build/preverified/com/sun/lwuit/Dialog.class
  280. BIN  YahooMessengerExample/build/preverified/com/sun/lwuit/Display.class
  281. BIN  YahooMessengerExample/build/preverified/com/sun/lwuit/EncodedImage.class
  282. BIN  YahooMessengerExample/build/preverified/com/sun/lwuit/Font.class
  283. BIN  YahooMessengerExample/build/preverified/com/sun/lwuit/Form$MenuBar.class
  284. BIN  YahooMessengerExample/build/preverified/com/sun/lwuit/Form.class
  285. BIN  YahooMessengerExample/build/preverified/com/sun/lwuit/Graphics.class
  286. BIN  YahooMessengerExample/build/preverified/com/sun/lwuit/Image.class
  287. BIN  YahooMessengerExample/build/preverified/com/sun/lwuit/IndexedImage.class
  288. BIN  YahooMessengerExample/build/preverified/com/sun/lwuit/Label.class
  289. BIN  YahooMessengerExample/build/preverified/com/sun/lwuit/List$1.class
  290. BIN  YahooMessengerExample/build/preverified/com/sun/lwuit/List$Listeners.class
  291. BIN  YahooMessengerExample/build/preverified/com/sun/lwuit/List.class
  292. BIN  YahooMessengerExample/build/preverified/com/sun/lwuit/M3G$Callback.class
  293. BIN  YahooMessengerExample/build/preverified/com/sun/lwuit/M3G.class
  294. BIN  YahooMessengerExample/build/preverified/com/sun/lwuit/MediaComponent.class
  295. BIN  YahooMessengerExample/build/preverified/com/sun/lwuit/Painter.class
  296. BIN  YahooMessengerExample/build/preverified/com/sun/lwuit/RGBImage.class
  297. BIN  YahooMessengerExample/build/preverified/com/sun/lwuit/RadioButton.class
  298. BIN  YahooMessengerExample/build/preverified/com/sun/lwuit/RunnableWrapper.class
  299. BIN  YahooMessengerExample/build/preverified/com/sun/lwuit/SVGImage.class
  300. BIN  YahooMessengerExample/build/preverified/com/sun/lwuit/StaticAnimation$Frame.class
Sorry, we could not display the entire diff because too many files (1,216) changed.
24 LICENSE
@@ -0,0 +1,24 @@
+Software Copyright License Agreement (BSD License)
+
+Copyright (c) 2010, Yahoo! Inc.
+All rights reserved.
+
+Redistribution and use of this software in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+* Redistributions of source code must retain the above
+ copyright notice, this list of conditions and the
+ following disclaimer.
+
+* Redistributions in binary form must reproduce the above
+ copyright notice, this list of conditions and the
+ following disclaimer in the documentation and/or other
+ materials provided with the distribution.
+
+* Neither the name of Yahoo! Inc. nor the names of its
+ contributors may be used to endorse or promote products
+ derived from this software without specific prior
+ written permission of Yahoo! Inc.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+
27 README
@@ -0,0 +1,27 @@
+This SDK provides an interface to the Yahoo! Messenger API (http://developer.yahoo.com/messenger/) and a sample GUI app both written in Java.
+
+The Messenger SDK contains certain 3rd party open source libraries and tools. This file summarizes the tools used, their purpose, and the licenses under which they're released.
+
+The following 3rd party software package is not distributed as part of this project, but instead is separately downloaded from the respective provider and is only used as part of the separately packaged example code which illustrate how the SDK may be used:
+
+* Light Weight UI Toolkit (LWUIT)
+Licensed under GPL with classpath exception
+(https://lwuit.dev.java.net/)
+
+----------------------
+
+The following 3rd Party code is included as part of this Project:
+
+* json in Java version 0.5 See http://www.json.org
+
+Copyright (c) 2002 JSON.org
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+The Software shall be used for Good, not Evil.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+
83 YahooMessengerExample/build.xml
@@ -0,0 +1,83 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- You may freely edit this file. See commented blocks below for -->
+<!-- some examples of how to customize the build. -->
+<!-- (If you delete it and reopen the project it will be recreated.) -->
+<project name="YahooMessengerLWUIT" default="jar" basedir=".">
+ <description>Builds, tests, and runs the project .</description>
+ <import file="nbproject/build-impl.xml"/>
+ <!--
+
+ There exist several targets which are by default empty and which can be
+ used for execution of your tasks. These targets are usually executed
+ before and after some main targets. They are:
+
+ pre-init: called before initialization of project properties
+ post-init: called after initialization of project properties
+ pre-preprocess: called before text preprocessing of sources
+ post-preprocess: called after text preprocessing of sources
+ pre-compile: called before source compilation
+ post-compile: called after source compilation
+ pre-obfuscate: called before obfuscation
+ post-obfuscate: called after obfuscation
+ pre-preverify: called before preverification
+ post-preverify: called after preverification
+ pre-jar: called before jar building
+ post-jar: called after jar building
+ pre-build: called before final distribution building
+ post-build: called after final distribution building
+ pre-clean: called before cleaning build products
+ post-clean: called after cleaning build products
+
+ Example of pluging a my-special-task after the compilation could look like
+
+ <target name="post-compile">
+ <my-special-task>
+ <fileset dir="${build.classes.dir}"/>
+ </my-special-task>
+ </target>
+
+ For list of available properties check the imported
+ nbproject/build-impl.xml file.
+
+ Other way how to customize the build is by overriding existing main targets.
+ The target of interest are:
+
+ preprocess: preprocessing
+ extract-libs: extraction of libraries and resources
+ compile: compilation
+ create-jad: construction of jad and jar manifest source
+ obfuscate: obfuscation
+ preverify: preverification
+ jar: jar archive building
+ run: execution
+ debug: execution in debug mode
+ build: building of the final distribution
+ javadoc: javadoc generation
+
+ Example of overriding the target for project execution could look like
+
+ <target name="run" depends="init,jar">
+ <my-special-exec jadfile="${dist.dir}/${dist.jad}"/>
+ </target>
+
+ Be careful about correct dependencies when overriding original target.
+ Again, for list of available properties which you can use check the target
+ you are overriding in nbproject/build-impl.xml file.
+
+ A special target for-all-configs can be used to run some specific targets for
+ all project configurations in a sequence. File nbproject/build-impl.xml
+ already contains some "for-all" targets:
+
+ jar-all
+ javadoc-all
+ clean-all
+
+ Example of definition of target iterating over all project configurations:
+
+ <target name="jar-all">
+ <property name="target.to.call" value="jar"/>
+ <antcall target="for-all-configs"/>
+ </target>
+
+ -->
+</project>
1  YahooMessengerExample/build/.timestamp
@@ -0,0 +1 @@
+ignore me
BIN  YahooMessengerExample/build/compiled/LWUITtheme.res
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/Button.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/ButtonGroup.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/Calendar$MonthView.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/Calendar.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/CheckBox.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/ComboBox.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/Command.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/Component$BGPainter.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/Component.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/Container$Anim.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/Container.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/CustomFont.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/Dialog.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/Display.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/EncodedImage.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/Font.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/Form$MenuBar.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/Form.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/Graphics.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/Image.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/IndexedImage.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/Label.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/List$1.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/List$Listeners.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/List.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/M3G$Callback.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/M3G.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/MediaComponent.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/Painter.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/RGBImage.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/RadioButton.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/RunnableWrapper.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/SVGImage.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/StaticAnimation$Frame.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/StaticAnimation.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/TabbedPane$1.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/TabbedPane$2.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/TabbedPane$TabsRenderer.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/TabbedPane.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/TextArea.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/TextField$CommandHandler.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/TextField.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/animations/Animation.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/animations/CommonTransitions.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/animations/Motion.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/animations/Transition.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/animations/Transition3D.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/events/ActionEvent.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/events/ActionListener.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/events/DataChangedListener.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/events/FocusListener.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/events/SelectionListener.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/events/StyleListener.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/geom/Dimension.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/geom/Rectangle.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/impl/ImplementationFactory.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/impl/LWUITImplementation.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/impl/midp/CanvasImplementation$C.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/impl/midp/CanvasImplementation.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/impl/midp/GameCanvasImplementation$C.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/impl/midp/GameCanvasImplementation.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/impl/midp/SVGImplementation$Handler.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/impl/midp/SVGImplementation.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/impl/midp/SVGImplementationFactory.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/impl/midp/VKBImplementation$1.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/impl/midp/VKBImplementation.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/impl/midp/VKBImplementationFactory.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/impl/midp/VirtualKeyboard$1.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/impl/midp/VirtualKeyboard$2.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/impl/midp/VirtualKeyboard$3.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/impl/midp/VirtualKeyboard$4.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/impl/midp/VirtualKeyboard$TextPainter.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/impl/midp/VirtualKeyboard.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/layouts/BorderLayout.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/layouts/BoxLayout.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/layouts/CoordinateLayout.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/layouts/FlowLayout.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/layouts/GridLayout.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/layouts/GroupLayout$1.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/layouts/GroupLayout$AutopaddingMatch.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/layouts/GroupLayout$AutopaddingSpring.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/layouts/GroupLayout$BaselineGroup.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/layouts/GroupLayout$ComponentInfo.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/layouts/GroupLayout$ComponentSpring.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/layouts/GroupLayout$ContainerAutopaddingSpring.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/layouts/GroupLayout$GapSpring.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/layouts/GroupLayout$Group.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/layouts/GroupLayout$LinkInfo.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/layouts/GroupLayout$PaddingSpring.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/layouts/GroupLayout$ParallelGroup.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/layouts/GroupLayout$SequentialGroup.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/layouts/GroupLayout$Spring.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/layouts/GroupLayout$SpringDelta.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/layouts/GroupLayout.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/layouts/Layout.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/layouts/LayoutStyle.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/list/DefaultListCellRenderer.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/list/DefaultListModel.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/list/ListCellRenderer.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/list/ListModel.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/painter/BackgroundPainter.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/painter/PainterChain.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/plaf/Border.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/plaf/DefaultLookAndFeel$1.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/plaf/DefaultLookAndFeel.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/plaf/LookAndFeel.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/plaf/Style.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/plaf/UIManager.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/spinner/DateTimeRenderer.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/spinner/Spinner.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/spinner/SpinnerDateModel.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/spinner/SpinnerNumberModel.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/table/DefaultTableModel.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/table/Table$1.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/table/Table$Listener.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/table/Table.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/table/TableLayout$Constraint.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/table/TableLayout.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/table/TableModel.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/tree/Tree$Handler.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/tree/Tree.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/tree/TreeModel.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/util/Effects.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/util/EventDispatcher$1.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/util/EventDispatcher.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/util/Log$1.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/util/Log.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/sun/lwuit/util/Resources.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/beans/IndexedPropertyChangeListener.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/beans/IndexedPropertyChangeSupport.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/beans/PropertyChangeListener.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/beans/PropertyChangeSupport.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/data/json/AddressBook.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/data/json/ClientCapability.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/data/json/ClientCapabilityList.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/data/json/Contact.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/data/json/ContactCollection.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/data/json/ContactList.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/data/json/Error.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/data/json/Group.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/data/json/GroupCollection.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/data/json/GroupList.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/data/json/IgnoredUser.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/data/json/IgnoredUserCollection.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/data/json/IgnoredUserList.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/data/json/Preference.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/data/json/PreferenceList.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/data/json/Presence.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/data/json/User.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/data/json/UserCollection.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/data/json/UserList.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/data/notification/json/BuddyInfo.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/data/notification/json/BuddyInfoContact.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/data/notification/json/BuddyInfoContactList.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/data/notification/json/Message.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/data/notification/json/Response.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/data/notification/json/ResponseList.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/exception/HttpException.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/exception/MessengerException.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/manager/YahooMessengerContactListManager.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/manager/YahooMessengerLoginManager.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/manager/YahooMessengerMessageManager.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/manager/YahooMessengerNotificationManager$1.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/manager/YahooMessengerNotificationManager.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/manager/YahooMessengerPresenceManager.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/manager/data/NotificationData.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/manager/data/SessionData.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/reqresp/YahooMessengerBaseReqResp.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/reqresp/YahooMessengerCreateSessionReqResp.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/reqresp/YahooMessengerDeleteSessionReqResp.class
Binary file not shown
BIN  ...sengerExample/build/compiled/com/yahoo/messenger/reqresp/YahooMessengerExchangePARTForOAuthReqResp.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/reqresp/YahooMessengerGetContactInfoReqResp.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/reqresp/YahooMessengerGetContactsReqResp.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/reqresp/YahooMessengerGetCrumbReqResp.class
Binary file not shown
BIN  ...oMessengerExample/build/compiled/com/yahoo/messenger/reqresp/YahooMessengerGetNotificationsReqResp.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/reqresp/YahooMessengerGetPARTReqResp.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/reqresp/YahooMessengerGetPresenceReqResp.class
Binary file not shown
BIN  ...oMessengerExample/build/compiled/com/yahoo/messenger/reqresp/YahooMessengerKeepAliveSessionReqResp.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/reqresp/YahooMessengerMessageReqResp.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/reqresp/YahooMessengerSetPresenceReqResp.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/reqresp/YahooMessengerValidateSessionReqResp.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/ui/MessengerChatScreen$1.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/ui/MessengerChatScreen$ChatScreenMessage.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/ui/MessengerChatScreen.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/ui/MessengerChatScreenChatRenderer.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/ui/MessengerContactsScreen$1.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/ui/MessengerContactsScreen$2.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/ui/MessengerContactsScreen.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/ui/MessengerContactsScreenContactsRenderer.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/ui/MessengerContactsScreenPresenceRenderer.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/ui/MessengerLWUITMidlet.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/ui/MessengerLoginScreen$1.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/ui/MessengerLoginScreen.class
Binary file not shown
BIN  ...essengerExample/build/compiled/com/yahoo/messenger/ui/MessengerSplashScreen$SplashScreenTimerClass.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/ui/MessengerSplashScreen.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/ui/task/GetContactCancellableTask.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/ui/task/GetContactListCancellableTask.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/ui/task/GetPresenceCancellableTask.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/ui/task/LoginCancellableTask.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/ui/task/SendMessageCancellableTask.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/ui/task/SetPresenceCancellableTask.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/util/HttpUtils.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/util/StringUtils.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/util/YahooMessengerAuthentication.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/util/YahooMessengerConstants.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/com/yahoo/messenger/util/YahooMessengerYTLoginUtilities.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/org/json/me/JSONArray.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/org/json/me/JSONException.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/org/json/me/JSONObject$1.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/org/json/me/JSONObject$Null.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/org/json/me/JSONObject.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/org/json/me/JSONString.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/org/json/me/JSONStringer.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/org/json/me/JSONTokener.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/org/json/me/JSONWriter.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/org/json/me/StringWriter.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/org/json/me/util/XML.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/org/json/me/util/XMLTokener.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/org/netbeans/microedition/lcdui/AbstractInfoScreen.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/org/netbeans/microedition/lcdui/BaseColorSchemaStrategy.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/org/netbeans/microedition/lcdui/LoginScreen$1.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/org/netbeans/microedition/lcdui/LoginScreen$InputTextBox.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/org/netbeans/microedition/lcdui/LoginScreen.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/org/netbeans/microedition/lcdui/SimpleTableModel.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/org/netbeans/microedition/lcdui/SplashScreen$1.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/org/netbeans/microedition/lcdui/SplashScreen$Watchdog.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/org/netbeans/microedition/lcdui/SplashScreen.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/org/netbeans/microedition/lcdui/TableColorSchemaStrategy.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/org/netbeans/microedition/lcdui/TableItem.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/org/netbeans/microedition/lcdui/TableModel.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/org/netbeans/microedition/lcdui/TableModelListener.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/org/netbeans/microedition/lcdui/TablePaintStrategy.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/org/netbeans/microedition/lcdui/WaitScreen$1.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/org/netbeans/microedition/lcdui/WaitScreen$BackgroundExecutor$1.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/org/netbeans/microedition/lcdui/WaitScreen$BackgroundExecutor.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/org/netbeans/microedition/lcdui/WaitScreen.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/org/netbeans/microedition/lcdui/laf/ColorSchema.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/org/netbeans/microedition/lcdui/laf/DefaultColorSchema.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/org/netbeans/microedition/lcdui/laf/SystemColorSchema.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/org/netbeans/microedition/lcdui/laf/TableColorSchema.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/org/netbeans/microedition/lcdui/laf/UserColorSchema.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/org/netbeans/microedition/util/CancellableTask.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/org/netbeans/microedition/util/Executable.class
Binary file not shown
BIN  YahooMessengerExample/build/compiled/org/netbeans/microedition/util/SimpleCancellableTask.class
Binary file not shown
6 YahooMessengerExample/build/manifest.mf
@@ -0,0 +1,6 @@
+MIDlet-1: HelloLWUITMidlet, ,com.yahoo.messenger.ui.MessengerLWUITMidlet
+MIDlet-Vendor: Vendor
+MIDlet-Name: YahooMessengerLWUIT
+MIDlet-Version: 1.0
+MicroEdition-Configuration: CLDC-1.1
+MicroEdition-Profile: MIDP-2.0
BIN  YahooMessengerExample/build/preprocessed/LWUITtheme.res
Binary file not shown
233 YahooMessengerExample/build/preprocessed/com/yahoo/messenger/ui/MessengerChatScreen.java
@@ -0,0 +1,233 @@
+/**
+ * Copyright (c) 2009-2010, Yahoo! Inc. All rights reserved.
+ * Code licensed under the BSD License:
+ * http://searchmarketing.yahoo.com/developer/docs/license.txt
+ */
+
+package com.yahoo.messenger.ui;
+
+import com.sun.lwuit.Command;
+import com.sun.lwuit.Form;
+import com.sun.lwuit.List;
+import com.sun.lwuit.TextArea;
+import com.sun.lwuit.events.ActionEvent;
+import com.sun.lwuit.events.ActionListener;
+import com.sun.lwuit.layouts.BoxLayout;
+import com.sun.lwuit.list.DefaultListModel;
+import com.sun.lwuit.list.ListModel;
+import com.yahoo.messenger.beans.PropertyChangeListener;
+import com.yahoo.messenger.data.json.Contact;
+import com.yahoo.messenger.data.notification.json.Message;
+import com.yahoo.messenger.data.notification.json.Response;
+import com.yahoo.messenger.manager.YahooMessengerLoginManager;
+import com.yahoo.messenger.manager.YahooMessengerNotificationManager;
+import com.yahoo.messenger.manager.data.NotificationData;
+import com.yahoo.messenger.ui.task.SendMessageCancellableTask;
+import java.util.Hashtable;
+import org.netbeans.microedition.util.SimpleCancellableTask;
+
+
+public class MessengerChatScreen implements ActionListener, PropertyChangeListener {
+
+ private MessengerLWUITMidlet midlet;
+ private Contact contact;
+
+ private Form ymChatForm;
+ private TextArea ymChatTextArea;
+
+ private List ymConversationList;
+ private ListModel listModel;
+
+ private Hashtable messagesReceived;
+
+
+ public MessengerChatScreen(MessengerLWUITMidlet midlet,
+ Contact contact)
+ {
+
+ this.midlet = midlet;
+ this.contact = contact;
+
+ this.messagesReceived = new Hashtable();
+
+ YahooMessengerNotificationManager manager =
+ YahooMessengerNotificationManager.getInstance();
+ manager.addPropertyChangeListener(this);
+
+ }
+
+ public void displayYahooMessengerChatScreen() {
+
+ getYahooMessengerChatForm().show();
+
+ }
+
+ public Form getYahooMessengerChatForm() {
+
+ if (ymChatForm == null) {
+
+ ymChatForm = new Form("Chat with " + contact.getId());
+
+ ymChatForm.setLayout(new BoxLayout(BoxLayout.Y_AXIS));
+ ymChatForm.addComponent(getYahooMessengerChatTextArea());
+ ymChatForm.addComponent(getYahooMessengerConversationList());
+ ymChatForm.addCommand(midlet.getYahooMessengerBackCommand());
+
+ ymChatForm.setCommandListener(this);
+
+ }
+
+ return ymChatForm;
+ }
+
+ public TextArea getYahooMessengerChatTextArea() {
+
+ if (ymChatTextArea == null) {
+ ymChatTextArea = new TextArea();
+ ymChatTextArea.addActionListener(this);
+ }
+
+ return ymChatTextArea;
+ }
+
+
+
+ public List getYahooMessengerConversationList() {
+
+ if (ymConversationList == null) {
+ listModel = new DefaultListModel();
+ ymConversationList = new List(listModel);
+ ymConversationList.addActionListener(this);
+ ymConversationList.setListCellRenderer(new MessengerChatScreenChatRenderer(this));
+ } else {
+ ymConversationList.setModel(listModel);
+ }
+
+ return ymConversationList;
+
+ }
+
+
+
+ public void actionPerformed(ActionEvent event) {
+
+
+ if (event.getSource() == ymChatTextArea)
+ {
+
+ Thread t = new Thread() {
+ public void run() {
+
+ String myLoginID = YahooMessengerLoginManager.getInstance().
+ getCurrentUsername();
+
+ String message = ymChatTextArea.getText();
+ performSendMessageTask(contact, message);
+ ymConversationList.addItem(new ChatScreenMessage(myLoginID, message));
+ ymChatTextArea.setText("");
+ ymChatForm.repaint();
+ ymConversationList.setSelectedIndex(ymConversationList.getModel().getSize()-1);
+ }
+ };
+ t.start();
+
+ } else {
+
+ Command c = event.getCommand();
+
+ if (c != null) {
+
+ int commandID = c.getId();
+
+ if (commandID == MessengerLWUITMidlet.BACK_COMMAND) {
+ midlet.changeApplicationState(MessengerLWUITMidlet.MIDLET_STATE_CONTACT_SCREEN);
+ } else if (commandID == MessengerLWUITMidlet.EXIT_COMMAND) {
+ midlet.exitApplication();
+ }
+ }
+
+ }
+ }
+
+ public void propertyChanged(Object id, Object oldValue, Object newValue) {
+
+ if (id.equals(YahooMessengerNotificationManager.NOTIFICATION)) {
+
+ NotificationData n = (NotificationData)newValue;
+ Response[] rlist = n.getResponseList().getResponses();
+
+ for (int i = 0; i < rlist.length; i++) {
+ if (rlist[i] instanceof Message) {
+
+ Message m = (Message)rlist[i];
+
+ if (!messagesReceived.containsKey(m.getSequence())) {
+ messagesReceived.put(m.getSequence(), m.getHash());
+ ymConversationList.addItem(new ChatScreenMessage(m.getSender(), m.getMsg()));
+ ymChatForm.repaint();
+ ymConversationList.setSelectedIndex(ymConversationList.getModel().getSize()-1);
+ }
+
+ }
+ }
+
+
+ }
+
+ }
+
+ public void performSendMessageTask(Contact contact, String message) {
+
+
+ SendMessageCancellableTask getPresenceTask =
+ new SendMessageCancellableTask(midlet, contact, message);
+
+ SimpleCancellableTask cTask = new SimpleCancellableTask(getPresenceTask);
+ cTask.run();
+
+
+ }
+
+ public class ChatScreenMessage {
+
+ private String sender;
+ private String message;
+
+ public ChatScreenMessage(String sender, String message) {
+
+ this.sender = sender;
+ this.message = message;
+
+ }
+ /**
+ * @return the sender
+ */
+ public String getSender() {
+ return sender;
+ }
+
+ /**
+ * @param sender the sender to set
+ */
+ public void setSender(String sender) {
+ this.sender = sender;
+ }
+
+ /**
+ * @return the message
+ */
+ public String getMessage() {
+ return message;
+ }
+
+ /**
+ * @param message the message to set
+ */
+ public void setMessage(String message) {
+ this.message = message;
+ }
+
+ }
+
+
+}
77 YahooMessengerExample/build/preprocessed/com/yahoo/messenger/ui/MessengerChatScreenChatRenderer.java
@@ -0,0 +1,77 @@
+/**
+ * Copyright (c) 2009-2010, Yahoo! Inc. All rights reserved.
+ * Code licensed under the BSD License:
+ * http://searchmarketing.yahoo.com/developer/docs/license.txt
+ */
+
+package com.yahoo.messenger.ui;
+
+import com.sun.lwuit.Component;
+import com.sun.lwuit.Container;
+import com.sun.lwuit.Label;
+import com.sun.lwuit.List;
+import com.sun.lwuit.layouts.BorderLayout;
+import com.sun.lwuit.list.ListCellRenderer;
+import com.yahoo.messenger.manager.YahooMessengerLoginManager;
+
+
+public class MessengerChatScreenChatRenderer extends Container implements ListCellRenderer {
+
+ private MessengerChatScreen chatScreen;
+
+ private Label messageLabel = new Label("");
+ private Label myAvatarImageLabel = new Label("");
+ private Label contactAvatarImageLabel = new Label("");
+
+ private Label focus = new Label("");
+
+ private String myLoginID;
+
+ public MessengerChatScreenChatRenderer(MessengerChatScreen chatScreen) {
+
+ this.chatScreen = chatScreen;
+
+ myLoginID = YahooMessengerLoginManager.getInstance().
+ getCurrentUsername();;
+
+ setLayout(new BorderLayout());
+ addComponent(BorderLayout.WEST, myAvatarImageLabel);
+ addComponent(BorderLayout.CENTER, messageLabel);
+ addComponent(BorderLayout.EAST, contactAvatarImageLabel);
+
+ focus.getStyle().setBgTransparency(100);
+
+ }
+
+ public Component getListCellRendererComponent(List list, Object value, int index, boolean isSelected) {
+
+ MessengerChatScreen.ChatScreenMessage m = (MessengerChatScreen.ChatScreenMessage)value;
+
+ messageLabel.setText(m.getMessage());
+
+ if (!m.getSender().equals(myLoginID)) {
+ messageLabel.setEnabled(false);
+ messageLabel.setShiftText(20);
+ } else {
+ messageLabel.setEnabled(true);
+ messageLabel.setShiftText(0);
+ }
+
+ if (isSelected) {
+ setFocus(true);
+ getStyle().setBgTransparency(100);
+ } else {
+ setFocus(false);
+ getStyle().setBgTransparency(0);
+ }
+
+ return this;
+
+ }
+
+ public Component getListFocusComponent(List list) {
+ return focus;
+ }
+
+
+}
403 YahooMessengerExample/build/preprocessed/com/yahoo/messenger/ui/MessengerContactsScreen.java
@@ -0,0 +1,403 @@
+/**
+ * Copyright (c) 2009-2010, Yahoo! Inc. All rights reserved.
+ * Code licensed under the BSD License:
+ * http://searchmarketing.yahoo.com/developer/docs/license.txt
+ */
+
+package com.yahoo.messenger.ui;
+
+import com.sun.lwuit.ComboBox;
+import com.sun.lwuit.Command;
+import com.sun.lwuit.Container;
+import com.sun.lwuit.Form;
+import com.sun.lwuit.Image;
+import com.sun.lwuit.Label;
+import com.sun.lwuit.List;
+import com.sun.lwuit.TextArea;
+import com.sun.lwuit.events.ActionEvent;
+import com.sun.lwuit.events.ActionListener;
+import com.sun.lwuit.layouts.BoxLayout;
+import com.sun.lwuit.list.DefaultListModel;
+import com.sun.lwuit.list.ListModel;
+import com.yahoo.messenger.beans.PropertyChangeListener;
+import com.yahoo.messenger.data.json.Contact;
+import com.yahoo.messenger.data.json.Presence;
+import com.yahoo.messenger.data.notification.json.BuddyInfo;
+import com.yahoo.messenger.data.notification.json.BuddyInfoContact;
+import com.yahoo.messenger.data.notification.json.Response;
+import com.yahoo.messenger.manager.YahooMessengerNotificationManager;
+import com.yahoo.messenger.manager.data.NotificationData;
+import com.yahoo.messenger.ui.task.GetContactCancellableTask;
+import com.yahoo.messenger.ui.task.GetContactListCancellableTask;
+import com.yahoo.messenger.ui.task.GetPresenceCancellableTask;
+import com.yahoo.messenger.ui.task.SetPresenceCancellableTask;
+import java.io.IOException;
+import org.netbeans.microedition.util.SimpleCancellableTask;
+
+
+public class MessengerContactsScreen implements ActionListener, PropertyChangeListener {
+
+ private MessengerLWUITMidlet midlet;
+
+ private Form ymGetContactsScreenWaitForm;
+ private Label ymGetContactsScreenWaitLabel;
+
+ private Form ymContactListForm;
+ private Container ymContactPresenceContainer;
+ private Container ymContactContactContainer;
+ private ComboBox ymContactListPresenceComboBox;
+ private Label ymContactListPresenceMessage;
+ private TextArea ymContactListPresenceTextArea;
+ private Label ymContactListPresenceFriendsLabel;
+
+ private List ymContactList;
+
+
+ private Contact[] contacts;
+ private ListModel listModel;
+
+ private int ymPresenceState = Presence.PRESENCE_STATE_OFFLINE;
+ private String ymPresenceMessage;
+
+ public MessengerContactsScreen(MessengerLWUITMidlet midlet) {
+
+ this.midlet = midlet;
+
+ YahooMessengerNotificationManager manager =
+ YahooMessengerNotificationManager.getInstance();
+ manager.addPropertyChangeListener(this);
+
+ }
+
+
+
+ public void displayYahooMessengerGetContactsWaitScreen() {
+
+ getYahooMessengerGetContactsWaitForm().show();
+
+ }
+
+ public Form getYahooMessengerGetContactsWaitForm() {
+
+ if (ymGetContactsScreenWaitForm == null) {
+
+ ymGetContactsScreenWaitForm = new Form("Retrieving Contact List");
+
+ ymGetContactsScreenWaitForm.addComponent(getYahooMessengerGetContactsFormWaitLabel());
+ ymGetContactsScreenWaitForm.addCommand(midlet.getYahooMessengerCancelCommand());
+
+ ymGetContactsScreenWaitForm.setCommandListener(this);
+
+ }
+
+ return ymGetContactsScreenWaitForm;
+
+ }
+
+ public Label getYahooMessengerGetContactsFormWaitLabel() {
+
+ if (ymGetContactsScreenWaitLabel == null) {
+ ymGetContactsScreenWaitLabel = new Label("Retrieving contact list...");
+ }
+
+ return ymGetContactsScreenWaitLabel;
+
+ }
+
+
+
+ public void displayYahooMessengerContactListScreen() {
+
+ getYahooMessengerContactListForm().show();
+
+ }
+
+ public Form getYahooMessengerContactListForm() {
+
+ if (ymContactListForm == null) {
+
+ ymContactListForm = new Form("Yahoo! Messenger");
+
+ ymContactListForm.setLayout(new BoxLayout(BoxLayout.Y_AXIS));
+ ymContactListForm.addComponent(getYahooMessengerPresenceContainer());
+ ymContactListForm.addComponent(getYahooMessengerContactContainer());
+ ymContactListForm.addCommand(midlet.getYahooMessengerExitCommand());
+
+ ymContactListForm.setCommandListener(this);
+
+ }
+
+ return ymContactListForm;
+ }
+
+ public Container getYahooMessengerPresenceContainer() {
+
+ if (ymContactPresenceContainer == null) {
+
+ ymContactPresenceContainer = new Container(new BoxLayout(BoxLayout.Y_AXIS));
+ ymContactPresenceContainer.addComponent(getYahooMessengerPresenceComboBox());
+ ymContactPresenceContainer.addComponent(getYahooMessengerPresenceMessageLabel());
+ ymContactPresenceContainer.addComponent(getYahooMessengerPresenceTextArea());
+ }
+
+ return ymContactPresenceContainer;
+
+ }
+
+ public ComboBox getYahooMessengerPresenceComboBox() {
+
+ if (ymContactListPresenceComboBox == null) {
+ ymContactListPresenceComboBox =
+ new ComboBox(new DefaultListModel(
+ new Integer[] {
+ new Integer(Presence.PRESENCE_STATE_OFFLINE),
+ new Integer(Presence.PRESENCE_STATE_ONLINE),
+ new Integer(Presence.PRESENCE_STATE_BUSY),
+ new Integer(Presence.PRESENCE_STATE_IDLE)
+ }
+ ));
+ ymContactListPresenceComboBox.setListCellRenderer(new MessengerContactsScreenPresenceRenderer(this));
+ ymContactListPresenceComboBox.addActionListener(this);
+ }
+
+ return ymContactListPresenceComboBox;
+
+ }
+
+ public Label getYahooMessengerPresenceMessageLabel() {
+
+ if (ymContactListPresenceMessage == null) {
+ ymContactListPresenceMessage = new Label(" ");
+ }
+
+ return ymContactListPresenceMessage;
+ }
+
+ public void updatePresenceDisplayInfo() {
+
+ if (ymContactListPresenceMessage != null) {
+ ymContactListPresenceMessage.setText(ymPresenceMessage);
+ }
+
+ if (ymContactListPresenceComboBox != null) {
+
+ int index = 0;
+ if (ymPresenceState == Presence.PRESENCE_STATE_ONLINE)
+ index = 1;
+ else if (ymPresenceState == Presence.PRESENCE_STATE_BUSY)
+ index = 2;
+ else if (ymPresenceState == Presence.PRESENCE_STATE_IDLE)
+ index = 3;
+
+ ymContactListPresenceComboBox.setSelectedIndex(index);
+ }
+ }
+
+ public TextArea getYahooMessengerPresenceTextArea() {
+
+ if (ymContactListPresenceTextArea == null) {
+ ymContactListPresenceTextArea = new TextArea();
+ ymContactListPresenceTextArea.addActionListener(this);
+ }
+
+ return ymContactListPresenceTextArea;
+ }
+
+ public Container getYahooMessengerContactContainer() {
+
+ if (ymContactContactContainer == null) {
+
+ ymContactContactContainer = new Container(new BoxLayout(BoxLayout.Y_AXIS));
+ ymContactContactContainer.addComponent(getYahooMessengerFriendsLabel());
+ ymContactContactContainer.addComponent(getYahooMessengerContactList());
+ }
+
+ return ymContactContactContainer;
+
+ }
+
+ public Label getYahooMessengerFriendsLabel() {
+
+ if (ymContactListPresenceFriendsLabel == null) {
+ ymContactListPresenceFriendsLabel = new Label("Friends");
+ }
+
+ return ymContactListPresenceFriendsLabel;
+
+ }
+
+ public List getYahooMessengerContactList() {
+
+ if (ymContactList == null) {
+ listModel = new DefaultListModel(contacts);
+ ymContactList = new List(listModel);
+ ymContactList.addActionListener(this);
+ ymContactList.setListCellRenderer(new MessengerContactsScreenContactsRenderer(this));
+ } else {
+ ymContactList.setModel(listModel);
+ }
+
+ return ymContactList;
+
+ }
+
+ public Image getYahooMessengerPresenceImage(int state) throws IOException {
+
+ String resourceName = "";
+
+ if (state == Presence.PRESENCE_STATE_BUSY) {
+ resourceName = "Busy";
+ } else if (state == Presence.PRESENCE_STATE_IDLE) {
+ resourceName = "Idle";
+ } else if (state == Presence.PRESENCE_STATE_OFFLINE) {
+ resourceName = "Offline";
+ } else if (state == Presence.PRESENCE_STATE_ONLINE) {
+ resourceName = "Online";
+ }
+
+ resourceName += "16";
+
+ Image image = midlet.getResources().getImage(resourceName);
+
+ return image;
+
+ }
+
+
+ public void actionPerformed(ActionEvent event) {
+
+ if ((event.getSource() == ymContactListPresenceTextArea) ||
+ (event.getSource() == ymContactListPresenceComboBox))
+ {
+
+ Thread t = new Thread() {
+ public void run() {
+
+ ymPresenceMessage = ymContactListPresenceTextArea.getText();
+ ymPresenceState = ((Integer)ymContactListPresenceComboBox.getSelectedItem()).intValue();
+
+ Presence newPresence = new Presence();
+ newPresence.setPresenceState(new Integer(ymPresenceState));
+ newPresence.setPresenceMessage(ymPresenceMessage);
+
+ performSetPresenceTask(newPresence);
+ performGetPresenceTask();
+ ymContactListPresenceTextArea.setText("");
+ }
+ };
+ t.start();
+
+ } else if (event.getSource() == ymContactList) {
+ Thread t = new Thread() {
+ public void run() {
+
+ Contact contact = (Contact)ymContactList.getSelectedItem();
+ midlet.setCurrentChatScreen(contact);
+ midlet.changeApplicationState(MessengerLWUITMidlet.MIDLET_STATE_CHAT_WITH_CONTACT_SCREEN);
+ }
+ };
+ t.start();
+
+ } else {
+
+ Command c = event.getCommand();
+
+ if (c != null) {
+
+ int commandID = c.getId();
+
+ if (commandID == MessengerLWUITMidlet.EXIT_COMMAND) {
+ midlet.exitApplication();
+ }
+ }
+
+ }
+
+ }
+
+ public void propertyChanged(Object id, Object oldValue, Object newValue) {
+
+ if (id.equals(YahooMessengerNotificationManager.NOTIFICATION)) {
+
+ NotificationData n = (NotificationData)newValue;
+ Response[] rlist = n.getResponseList().getResponses();
+
+ for (int i = 0; i < rlist.length; i++) {
+ if (rlist[i] instanceof BuddyInfo) {
+
+ BuddyInfoContact[] buddyInfoContacts =
+ ((BuddyInfo)rlist[i]).getBuddyInfoContactList().getBuddyInfoContacts();
+
+ for (int j = 0; j < buddyInfoContacts.length; j++) {
+
+ BuddyInfoContact b = buddyInfoContacts[j];
+ System.out.println("BUDDY " + b.getSender() + " CHANGED!");
+ }
+
+ }
+ }
+
+
+ }
+
+ }
+
+ public void performSetPresenceTask(Presence presence) {
+
+ SetPresenceCancellableTask getPresenceTask =
+ new SetPresenceCancellableTask(midlet, presence);
+
+ SimpleCancellableTask cTask = new SimpleCancellableTask(getPresenceTask);
+ cTask.run();
+ }
+
+ public void performGetContactTask(String uri, int index) {
+
+ GetContactCancellableTask getContactTask =
+ new GetContactCancellableTask(midlet, uri);
+
+ SimpleCancellableTask cTask = new SimpleCancellableTask(getContactTask);
+ cTask.run();
+
+ Contact c = getContactTask.getContact();
+
+ contacts[index] = c;
+
+ }
+
+ public void performGetContactsTask() {
+
+ GetContactListCancellableTask getContactListTask =
+ new GetContactListCancellableTask(midlet);
+
+ SimpleCancellableTask cTask = new SimpleCancellableTask(getContactListTask);
+ cTask.run();
+
+ contacts = getContactListTask.getContacts();
+
+ }
+
+ public void performGetPresenceTask() {
+
+ GetPresenceCancellableTask getPresenceTask =
+ new GetPresenceCancellableTask(midlet);
+
+ SimpleCancellableTask cTask = new SimpleCancellableTask(getPresenceTask);
+ cTask.run();
+
+ Presence returnedPresence = getPresenceTask.getPresence();
+
+ ymPresenceState = returnedPresence.getPresenceState().intValue();
+ String message = returnedPresence.getPresenceMessage();
+
+ if (message != null)
+ ymPresenceMessage = message;
+ else
+ ymPresenceMessage = " ";
+
+ updatePresenceDisplayInfo();
+
+ }
+
+
+}
79 ...oMessengerExample/build/preprocessed/com/yahoo/messenger/ui/MessengerContactsScreenContactsRenderer.java
@@ -0,0 +1,79 @@
+/**
+ * Copyright (c) 2009-2010, Yahoo! Inc. All rights reserved.
+ * Code licensed under the BSD License:
+ * http://searchmarketing.yahoo.com/developer/docs/license.txt
+ */
+
+package com.yahoo.messenger.ui;
+
+import com.sun.lwuit.Component;
+import com.sun.lwuit.Container;
+import com.sun.lwuit.Label;
+import com.sun.lwuit.List;
+import com.sun.lwuit.layouts.BorderLayout;
+import com.sun.lwuit.layouts.BoxLayout;
+import com.sun.lwuit.list.ListCellRenderer;
+import com.yahoo.messenger.data.json.Contact;
+import com.yahoo.messenger.data.json.Presence;
+import java.io.IOException;
+
+
+public class MessengerContactsScreenContactsRenderer extends Container implements ListCellRenderer {
+
+ private MessengerContactsScreen contactsScreen;
+
+ private Label contactId = new Label("");
+ private Label presenceIcon = new Label("");
+
+ private Label focus = new Label("");
+
+ public MessengerContactsScreenContactsRenderer(MessengerContactsScreen contactsScreen) {
+
+ this.contactsScreen = contactsScreen;
+
+ setLayout(new BorderLayout());
+ addComponent(BorderLayout.WEST, presenceIcon);
+ Container container = new Container(new BoxLayout(BoxLayout.Y_AXIS));
+ contactId.getStyle().setBgTransparency(0);
+ container.addComponent(contactId);
+ addComponent(BorderLayout.CENTER, container);
+
+ focus.getStyle().setBgTransparency(100);
+ }
+
+ public Component getListCellRendererComponent(List list, Object value, int index, boolean isSelected) {
+
+ try {
+
+ Contact contactInList = (Contact) value;
+
+ contactId.setText(contactInList.getId());
+ presenceIcon.setIcon(contactsScreen.getYahooMessengerPresenceImage(Presence.PRESENCE_STATE_OFFLINE));
+
+ Integer presence = contactInList.getPresence().getPresenceState();
+
+ if (presence != null)
+ presenceIcon.setIcon(contactsScreen.getYahooMessengerPresenceImage(presence.intValue()));
+
+ if (isSelected) {
+ setFocus(true);
+ getStyle().setBgTransparency(100);
+ } else {
+ setFocus(false);
+ getStyle().setBgTransparency(0);
+ }
+
+ return this;
+
+ } catch (IOException e) {
+ System.out.println("Internal error: Unable to load image resources");
+ return this;
+ }
+ }
+
+ public Component getListFocusComponent(List list) {
+ return focus;
+ }
+
+
+}
78 ...oMessengerExample/build/preprocessed/com/yahoo/messenger/ui/MessengerContactsScreenPresenceRenderer.java
@@ -0,0 +1,78 @@
+/**
+ * Copyright (c) 2009-2010, Yahoo! Inc. All rights reserved.
+ * Code licensed under the BSD License:
+ * http://searchmarketing.yahoo.com/developer/docs/license.txt
+ */
+
+package com.yahoo.messenger.ui;
+
+import com.sun.lwuit.Component;
+import com.sun.lwuit.Container;
+import com.sun.lwuit.Label;
+import com.sun.lwuit.List;
+import com.sun.lwuit.layouts.BorderLayout;
+import com.sun.lwuit.list.ListCellRenderer;
+import com.yahoo.messenger.data.json.Presence;
+import java.io.IOException;
+
+
+public class MessengerContactsScreenPresenceRenderer extends Container implements ListCellRenderer {
+
+ private MessengerContactsScreen contactsScreen;
+
+ private Label presenceDescription = new Label("");
+ private Label presenceIcon = new Label("");
+
+ private Label focus = new Label("");
+
+ public MessengerContactsScreenPresenceRenderer(MessengerContactsScreen contactsScreen) {
+
+ this.contactsScreen = contactsScreen;
+
+ setLayout(new BorderLayout());
+ addComponent(BorderLayout.WEST, presenceIcon);
+ presenceDescription.getStyle().setBgTransparency(0);
+ addComponent(BorderLayout.CENTER, presenceDescription);
+
+ focus.getStyle().setBgTransparency(100);
+ }
+
+ public Component getListCellRendererComponent(List list, Object value, int index, boolean isSelected) {
+
+ try {
+
+ Integer elementInList = (Integer) value;
+ presenceIcon.setIcon(contactsScreen.getYahooMessengerPresenceImage(elementInList.intValue()));
+
+ if (elementInList.intValue() == Presence.PRESENCE_STATE_OFFLINE) {
+ presenceDescription.setText("Offline");
+ } else if (elementInList.intValue() == Presence.PRESENCE_STATE_ONLINE) {
+ presenceDescription.setText("Online");
+ } else if (elementInList.intValue() == Presence.PRESENCE_STATE_IDLE) {
+ presenceDescription.setText("Idle");
+ } else if (elementInList.intValue() == Presence.PRESENCE_STATE_BUSY) {
+ presenceDescription.setText("Busy");
+ }
+
+ if (isSelected) {
+ setFocus(true);
+ getStyle().setBgTransparency(100);
+ } else {
+ setFocus(false);
+ getStyle().setBgTransparency(0);
+ }
+
+ return this;
+
+ } catch (IOException e) {
+ System.out.println("Internal error: Unable to load image resources");
+ return this;
+ }
+ }
+
+ public Component getListFocusComponent(List list) {
+ return focus;
+ }
+
+
+}
238 YahooMessengerExample/build/preprocessed/com/yahoo/messenger/ui/MessengerLWUITMidlet.java
@@ -0,0 +1,238 @@
+/**
+ * Copyright (c) 2009-2010, Yahoo! Inc. All rights reserved.
+ * Code licensed under the BSD License:
+ * http://searchmarketing.yahoo.com/developer/docs/license.txt
+ */
+
+package com.yahoo.messenger.ui;
+
+import com.sun.lwuit.Command;
+import com.sun.lwuit.Display;
+import com.sun.lwuit.plaf.UIManager;
+import com.sun.lwuit.util.Resources;
+import com.yahoo.messenger.data.json.Contact;
+import com.yahoo.messenger.data.json.Presence;
+import java.io.IOException;
+import java.util.Hashtable;
+import javax.microedition.midlet.MIDlet;
+
+
+public class MessengerLWUITMidlet extends MIDlet {
+
+ public static final int MIDLET_STATE_SPLASH_SCREEN = 10;
+ public static final int MIDLET_STATE_LOGIN_SCREEN = 20;
+ public static final int MIDLET_STATE_LOGGING_IN = 21;
+ public static final int MIDLET_STATE_LOGIN_SUCCESSFUL = 22;
+ public static final int MIDLET_STATE_UPDATING_CONTACTS_AND_PRESENCE = 30;
+ public static final int MIDLET_STATE_CONTACT_SCREEN = 31;
+ public static final int MIDLET_STATE_CHAT_WITH_CONTACT_SCREEN = 40;
+
+ public static final int EXIT_COMMAND = 1;
+ public static final int LOGIN_COMMAND = 2;
+ public static final int DISMISS_COMMAND = 3;
+ public static final int CANCEL_COMMAND = 4;
+ public static final int OKAY_COMMAND = 5;
+ public static final int BACK_COMMAND = 6;
+
+ private Resources resources;
+
+ private int state;
+
+ private Command ymExitCommand;
+ private Command ymLoginCommand;
+ private Command ymDismissCommand;
+ private Command ymCancelCommand;
+ private Command ymOkayCommand;
+ private Command ymBackCommand;
+
+ private MessengerLoginScreen loginScreen;
+ private MessengerSplashScreen splashScreen;
+ private MessengerContactsScreen contactsScreen;
+ private MessengerChatScreen chatScreen;
+
+ private Hashtable chatScreensHashtable;
+
+
+ public void startApp() {
+
+ Display.init(this);
+
+ // Load the resources
+
+ try {
+ resources = Resources.open("/LWUITtheme.res");
+ UIManager.getInstance().setThemeProps(resources.getTheme(resources.getThemeResourceNames()[0]));
+ } catch (IOException ioe) {
+ ioe.printStackTrace();
+ }
+
+ // Initialize the individual screens in the application
+
+ splashScreen = new MessengerSplashScreen(this);
+ contactsScreen = new MessengerContactsScreen(this);
+ loginScreen = new MessengerLoginScreen(this);
+
+ // Initialize the hastable used to store each chat screen, keyed
+ // by the user ID that you are having a chat with.
+
+ chatScreensHashtable = new Hashtable();
+
+ // Start off by displaying the splash screen
+
+ changeApplicationState(MessengerLWUITMidlet.MIDLET_STATE_SPLASH_SCREEN);
+
+ }
+
+ public void pauseApp() {
+
+ }
+
+ public void destroyApp(boolean unconditional) {
+
+ }
+
+
+ public Resources getResources() {
+ return resources;
+ }
+
+
+ public void changeApplicationState(int newState) {
+
+ state = newState;
+
+ if (state == MIDLET_STATE_SPLASH_SCREEN) {
+
+ splashScreen.displayYahooMessengerSplashScreen();
+
+ } else if (state == MIDLET_STATE_LOGIN_SCREEN) {
+
+ loginScreen.displayYahooMessengerLoginScreen();
+
+ } else if (state == MIDLET_STATE_LOGGING_IN) {
+
+ loginScreen.displayYahooMessengerLoginWaitScreen();
+ performLogin();
+
+ } else if (state == MIDLET_STATE_LOGIN_SUCCESSFUL) {
+
+ changeApplicationState(MessengerLWUITMidlet.MIDLET_STATE_UPDATING_CONTACTS_AND_PRESENCE);
+
+ } else if (state == MIDLET_STATE_UPDATING_CONTACTS_AND_PRESENCE) {
+
+ contactsScreen.displayYahooMessengerGetContactsWaitScreen();
+ performGetContacts();
+ changeApplicationState(MessengerLWUITMidlet.MIDLET_STATE_CONTACT_SCREEN);
+
+ } else if (state == MIDLET_STATE_CONTACT_SCREEN) {
+
+ contactsScreen.displayYahooMessengerContactListScreen();
+ performGetMyPresence();
+
+ } else if (state == MIDLET_STATE_CHAT_WITH_CONTACT_SCREEN) {
+
+ if (chatScreen != null)
+ chatScreen.displayYahooMessengerChatScreen();
+
+ }
+ }
+
+ // These are commands that appear with the left and right soft buttons.
+ // Note that Java ME will often group several of them under the "Menu"
+ // soft button on the right side, even if this is not desirable.
+
+
+ public Command getYahooMessengerLoginCommand() {
+
+ if (ymLoginCommand == null) {
+ ymLoginCommand = new Command("Sign In", LOGIN_COMMAND);
+ }
+
+ return ymLoginCommand;
+ }
+
+ public Command getYahooMessengerExitCommand() {
+
+ if (ymExitCommand == null) {
+ ymExitCommand = new Command("Exit", EXIT_COMMAND);
+ }
+
+ return ymExitCommand;
+ }
+
+ public Command getYahooMessengerDismissCommand() {
+
+ if (ymDismissCommand == null) {
+ ymDismissCommand = new Command("Dismiss", DISMISS_COMMAND);
+ }
+
+ return ymDismissCommand;
+ }
+
+ public Command getYahooMessengerCancelCommand() {
+
+ if (ymCancelCommand == null) {
+ ymCancelCommand = new Command("Cancel", CANCEL_COMMAND);
+ }
+
+ return ymCancelCommand;
+ }
+
+ public Command getYahooMessengerBackCommand() {
+
+ if (ymBackCommand == null) {
+ ymBackCommand = new Command("Back", BACK_COMMAND);
+ }
+
+ return ymBackCommand;
+ }
+
+ public Command getYahooMessengerOkayCommand() {
+
+ if (ymOkayCommand == null) {
+ ymOkayCommand = new Command("OK", OKAY_COMMAND);
+ }
+
+ return ymOkayCommand;
+ }
+
+
+ // These are various tasks that are done in response to application
+ // state changes
+
+ public void performLogin() {
+ loginScreen.performLoginTask();
+ }
+
+ public void performGetContacts() {
+ contactsScreen.performGetContactsTask();
+ }
+
+ public void performGetMyPresence() {
+ contactsScreen.performGetPresenceTask();
+ }
+
+ public void performSetMyPresence(Presence presence) {
+ contactsScreen.performSetPresenceTask(presence);
+ }
+
+ public void setCurrentChatScreen(Contact contact) {
+
+ // Attempt to retrieve an existing chat screen from the hashtable,
+ // if it exists already. Otherwise, create a new one.
+
+ if (chatScreensHashtable.containsKey(contact.getId())) {
+ this.chatScreen = (MessengerChatScreen)chatScreensHashtable.get(contact.getId());
+ } else {
+ MessengerChatScreen screen = new MessengerChatScreen(this, contact);
+ chatScreensHashtable.put(contact.getId(), chatScreen);
+ this.chatScreen = screen;
+ }
+ }
+
+ public void exitApplication() {
+ notifyDestroyed();
+ }
+
+
+}
223 YahooMessengerExample/build/preprocessed/com/yahoo/messenger/ui/MessengerLoginScreen.java
@@ -0,0 +1,223 @@
+/**