Let's implement what we have learnt and enhance the Team Twitter classes:
1. Identify the required properties for each class. For
tweetWidget
, we can add the following properties. This code is also available as in the978-1-849513-70-8_03_03.txt
file underChapter 3
in the support files for this book:userName:
This should be a valid username and be of typeString
onlyTime and date: For time and date, we can have two separate properties, and both should be of
String
type
2. Open the
C:\teamtwitter\source\class\teamtwitter\ui\tweetWidget.js
file that you created earlier in this chapter, and add the properties as mentioned in the following code snippet:qx.Class.define("teamtwitter.ui.tweetWidget", { extend : qx.ui.groupbox.GroupBox, /** * Constructor */ construct: function(){ }, /** * Properties */ properties : { userName : { check : "String", init : " " }, time : { check : "String", init : "15:40 Hrs" }, date : { check : "String...