From ccebe22758699e52eed39084519d160f07da1224 Mon Sep 17 00:00:00 2001 From: Ian Watts Date: Thu, 15 Sep 2016 18:22:25 -0600 Subject: [PATCH 01/12] Stuff for lab2. New tweet classes --- app/app.iml | 15 +----- .../cs/lonelytwitter/ImportantTweet.java | 18 ++++++++ .../lonelytwitter/LonelyTwitterActivity.java | 19 ++++++++ .../cs/lonelytwitter/NormalTweet.java | 16 +++++++ .../ca/ualberta/cs/lonelytwitter/Tweet.java | 46 +++++++++++++++++++ .../lonelytwitter/TweetTooLongException.java | 8 ++++ .../ualberta/cs/lonelytwitter/Tweetable.java | 13 ++++++ gradlew | 10 ++-- lonelyTwitter.iml | 2 +- 9 files changed, 125 insertions(+), 22 deletions(-) create mode 100644 app/src/main/java/ca/ualberta/cs/lonelytwitter/ImportantTweet.java create mode 100644 app/src/main/java/ca/ualberta/cs/lonelytwitter/NormalTweet.java create mode 100644 app/src/main/java/ca/ualberta/cs/lonelytwitter/Tweet.java create mode 100644 app/src/main/java/ca/ualberta/cs/lonelytwitter/TweetTooLongException.java create mode 100644 app/src/main/java/ca/ualberta/cs/lonelytwitter/Tweetable.java diff --git a/app/app.iml b/app/app.iml index db23a3c322..ed7b4fca8b 100644 --- a/app/app.iml +++ b/app/app.iml @@ -1,5 +1,5 @@ - + @@ -65,21 +65,8 @@ - - - - - - - - - - - - - diff --git a/app/src/main/java/ca/ualberta/cs/lonelytwitter/ImportantTweet.java b/app/src/main/java/ca/ualberta/cs/lonelytwitter/ImportantTweet.java new file mode 100644 index 0000000000..06a7094808 --- /dev/null +++ b/app/src/main/java/ca/ualberta/cs/lonelytwitter/ImportantTweet.java @@ -0,0 +1,18 @@ +package ca.ualberta.cs.lonelytwitter; + +/** + * Created by watts1 on 9/15/16. + */ +public class ImportantTweet extends Tweet{ + + public ImportantTweet(String message){ + super(message); + } + + @Override + public Boolean isImportant(){ + return Boolean.TRUE; + } + + +} diff --git a/app/src/main/java/ca/ualberta/cs/lonelytwitter/LonelyTwitterActivity.java b/app/src/main/java/ca/ualberta/cs/lonelytwitter/LonelyTwitterActivity.java index cd5feb6966..782c8fb39f 100644 --- a/app/src/main/java/ca/ualberta/cs/lonelytwitter/LonelyTwitterActivity.java +++ b/app/src/main/java/ca/ualberta/cs/lonelytwitter/LonelyTwitterActivity.java @@ -39,6 +39,25 @@ public void onCreate(Bundle savedInstanceState) { public void onClick(View v) { setResult(RESULT_OK); String text = bodyText.getText().toString(); + + + Date theDate = new Date(); + Tweet newTweet = new NormalTweet(text); + try { + newTweet.setMessage("test"); + } catch (TweetTooLongException e) { + e.printStackTrace(); + } + newTweet.getMessage(); + + ImportantTweet newImportantTweet = new ImportantTweet(text); + newImportantTweet.getMessage(); + + ArrayList tweetList = new ArrayList(); + tweetList.add(newTweet); + tweetList.add(newImportantTweet); + + saveInFile(text, new Date(System.currentTimeMillis())); finish(); diff --git a/app/src/main/java/ca/ualberta/cs/lonelytwitter/NormalTweet.java b/app/src/main/java/ca/ualberta/cs/lonelytwitter/NormalTweet.java new file mode 100644 index 0000000000..a3ea715675 --- /dev/null +++ b/app/src/main/java/ca/ualberta/cs/lonelytwitter/NormalTweet.java @@ -0,0 +1,16 @@ +package ca.ualberta.cs.lonelytwitter; + +/** + * Created by watts1 on 9/15/16. + */ +public class NormalTweet extends Tweet { + + public NormalTweet(String message) { + super(message); + } + + @Override + public Boolean isImportant() { + return Boolean.FALSE; + } +} diff --git a/app/src/main/java/ca/ualberta/cs/lonelytwitter/Tweet.java b/app/src/main/java/ca/ualberta/cs/lonelytwitter/Tweet.java new file mode 100644 index 0000000000..0dff5e9c4a --- /dev/null +++ b/app/src/main/java/ca/ualberta/cs/lonelytwitter/Tweet.java @@ -0,0 +1,46 @@ +package ca.ualberta.cs.lonelytwitter; + +import java.util.Date; + +/** + * Created by watts1 on 9/15/16. + */ +public abstract class Tweet implements Tweetable { + private String message; + private Date date; + + public Tweet(String message){ + this.message = message; + this.date = new Date(); + } + + public Tweet(String message, Date date){ + this.message = message; + this.date = date; + } + + + public abstract Boolean isImportant(); + + + + public void setMessage(String message) throws TweetTooLongException { + if (message.length() > 140){ + //Do Something! + throw new TweetTooLongException(); + } + this.message = message; + } + + public void setDate(Date date) { + this.date = date; + } + + public String getMessage() { + return message; + } + + public Date getDate() { + return date; + } +} diff --git a/app/src/main/java/ca/ualberta/cs/lonelytwitter/TweetTooLongException.java b/app/src/main/java/ca/ualberta/cs/lonelytwitter/TweetTooLongException.java new file mode 100644 index 0000000000..23373309bc --- /dev/null +++ b/app/src/main/java/ca/ualberta/cs/lonelytwitter/TweetTooLongException.java @@ -0,0 +1,8 @@ +package ca.ualberta.cs.lonelytwitter; + +/** + * Created by watts1 on 9/15/16. + */ +public class TweetTooLongException extends Exception{ + +} diff --git a/app/src/main/java/ca/ualberta/cs/lonelytwitter/Tweetable.java b/app/src/main/java/ca/ualberta/cs/lonelytwitter/Tweetable.java new file mode 100644 index 0000000000..48a6185400 --- /dev/null +++ b/app/src/main/java/ca/ualberta/cs/lonelytwitter/Tweetable.java @@ -0,0 +1,13 @@ +package ca.ualberta.cs.lonelytwitter; + + +import java.util.Date; + +/** + * Created by watts1 on 9/15/16. + */ +public interface Tweetable { + public String getMessage(); + public Date getDate(); + +} diff --git a/gradlew b/gradlew index 91a7e269e1..9d82f78915 100755 --- a/gradlew +++ b/gradlew @@ -42,11 +42,6 @@ case "`uname`" in ;; esac -# For Cygwin, ensure paths are in UNIX format before anything is touched. -if $cygwin ; then - [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"` -fi - # Attempt to set APP_HOME # Resolve links: $0 may be a link PRG="$0" @@ -61,9 +56,9 @@ while [ -h "$PRG" ] ; do fi done SAVED="`pwd`" -cd "`dirname \"$PRG\"`/" >&- +cd "`dirname \"$PRG\"`/" >/dev/null APP_HOME="`pwd -P`" -cd "$SAVED" >&- +cd "$SAVED" >/dev/null CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar @@ -114,6 +109,7 @@ fi if $cygwin ; then APP_HOME=`cygpath --path --mixed "$APP_HOME"` CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` + JAVACMD=`cygpath --unix "$JAVACMD"` # We build the pattern for arguments to be converted via cygpath ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` diff --git a/lonelyTwitter.iml b/lonelyTwitter.iml index 8c831df98f..c8cb2a390b 100644 --- a/lonelyTwitter.iml +++ b/lonelyTwitter.iml @@ -1,5 +1,5 @@ - + From a3cfdcc11aea10e48708b4174cb60acfc8587d6b Mon Sep 17 00:00:00 2001 From: Alex Makepeace Date: Thu, 22 Sep 2016 17:44:35 -0600 Subject: [PATCH 02/12] Added toString method to Tweet object, made LonelyTwitterActivity more OO. --- app/app.iml | 79 ------------------- .../lonelytwitter/LonelyTwitterActivity.java | 28 ++----- .../ca/ualberta/cs/lonelytwitter/Tweet.java | 4 + 3 files changed, 9 insertions(+), 102 deletions(-) delete mode 100644 app/app.iml diff --git a/app/app.iml b/app/app.iml deleted file mode 100644 index ed7b4fca8b..0000000000 --- a/app/app.iml +++ /dev/null @@ -1,79 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/app/src/main/java/ca/ualberta/cs/lonelytwitter/LonelyTwitterActivity.java b/app/src/main/java/ca/ualberta/cs/lonelytwitter/LonelyTwitterActivity.java index 782c8fb39f..a7b83a3322 100644 --- a/app/src/main/java/ca/ualberta/cs/lonelytwitter/LonelyTwitterActivity.java +++ b/app/src/main/java/ca/ualberta/cs/lonelytwitter/LonelyTwitterActivity.java @@ -23,6 +23,8 @@ public class LonelyTwitterActivity extends Activity { private static final String FILENAME = "file.sav"; private EditText bodyText; private ListView oldTweetsList; + private ArrayList tweetList = new ArrayList(); + private ArrayAdapter adapter; /** Called when the activity is first created. */ @Override @@ -39,28 +41,9 @@ public void onCreate(Bundle savedInstanceState) { public void onClick(View v) { setResult(RESULT_OK); String text = bodyText.getText().toString(); - - - Date theDate = new Date(); Tweet newTweet = new NormalTweet(text); - try { - newTweet.setMessage("test"); - } catch (TweetTooLongException e) { - e.printStackTrace(); - } - newTweet.getMessage(); - - ImportantTweet newImportantTweet = new ImportantTweet(text); - newImportantTweet.getMessage(); - - ArrayList tweetList = new ArrayList(); tweetList.add(newTweet); - tweetList.add(newImportantTweet); - - - saveInFile(text, new Date(System.currentTimeMillis())); - finish(); - + adapter.notifyDataSetChanged(); } }); } @@ -69,9 +52,8 @@ public void onClick(View v) { protected void onStart() { // TODO Auto-generated method stub super.onStart(); - String[] tweets = loadFromFile(); - ArrayAdapter adapter = new ArrayAdapter(this, - R.layout.list_item, tweets); + adapter = new ArrayAdapter(this, + R.layout.list_item, tweetList); oldTweetsList.setAdapter(adapter); } diff --git a/app/src/main/java/ca/ualberta/cs/lonelytwitter/Tweet.java b/app/src/main/java/ca/ualberta/cs/lonelytwitter/Tweet.java index 0dff5e9c4a..9f10ee8dd8 100644 --- a/app/src/main/java/ca/ualberta/cs/lonelytwitter/Tweet.java +++ b/app/src/main/java/ca/ualberta/cs/lonelytwitter/Tweet.java @@ -19,6 +19,10 @@ public Tweet(String message, Date date){ this.date = date; } + @Override + public String toString(){ + return message; + } public abstract Boolean isImportant(); From 36e68688bb1a40e63918c556b61d347885cb0c90 Mon Sep 17 00:00:00 2001 From: Alex Makepeace Date: Thu, 22 Sep 2016 18:16:28 -0600 Subject: [PATCH 03/12] Added Gson implmentation for saving and loading. --- .../lonelytwitter/LonelyTwitterActivity.java | 40 ++++++++++--------- 1 file changed, 22 insertions(+), 18 deletions(-) diff --git a/app/src/main/java/ca/ualberta/cs/lonelytwitter/LonelyTwitterActivity.java b/app/src/main/java/ca/ualberta/cs/lonelytwitter/LonelyTwitterActivity.java index a7b83a3322..dd8da9df02 100644 --- a/app/src/main/java/ca/ualberta/cs/lonelytwitter/LonelyTwitterActivity.java +++ b/app/src/main/java/ca/ualberta/cs/lonelytwitter/LonelyTwitterActivity.java @@ -6,6 +6,8 @@ import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStreamReader; +import java.io.OutputStreamWriter; +import java.lang.reflect.Type; import java.util.ArrayList; import java.util.Date; @@ -18,6 +20,9 @@ import android.widget.EditText; import android.widget.ListView; +import com.google.gson.Gson; +import com.google.gson.reflect.TypeToken; + public class LonelyTwitterActivity extends Activity { private static final String FILENAME = "file.sav"; @@ -44,6 +49,7 @@ public void onClick(View v) { Tweet newTweet = new NormalTweet(text); tweetList.add(newTweet); adapter.notifyDataSetChanged(); + saveInFile(); } }); } @@ -57,40 +63,38 @@ protected void onStart() { oldTweetsList.setAdapter(adapter); } - private String[] loadFromFile() { + private void loadFromFile() { ArrayList tweets = new ArrayList(); try { FileInputStream fis = openFileInput(FILENAME); BufferedReader in = new BufferedReader(new InputStreamReader(fis)); - String line = in.readLine(); - while (line != null) { - tweets.add(line); - line = in.readLine(); - } - + Gson gson = new Gson(); + //Code taken from http://stackoverflow.com/questions/12384064/gson-convert-from-json-to-a-typed-arraylistt Sept.22,2016 + Type listType = new TypeToken>(){}.getType(); + tweetList = gson.fromJson(in, listType); } catch (FileNotFoundException e) { // TODO Auto-generated catch block - e.printStackTrace(); + throw new RuntimeException(); } catch (IOException e) { // TODO Auto-generated catch block - e.printStackTrace(); + throw new RuntimeException(); } - return tweets.toArray(new String[tweets.size()]); } - private void saveInFile(String text, Date date) { + private void saveInFile() { try { - FileOutputStream fos = openFileOutput(FILENAME, - Context.MODE_APPEND); - fos.write(new String(date.toString() + " | " + text) - .getBytes()); - fos.close(); + + FileOutputStream fos = openFileOutput(FILENAME,0); + OutputStreamWriter writer = new OutputStreamWriter(fos); + Gson gson = new Gson(); + gson.toJson(tweetList, writer); + writer.flush(); } catch (FileNotFoundException e) { // TODO Auto-generated catch block - e.printStackTrace(); + throw new RuntimeException(); } catch (IOException e) { // TODO Auto-generated catch block - e.printStackTrace(); + throw new RuntimeException(); } } } \ No newline at end of file From a646943982cbfeb72339f1fe3032ded7261a2ca2 Mon Sep 17 00:00:00 2001 From: Alex Makepeace Date: Thu, 22 Sep 2016 18:28:38 -0600 Subject: [PATCH 04/12] Added build files. --- .idea/.name | 1 + .idea/compiler.xml | 22 + .idea/copyright/profiles_settings.xml | 3 + .idea/gradle.xml | 18 + .idea/libraries/gson_2_7.xml | 11 + .idea/misc.xml | 46 + .idea/modules.xml | 9 + .idea/runConfigurations.xml | 12 + .idea/vcs.xml | 6 + .idea/workspace.xml | 1817 ++++++++++++++++++++++ app/build.gradle | 5 +- gradle/wrapper/gradle-wrapper.properties | 6 + 12 files changed, 1955 insertions(+), 1 deletion(-) create mode 100644 .idea/.name create mode 100644 .idea/compiler.xml create mode 100644 .idea/copyright/profiles_settings.xml create mode 100644 .idea/gradle.xml create mode 100644 .idea/libraries/gson_2_7.xml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/runConfigurations.xml create mode 100644 .idea/vcs.xml create mode 100644 .idea/workspace.xml create mode 100644 gradle/wrapper/gradle-wrapper.properties diff --git a/.idea/.name b/.idea/.name new file mode 100644 index 0000000000..7084f5aced --- /dev/null +++ b/.idea/.name @@ -0,0 +1 @@ +lonelyTwitter \ No newline at end of file diff --git a/.idea/compiler.xml b/.idea/compiler.xml new file mode 100644 index 0000000000..96cc43efa6 --- /dev/null +++ b/.idea/compiler.xml @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/copyright/profiles_settings.xml b/.idea/copyright/profiles_settings.xml new file mode 100644 index 0000000000..e7bedf3377 --- /dev/null +++ b/.idea/copyright/profiles_settings.xml @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/.idea/gradle.xml b/.idea/gradle.xml new file mode 100644 index 0000000000..1bbc21dc23 --- /dev/null +++ b/.idea/gradle.xml @@ -0,0 +1,18 @@ + + + + + + \ No newline at end of file diff --git a/.idea/libraries/gson_2_7.xml b/.idea/libraries/gson_2_7.xml new file mode 100644 index 0000000000..22607550e1 --- /dev/null +++ b/.idea/libraries/gson_2_7.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000000..3342877904 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,46 @@ + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000000..c15affbaa2 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/runConfigurations.xml b/.idea/runConfigurations.xml new file mode 100644 index 0000000000..7f68460d8b --- /dev/null +++ b/.idea/runConfigurations.xml @@ -0,0 +1,12 @@ + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000000..35eb1ddfbb --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml new file mode 100644 index 0000000000..917c268c65 --- /dev/null +++ b/.idea/workspace.xml @@ -0,0 +1,1817 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1474586213182 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/build.gradle b/app/build.gradle index 1cc9ef1961..38e4ef9533 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -1,5 +1,4 @@ apply plugin: 'com.android.application' - android { compileSdkVersion 18 buildToolsVersion "22.0.1" @@ -21,3 +20,7 @@ android { } } } + +dependencies { + compile 'com.google.code.gson:gson:2.7' +} \ No newline at end of file diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000000..f23df6e463 --- /dev/null +++ b/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,6 @@ +#Wed Oct 21 11:34:03 PDT 2015 +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-2.8-all.zip From 19b622ac003fde6e51e5023ad5d48b728b0afe58 Mon Sep 17 00:00:00 2001 From: Alex Makepeace Date: Thu, 22 Sep 2016 18:45:21 -0600 Subject: [PATCH 05/12] Added a missing line of code. --- .idea/workspace.xml | 10 +++++----- .../cs/lonelytwitter/LonelyTwitterActivity.java | 1 + 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 917c268c65..3dfe6bebb6 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -6,7 +6,7 @@ - + @@ -39,8 +39,8 @@ - - + + @@ -1805,8 +1805,8 @@ - - + + diff --git a/app/src/main/java/ca/ualberta/cs/lonelytwitter/LonelyTwitterActivity.java b/app/src/main/java/ca/ualberta/cs/lonelytwitter/LonelyTwitterActivity.java index dd8da9df02..388983e205 100644 --- a/app/src/main/java/ca/ualberta/cs/lonelytwitter/LonelyTwitterActivity.java +++ b/app/src/main/java/ca/ualberta/cs/lonelytwitter/LonelyTwitterActivity.java @@ -58,6 +58,7 @@ public void onClick(View v) { protected void onStart() { // TODO Auto-generated method stub super.onStart(); + loadFromFile(); adapter = new ArrayAdapter(this, R.layout.list_item, tweetList); oldTweetsList.setAdapter(adapter); From ab113fe157df40bccf7940ac72aaabf806611a8e Mon Sep 17 00:00:00 2001 From: Alex Makepeace Date: Thu, 22 Sep 2016 20:10:25 -0600 Subject: [PATCH 06/12] Solved file exception. --- .idea/workspace.xml | 8 ++++---- .../ualberta/cs/lonelytwitter/LonelyTwitterActivity.java | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 3dfe6bebb6..66129f52aa 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -39,8 +39,8 @@ - - + + @@ -1805,8 +1805,8 @@ - - + + diff --git a/app/src/main/java/ca/ualberta/cs/lonelytwitter/LonelyTwitterActivity.java b/app/src/main/java/ca/ualberta/cs/lonelytwitter/LonelyTwitterActivity.java index 388983e205..301a19502e 100644 --- a/app/src/main/java/ca/ualberta/cs/lonelytwitter/LonelyTwitterActivity.java +++ b/app/src/main/java/ca/ualberta/cs/lonelytwitter/LonelyTwitterActivity.java @@ -75,7 +75,7 @@ private void loadFromFile() { tweetList = gson.fromJson(in, listType); } catch (FileNotFoundException e) { // TODO Auto-generated catch block - throw new RuntimeException(); + tweetList = new ArrayList(); } catch (IOException e) { // TODO Auto-generated catch block throw new RuntimeException(); From 611a45c55711a3d898b8158d2f510e63d2aaef05 Mon Sep 17 00:00:00 2001 From: Alex Makepeace Date: Thu, 29 Sep 2016 17:45:03 -0600 Subject: [PATCH 07/12] Added test methods and test case for TweetList. --- .idea/workspace.xml | 186 ++++++++++++++---- .../cs/lonelytwitter/TweetListTest.java | 43 ++++ .../ualberta/cs/lonelytwitter/TweetList.java | 30 +++ 3 files changed, 223 insertions(+), 36 deletions(-) create mode 100644 app/src/androidTest/java/ca/ualberta/cs/lonelytwitter/TweetListTest.java create mode 100644 app/src/main/java/ca/ualberta/cs/lonelytwitter/TweetList.java diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 66129f52aa..fda739d189 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -5,7 +5,6 @@ - @@ -36,13 +35,44 @@ - + - + + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + @@ -63,6 +93,13 @@ + + + @@ -1478,6 +1515,8 @@ @@ -1485,10 +1524,9 @@ - @@ -1513,10 +1551,6 @@ - - - - @@ -1548,6 +1582,10 @@ @@ -1569,6 +1607,10 @@ + + + + @@ -1580,7 +1622,27 @@ - + + + + - + + + + + + + - + - - - - - - - + + + + + + + - - - - - - - - + + + + + + + + - - + + - + + + - - @@ -1792,6 +1860,25 @@ + + + + + + + + + + + + + + + + + + + @@ -1805,10 +1892,37 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + diff --git a/app/src/androidTest/java/ca/ualberta/cs/lonelytwitter/TweetListTest.java b/app/src/androidTest/java/ca/ualberta/cs/lonelytwitter/TweetListTest.java new file mode 100644 index 0000000000..9e4191857a --- /dev/null +++ b/app/src/androidTest/java/ca/ualberta/cs/lonelytwitter/TweetListTest.java @@ -0,0 +1,43 @@ +package ca.ualberta.cs.lonelytwitter; + +import android.test.ActivityInstrumentationTestCase2; + +/** + * Created by makepeac on 9/29/16. + */ +public class TweetListTest extends ActivityInstrumentationTestCase2 { + + public TweetListTest(){ + super(ca.ualberta.cs.lonelytwitter.LonelyTwitterActivity.class); + } + + public void testAddTweet(){ + TweetList tweets = new TweetList(); + Tweet tweet = new NormalTweet("adding tweet"); + tweets.add(tweet); + assertTrue(tweets.hasTweet(tweet)); + } + + public void testDelete(){ + TweetList list = new TweetList(); + Tweet tweet = new NormalTweet("test"); + list.add(tweet); + list.delete(tweet); + assertFalse(list.hasTweet(tweet)); + } + + public void testGetTweet(){ + TweetList tweets = new TweetList(); + Tweet tweet = new NormalTweet("test"); + tweets.add(tweet); + Tweet returnedTweet = tweets.getTweet(0); + assertEquals(returnedTweet.getMessage(), tweet.getMessage()); + } + + public void testHasTweet(){ + TweetList list = new TweetList(); + Tweet tweet = new NormalTweet("test"); + list.add(tweet); + assertTrue(list.hasTweet(tweet)); + } +} diff --git a/app/src/main/java/ca/ualberta/cs/lonelytwitter/TweetList.java b/app/src/main/java/ca/ualberta/cs/lonelytwitter/TweetList.java new file mode 100644 index 0000000000..f393a153bc --- /dev/null +++ b/app/src/main/java/ca/ualberta/cs/lonelytwitter/TweetList.java @@ -0,0 +1,30 @@ +package ca.ualberta.cs.lonelytwitter; + +import java.util.ArrayList; + +/** + * Created by makepeac on 9/29/16. + */ +public class TweetList { + private ArrayList tweets = new ArrayList(); + + public TweetList(){ + + } + + public Tweet getTweet(int index){ + return tweets.get(index); + } + + public boolean hasTweet(Tweet tweet){ + return tweets.contains(tweet); + } + + public void add(Tweet tweet) { + tweets.add(tweet); + } + + public void delete(Tweet tweet) { + tweets.remove(tweet); + } +} From 5339f4c5785b838a740927aa787775876797f286 Mon Sep 17 00:00:00 2001 From: alisajedi Date: Tue, 4 Oct 2016 14:01:41 -0600 Subject: [PATCH 08/12] Starting for Javadoc --- .idea/misc.xml | 18 + .idea/vcs.xml | 2 +- .idea/workspace.xml | 272 +++++----- .../cs/lonelytwitter/TweetListTest.java | 2 +- .../cs/lonelytwitter/ImportantTweet.java | 3 - .../lonelytwitter/LonelyTwitterActivity.java | 17 +- .../cs/lonelytwitter/NormalTweet.java | 3 - .../ca/ualberta/cs/lonelytwitter/Tweet.java | 4 - .../ualberta/cs/lonelytwitter/TweetList.java | 3 - .../lonelytwitter/TweetTooLongException.java | 3 - .../ualberta/cs/lonelytwitter/Tweetable.java | 4 +- .../cs/lonelytwitter/package-info.java | 4 + app/src/overview.html~ | 8 + app/src/overview.txt~ | 0 docs/allclasses-frame.html | 26 + docs/allclasses-noframe.html | 26 + .../cs/lonelytwitter/BuildConfig.html | 332 ++++++++++++ .../cs/lonelytwitter/ImportantTweet.html | 278 ++++++++++ .../lonelytwitter/LonelyTwitterActivity.html | 457 +++++++++++++++++ .../LonelyTwitterActivityTest.html | 263 ++++++++++ .../cs/lonelytwitter/NormalTweet.html | 278 ++++++++++ docs/ca/ualberta/cs/lonelytwitter/R.attr.html | 230 +++++++++ .../ualberta/cs/lonelytwitter/R.drawable.html | 267 ++++++++++ docs/ca/ualberta/cs/lonelytwitter/R.html | 261 ++++++++++ docs/ca/ualberta/cs/lonelytwitter/R.id.html | 337 +++++++++++++ .../ualberta/cs/lonelytwitter/R.layout.html | 281 +++++++++++ .../ualberta/cs/lonelytwitter/R.string.html | 309 ++++++++++++ docs/ca/ualberta/cs/lonelytwitter/Tweet.html | 427 ++++++++++++++++ .../ualberta/cs/lonelytwitter/TweetList.html | 329 ++++++++++++ .../cs/lonelytwitter/TweetListTest.html | 299 +++++++++++ .../lonelytwitter/TweetTooLongException.html | 248 +++++++++ .../ualberta/cs/lonelytwitter/Tweetable.html | 221 ++++++++ .../lonelytwitter/class-use/BuildConfig.html | 113 +++++ .../class-use/ImportantTweet.html | 113 +++++ .../class-use/LonelyTwitterActivity.html | 113 +++++ .../class-use/LonelyTwitterActivityTest.html | 113 +++++ .../lonelytwitter/class-use/NormalTweet.html | 113 +++++ .../cs/lonelytwitter/class-use/R.attr.html | 113 +++++ .../lonelytwitter/class-use/R.drawable.html | 113 +++++ .../cs/lonelytwitter/class-use/R.html | 113 +++++ .../cs/lonelytwitter/class-use/R.id.html | 113 +++++ .../cs/lonelytwitter/class-use/R.layout.html | 113 +++++ .../cs/lonelytwitter/class-use/R.string.html | 113 +++++ .../cs/lonelytwitter/class-use/Tweet.html | 193 +++++++ .../cs/lonelytwitter/class-use/TweetList.html | 113 +++++ .../class-use/TweetListTest.html | 113 +++++ .../class-use/TweetTooLongException.html | 140 ++++++ .../cs/lonelytwitter/class-use/Tweetable.html | 148 ++++++ .../cs/lonelytwitter/package-frame.html | 33 ++ .../cs/lonelytwitter/package-summary.html | 202 ++++++++ .../cs/lonelytwitter/package-tree.html | 156 ++++++ .../cs/lonelytwitter/package-use.html | 139 +++++ docs/constant-values.html | 142 ++++++ docs/deprecated-list.html | 113 +++++ docs/help-doc.html | 214 ++++++++ docs/index-files/index-1.html | 120 +++++ docs/index-files/index-10.html | 118 +++++ docs/index-files/index-11.html | 120 +++++ docs/index-files/index-12.html | 124 +++++ docs/index-files/index-13.html | 120 +++++ docs/index-files/index-14.html | 126 +++++ docs/index-files/index-15.html | 162 ++++++ docs/index-files/index-16.html | 120 +++++ docs/index-files/index-2.html | 118 +++++ docs/index-files/index-3.html | 120 +++++ docs/index-files/index-4.html | 120 +++++ docs/index-files/index-5.html | 120 +++++ docs/index-files/index-6.html | 126 +++++ docs/index-files/index-7.html | 118 +++++ docs/index-files/index-8.html | 128 +++++ docs/index-files/index-9.html | 130 +++++ docs/index.html | 71 +++ docs/overview-tree.html | 160 ++++++ docs/package-list | 1 + docs/resources/background.gif | Bin 0 -> 2313 bytes docs/resources/tab.gif | Bin 0 -> 291 bytes docs/resources/titlebar.gif | Bin 0 -> 10701 bytes docs/resources/titlebar_end.gif | Bin 0 -> 849 bytes docs/serialized-form.html | 126 +++++ docs/stylesheet.css | 474 ++++++++++++++++++ 80 files changed, 10807 insertions(+), 176 deletions(-) create mode 100644 app/src/main/java/ca/ualberta/cs/lonelytwitter/package-info.java create mode 100644 app/src/overview.html~ create mode 100644 app/src/overview.txt~ create mode 100644 docs/allclasses-frame.html create mode 100644 docs/allclasses-noframe.html create mode 100644 docs/ca/ualberta/cs/lonelytwitter/BuildConfig.html create mode 100644 docs/ca/ualberta/cs/lonelytwitter/ImportantTweet.html create mode 100644 docs/ca/ualberta/cs/lonelytwitter/LonelyTwitterActivity.html create mode 100644 docs/ca/ualberta/cs/lonelytwitter/LonelyTwitterActivityTest.html create mode 100644 docs/ca/ualberta/cs/lonelytwitter/NormalTweet.html create mode 100644 docs/ca/ualberta/cs/lonelytwitter/R.attr.html create mode 100644 docs/ca/ualberta/cs/lonelytwitter/R.drawable.html create mode 100644 docs/ca/ualberta/cs/lonelytwitter/R.html create mode 100644 docs/ca/ualberta/cs/lonelytwitter/R.id.html create mode 100644 docs/ca/ualberta/cs/lonelytwitter/R.layout.html create mode 100644 docs/ca/ualberta/cs/lonelytwitter/R.string.html create mode 100644 docs/ca/ualberta/cs/lonelytwitter/Tweet.html create mode 100644 docs/ca/ualberta/cs/lonelytwitter/TweetList.html create mode 100644 docs/ca/ualberta/cs/lonelytwitter/TweetListTest.html create mode 100644 docs/ca/ualberta/cs/lonelytwitter/TweetTooLongException.html create mode 100644 docs/ca/ualberta/cs/lonelytwitter/Tweetable.html create mode 100644 docs/ca/ualberta/cs/lonelytwitter/class-use/BuildConfig.html create mode 100644 docs/ca/ualberta/cs/lonelytwitter/class-use/ImportantTweet.html create mode 100644 docs/ca/ualberta/cs/lonelytwitter/class-use/LonelyTwitterActivity.html create mode 100644 docs/ca/ualberta/cs/lonelytwitter/class-use/LonelyTwitterActivityTest.html create mode 100644 docs/ca/ualberta/cs/lonelytwitter/class-use/NormalTweet.html create mode 100644 docs/ca/ualberta/cs/lonelytwitter/class-use/R.attr.html create mode 100644 docs/ca/ualberta/cs/lonelytwitter/class-use/R.drawable.html create mode 100644 docs/ca/ualberta/cs/lonelytwitter/class-use/R.html create mode 100644 docs/ca/ualberta/cs/lonelytwitter/class-use/R.id.html create mode 100644 docs/ca/ualberta/cs/lonelytwitter/class-use/R.layout.html create mode 100644 docs/ca/ualberta/cs/lonelytwitter/class-use/R.string.html create mode 100644 docs/ca/ualberta/cs/lonelytwitter/class-use/Tweet.html create mode 100644 docs/ca/ualberta/cs/lonelytwitter/class-use/TweetList.html create mode 100644 docs/ca/ualberta/cs/lonelytwitter/class-use/TweetListTest.html create mode 100644 docs/ca/ualberta/cs/lonelytwitter/class-use/TweetTooLongException.html create mode 100644 docs/ca/ualberta/cs/lonelytwitter/class-use/Tweetable.html create mode 100644 docs/ca/ualberta/cs/lonelytwitter/package-frame.html create mode 100644 docs/ca/ualberta/cs/lonelytwitter/package-summary.html create mode 100644 docs/ca/ualberta/cs/lonelytwitter/package-tree.html create mode 100644 docs/ca/ualberta/cs/lonelytwitter/package-use.html create mode 100644 docs/constant-values.html create mode 100644 docs/deprecated-list.html create mode 100644 docs/help-doc.html create mode 100644 docs/index-files/index-1.html create mode 100644 docs/index-files/index-10.html create mode 100644 docs/index-files/index-11.html create mode 100644 docs/index-files/index-12.html create mode 100644 docs/index-files/index-13.html create mode 100644 docs/index-files/index-14.html create mode 100644 docs/index-files/index-15.html create mode 100644 docs/index-files/index-16.html create mode 100644 docs/index-files/index-2.html create mode 100644 docs/index-files/index-3.html create mode 100644 docs/index-files/index-4.html create mode 100644 docs/index-files/index-5.html create mode 100644 docs/index-files/index-6.html create mode 100644 docs/index-files/index-7.html create mode 100644 docs/index-files/index-8.html create mode 100644 docs/index-files/index-9.html create mode 100644 docs/index.html create mode 100644 docs/overview-tree.html create mode 100644 docs/package-list create mode 100644 docs/resources/background.gif create mode 100644 docs/resources/tab.gif create mode 100644 docs/resources/titlebar.gif create mode 100644 docs/resources/titlebar_end.gif create mode 100644 docs/serialized-form.html create mode 100644 docs/stylesheet.css diff --git a/.idea/misc.xml b/.idea/misc.xml index 3342877904..40cae9e35a 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -3,6 +3,24 @@ + + - - - - - + + - + - - + + - - + + + + - + - + - - - - - - - - - - - - - - - - - - - + - - + + - - + + + + + + + + + + + + + + Android API 18 Platform + + + + + + + \ No newline at end of file diff --git a/app/src/androidTest/java/ca/ualberta/cs/lonelytwitter/TweetListTest.java b/app/src/androidTest/java/ca/ualberta/cs/lonelytwitter/TweetListTest.java index 9e4191857a..cb8abc4a6f 100644 --- a/app/src/androidTest/java/ca/ualberta/cs/lonelytwitter/TweetListTest.java +++ b/app/src/androidTest/java/ca/ualberta/cs/lonelytwitter/TweetListTest.java @@ -27,7 +27,7 @@ public void testDelete(){ } public void testGetTweet(){ - TweetList tweets = new TweetList(); + TweetList tweets = new TweetList(); // Tweet tweet = new NormalTweet("test"); tweets.add(tweet); Tweet returnedTweet = tweets.getTweet(0); diff --git a/app/src/main/java/ca/ualberta/cs/lonelytwitter/ImportantTweet.java b/app/src/main/java/ca/ualberta/cs/lonelytwitter/ImportantTweet.java index 06a7094808..b80c375e50 100644 --- a/app/src/main/java/ca/ualberta/cs/lonelytwitter/ImportantTweet.java +++ b/app/src/main/java/ca/ualberta/cs/lonelytwitter/ImportantTweet.java @@ -1,8 +1,5 @@ package ca.ualberta.cs.lonelytwitter; -/** - * Created by watts1 on 9/15/16. - */ public class ImportantTweet extends Tweet{ public ImportantTweet(String message){ diff --git a/app/src/main/java/ca/ualberta/cs/lonelytwitter/LonelyTwitterActivity.java b/app/src/main/java/ca/ualberta/cs/lonelytwitter/LonelyTwitterActivity.java index 301a19502e..86f7b07293 100644 --- a/app/src/main/java/ca/ualberta/cs/lonelytwitter/LonelyTwitterActivity.java +++ b/app/src/main/java/ca/ualberta/cs/lonelytwitter/LonelyTwitterActivity.java @@ -26,12 +26,12 @@ public class LonelyTwitterActivity extends Activity { private static final String FILENAME = "file.sav"; + private enum Ordering {DATE_ASCENDING, DATE_DESCENDING, TEXT_ASCENDING, TEXT_DESCENDING}; private EditText bodyText; private ListView oldTweetsList; private ArrayList tweetList = new ArrayList(); private ArrayAdapter adapter; - - /** Called when the activity is first created. */ + @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); @@ -46,6 +46,7 @@ public void onCreate(Bundle savedInstanceState) { public void onClick(View v) { setResult(RESULT_OK); String text = bodyText.getText().toString(); + text = trimExtraSpaces(text); Tweet newTweet = new NormalTweet(text); tweetList.add(newTweet); adapter.notifyDataSetChanged(); @@ -64,6 +65,15 @@ protected void onStart() { oldTweetsList.setAdapter(adapter); } + private String trimExtraSpaces(String inputString){ + inputString = inputString.replaceAll("\\s+", " "); + return inputString; + } + + private void sortTweetListItems(Ordering ordering){ + + } + private void loadFromFile() { ArrayList tweets = new ArrayList(); try { @@ -81,7 +91,8 @@ private void loadFromFile() { throw new RuntimeException(); } } - + + private void saveInFile() { try { diff --git a/app/src/main/java/ca/ualberta/cs/lonelytwitter/NormalTweet.java b/app/src/main/java/ca/ualberta/cs/lonelytwitter/NormalTweet.java index a3ea715675..bed2a0c93f 100644 --- a/app/src/main/java/ca/ualberta/cs/lonelytwitter/NormalTweet.java +++ b/app/src/main/java/ca/ualberta/cs/lonelytwitter/NormalTweet.java @@ -1,8 +1,5 @@ package ca.ualberta.cs.lonelytwitter; -/** - * Created by watts1 on 9/15/16. - */ public class NormalTweet extends Tweet { public NormalTweet(String message) { diff --git a/app/src/main/java/ca/ualberta/cs/lonelytwitter/Tweet.java b/app/src/main/java/ca/ualberta/cs/lonelytwitter/Tweet.java index 9f10ee8dd8..60c524ed62 100644 --- a/app/src/main/java/ca/ualberta/cs/lonelytwitter/Tweet.java +++ b/app/src/main/java/ca/ualberta/cs/lonelytwitter/Tweet.java @@ -2,9 +2,6 @@ import java.util.Date; -/** - * Created by watts1 on 9/15/16. - */ public abstract class Tweet implements Tweetable { private String message; private Date date; @@ -27,7 +24,6 @@ public String toString(){ public abstract Boolean isImportant(); - public void setMessage(String message) throws TweetTooLongException { if (message.length() > 140){ //Do Something! diff --git a/app/src/main/java/ca/ualberta/cs/lonelytwitter/TweetList.java b/app/src/main/java/ca/ualberta/cs/lonelytwitter/TweetList.java index f393a153bc..13bb2279a3 100644 --- a/app/src/main/java/ca/ualberta/cs/lonelytwitter/TweetList.java +++ b/app/src/main/java/ca/ualberta/cs/lonelytwitter/TweetList.java @@ -2,9 +2,6 @@ import java.util.ArrayList; -/** - * Created by makepeac on 9/29/16. - */ public class TweetList { private ArrayList tweets = new ArrayList(); diff --git a/app/src/main/java/ca/ualberta/cs/lonelytwitter/TweetTooLongException.java b/app/src/main/java/ca/ualberta/cs/lonelytwitter/TweetTooLongException.java index 23373309bc..0c8da86488 100644 --- a/app/src/main/java/ca/ualberta/cs/lonelytwitter/TweetTooLongException.java +++ b/app/src/main/java/ca/ualberta/cs/lonelytwitter/TweetTooLongException.java @@ -1,8 +1,5 @@ package ca.ualberta.cs.lonelytwitter; -/** - * Created by watts1 on 9/15/16. - */ public class TweetTooLongException extends Exception{ } diff --git a/app/src/main/java/ca/ualberta/cs/lonelytwitter/Tweetable.java b/app/src/main/java/ca/ualberta/cs/lonelytwitter/Tweetable.java index 48a6185400..cff18f45f7 100644 --- a/app/src/main/java/ca/ualberta/cs/lonelytwitter/Tweetable.java +++ b/app/src/main/java/ca/ualberta/cs/lonelytwitter/Tweetable.java @@ -3,11 +3,9 @@ import java.util.Date; -/** - * Created by watts1 on 9/15/16. - */ public interface Tweetable { public String getMessage(); + public Date getDate(); } diff --git a/app/src/main/java/ca/ualberta/cs/lonelytwitter/package-info.java b/app/src/main/java/ca/ualberta/cs/lonelytwitter/package-info.java new file mode 100644 index 0000000000..f72a675649 --- /dev/null +++ b/app/src/main/java/ca/ualberta/cs/lonelytwitter/package-info.java @@ -0,0 +1,4 @@ +/** + * Test package documentation. + */ +package ca.ualberta.cs.lonelytwitter; \ No newline at end of file diff --git a/app/src/overview.html~ b/app/src/overview.html~ new file mode 100644 index 0000000000..d00b492b19 --- /dev/null +++ b/app/src/overview.html~ @@ -0,0 +1,8 @@ + + +This is tyhe header. + + +This is an overview. + + diff --git a/app/src/overview.txt~ b/app/src/overview.txt~ new file mode 100644 index 0000000000..e69de29bb2 diff --git a/docs/allclasses-frame.html b/docs/allclasses-frame.html new file mode 100644 index 0000000000..2eb43fac1b --- /dev/null +++ b/docs/allclasses-frame.html @@ -0,0 +1,26 @@ + + + + + +All Classes + + + + +

All Classes

+ + + diff --git a/docs/allclasses-noframe.html b/docs/allclasses-noframe.html new file mode 100644 index 0000000000..6cf7e4bd84 --- /dev/null +++ b/docs/allclasses-noframe.html @@ -0,0 +1,26 @@ + + + + + +All Classes + + + + +

All Classes

+ + + diff --git a/docs/ca/ualberta/cs/lonelytwitter/BuildConfig.html b/docs/ca/ualberta/cs/lonelytwitter/BuildConfig.html new file mode 100644 index 0000000000..424ae83356 --- /dev/null +++ b/docs/ca/ualberta/cs/lonelytwitter/BuildConfig.html @@ -0,0 +1,332 @@ + + + + + +BuildConfig + + + + + + + + + + + +
+
ca.ualberta.cs.lonelytwitter
+

Class BuildConfig

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • ca.ualberta.cs.lonelytwitter.BuildConfig
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public final class BuildConfig
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      static java.lang.StringAPPLICATION_ID 
      static java.lang.StringBUILD_TYPE 
      static booleanDEBUG 
      static java.lang.StringFLAVOR 
      static intVERSION_CODE 
      static java.lang.StringVERSION_NAME 
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      BuildConfig() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        BuildConfig

        +
        public BuildConfig()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/docs/ca/ualberta/cs/lonelytwitter/ImportantTweet.html b/docs/ca/ualberta/cs/lonelytwitter/ImportantTweet.html new file mode 100644 index 0000000000..f8a3c47e73 --- /dev/null +++ b/docs/ca/ualberta/cs/lonelytwitter/ImportantTweet.html @@ -0,0 +1,278 @@ + + + + + +ImportantTweet + + + + + + + + + + + +
+
ca.ualberta.cs.lonelytwitter
+

Class ImportantTweet

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Tweetable
    +
    +
    +
    +
    public class ImportantTweet
    +extends Tweet
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      ImportantTweet(java.lang.String message) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      java.lang.BooleanisImportant() +
      Is important boolean.
      +
      + +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ImportantTweet

        +
        public ImportantTweet(java.lang.String message)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        isImportant

        +
        public java.lang.Boolean isImportant()
        +
        Description copied from class: Tweet
        +
        Is important boolean.
        +
        +
        Specified by:
        +
        isImportant in class Tweet
        +
        Returns:
        the boolean
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/docs/ca/ualberta/cs/lonelytwitter/LonelyTwitterActivity.html b/docs/ca/ualberta/cs/lonelytwitter/LonelyTwitterActivity.html new file mode 100644 index 0000000000..6cef84df93 --- /dev/null +++ b/docs/ca/ualberta/cs/lonelytwitter/LonelyTwitterActivity.html @@ -0,0 +1,457 @@ + + + + + +LonelyTwitterActivity + + + + + + + + + + + +
+
ca.ualberta.cs.lonelytwitter
+

Class LonelyTwitterActivity

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • Activity
    • +
    • +
        +
      • ca.ualberta.cs.lonelytwitter.LonelyTwitterActivity
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class LonelyTwitterActivity
    +extends Activity
    +
    This class is the main view class of the project.
    In this class, user interaction and file manipulation is performed. + All files are in the form of "json" files that are stored in Emulator's accessible from Android Device Monitor: +
    +     File Explorer -> data -> data -> ca.ualberta.cs.lonelytwitter -> files -> file.sav.
    + 
    + begin
    + some pseudo code
    + end.
    + The file name is indicated in the           FILENAME conostant. +
      +
    • item 1
    • +
    • item 2
    • +
    • item 3
    • +
    +
      +
    1. item 1
    2. +
    3. item 2
    4. +
    5. item 3
    6. +
    +
    Since:
    +
    1.0
    +
    Version:
    +
    1.4.2
    +
    Author:
    +
    Ali Sajedi
    +
    See Also:
    Tweet
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      private adapter 
      private EditTextbodyText 
      private static java.lang.StringFILENAME +
      The file that all the tweets are saved there.
      +
      private ListViewoldTweetsList 
      private java.util.ArrayList<Tweet>tweetList 
      +
    • +
    + + + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      private voidloadFromFile() 
      voidonCreate(Bundle savedInstanceState) +
      Called when the activity is first created.
      +
      protected voidonStart() 
      private voidreverseItems() +
      This method rverses the items in the tweetList and refreshes the adapter.
      +
      private voidsaveInFile() 
      private java.lang.StringtrimExtraSpaces(java.lang.String inputString) 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + + + + + +
        +
      • +

        bodyText

        +
        private EditText bodyText
        +
      • +
      + + + +
        +
      • +

        oldTweetsList

        +
        private ListView oldTweetsList
        +
      • +
      + + + +
        +
      • +

        tweetList

        +
        private java.util.ArrayList<Tweet> tweetList
        +
      • +
      + + + +
        +
      • +

        adapter

        +
        private  adapter
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        LonelyTwitterActivity

        +
        public LonelyTwitterActivity()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        onCreate

        +
        public void onCreate(Bundle savedInstanceState)
        +
        Called when the activity is first created.
        +
      • +
      + + + +
        +
      • +

        onStart

        +
        protected void onStart()
        +
      • +
      + + + +
        +
      • +

        trimExtraSpaces

        +
        private java.lang.String trimExtraSpaces(java.lang.String inputString)
        +
        Parameters:
        inputString - the string to be trimmed
        +
        Returns:
        +
      • +
      + + + +
        +
      • +

        reverseItems

        +
        private void reverseItems()
        +
        This method rverses the items in the tweetList and refreshes the adapter.
        +
        Throws:
        +
        +
      • +
      + + + +
        +
      • +

        loadFromFile

        +
        private void loadFromFile()
        +
        Throws:
        +
        java.io.FileNotFoundException - if the text is too long.
        +
        java.io.FileNotFoundException - if the file is not created first.
        +
      • +
      + + + +
        +
      • +

        saveInFile

        +
        private void saveInFile()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/docs/ca/ualberta/cs/lonelytwitter/LonelyTwitterActivityTest.html b/docs/ca/ualberta/cs/lonelytwitter/LonelyTwitterActivityTest.html new file mode 100644 index 0000000000..4b48f273da --- /dev/null +++ b/docs/ca/ualberta/cs/lonelytwitter/LonelyTwitterActivityTest.html @@ -0,0 +1,263 @@ + + + + + +LonelyTwitterActivityTest + + + + + + + + + + + +
+
ca.ualberta.cs.lonelytwitter
+

Class LonelyTwitterActivityTest

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • ActivityInstrumentationTestCase2
    • +
    • +
        +
      • ca.ualberta.cs.lonelytwitter.LonelyTwitterActivityTest
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class LonelyTwitterActivityTest
    +extends ActivityInstrumentationTestCase2
    +
    Created by wz on 14/09/15.
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      voidtestStart() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        LonelyTwitterActivityTest

        +
        public LonelyTwitterActivityTest()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        testStart

        +
        public void testStart()
        +               throws java.lang.Exception
        +
        Throws:
        +
        java.lang.Exception
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/docs/ca/ualberta/cs/lonelytwitter/NormalTweet.html b/docs/ca/ualberta/cs/lonelytwitter/NormalTweet.html new file mode 100644 index 0000000000..5fe0596871 --- /dev/null +++ b/docs/ca/ualberta/cs/lonelytwitter/NormalTweet.html @@ -0,0 +1,278 @@ + + + + + +NormalTweet + + + + + + + + + + + +
+
ca.ualberta.cs.lonelytwitter
+

Class NormalTweet

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Tweetable
    +
    +
    +
    +
    public class NormalTweet
    +extends Tweet
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      NormalTweet(java.lang.String message) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      java.lang.BooleanisImportant() +
      Is important boolean.
      +
      + +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        NormalTweet

        +
        public NormalTweet(java.lang.String message)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        isImportant

        +
        public java.lang.Boolean isImportant()
        +
        Description copied from class: Tweet
        +
        Is important boolean.
        +
        +
        Specified by:
        +
        isImportant in class Tweet
        +
        Returns:
        the boolean
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/docs/ca/ualberta/cs/lonelytwitter/R.attr.html b/docs/ca/ualberta/cs/lonelytwitter/R.attr.html new file mode 100644 index 0000000000..0f8aa1d3bf --- /dev/null +++ b/docs/ca/ualberta/cs/lonelytwitter/R.attr.html @@ -0,0 +1,230 @@ + + + + + +R.attr + + + + + + + + + + + +
+
ca.ualberta.cs.lonelytwitter
+

Class R.attr

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • ca.ualberta.cs.lonelytwitter.R.attr
    • +
    +
  • +
+
+
    +
  • +
    +
    Enclosing class:
    +
    R
    +
    +
    +
    +
    public static final class R.attr
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      R.attr() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        R.attr

        +
        public R.attr()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/docs/ca/ualberta/cs/lonelytwitter/R.drawable.html b/docs/ca/ualberta/cs/lonelytwitter/R.drawable.html new file mode 100644 index 0000000000..cfe12b7434 --- /dev/null +++ b/docs/ca/ualberta/cs/lonelytwitter/R.drawable.html @@ -0,0 +1,267 @@ + + + + + +R.drawable + + + + + + + + + + + +
+
ca.ualberta.cs.lonelytwitter
+

Class R.drawable

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • ca.ualberta.cs.lonelytwitter.R.drawable
    • +
    +
  • +
+
+
    +
  • +
    +
    Enclosing class:
    +
    R
    +
    +
    +
    +
    public static final class R.drawable
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      static intic_launcher 
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      R.drawable() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        R.drawable

        +
        public R.drawable()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/docs/ca/ualberta/cs/lonelytwitter/R.html b/docs/ca/ualberta/cs/lonelytwitter/R.html new file mode 100644 index 0000000000..fc099b55ea --- /dev/null +++ b/docs/ca/ualberta/cs/lonelytwitter/R.html @@ -0,0 +1,261 @@ + + + + + +R + + + + + + + + + + + +
+
ca.ualberta.cs.lonelytwitter
+

Class R

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • ca.ualberta.cs.lonelytwitter.R
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public final class R
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Nested Class Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Nested Classes 
      Modifier and TypeClass and Description
      static class R.attr 
      static class R.drawable 
      static class R.id 
      static class R.layout 
      static class R.string 
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      R() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        R

        +
        public R()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/docs/ca/ualberta/cs/lonelytwitter/R.id.html b/docs/ca/ualberta/cs/lonelytwitter/R.id.html new file mode 100644 index 0000000000..0a6fa893fa --- /dev/null +++ b/docs/ca/ualberta/cs/lonelytwitter/R.id.html @@ -0,0 +1,337 @@ + + + + + +R.id + + + + + + + + + + + +
+
ca.ualberta.cs.lonelytwitter
+

Class R.id

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • ca.ualberta.cs.lonelytwitter.R.id
    • +
    +
  • +
+
+
    +
  • +
    +
    Enclosing class:
    +
    R
    +
    +
    +
    +
    public static final class R.id
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      static intbody 
      static intclear 
      static inthello 
      static intoldTweetsList 
      static intoldTweetsTitle 
      static intsave 
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      R.id() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+ +
+
+ + + + + + + diff --git a/docs/ca/ualberta/cs/lonelytwitter/R.layout.html b/docs/ca/ualberta/cs/lonelytwitter/R.layout.html new file mode 100644 index 0000000000..56eae03f3d --- /dev/null +++ b/docs/ca/ualberta/cs/lonelytwitter/R.layout.html @@ -0,0 +1,281 @@ + + + + + +R.layout + + + + + + + + + + + +
+
ca.ualberta.cs.lonelytwitter
+

Class R.layout

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • ca.ualberta.cs.lonelytwitter.R.layout
    • +
    +
  • +
+
+
    +
  • +
    +
    Enclosing class:
    +
    R
    +
    +
    +
    +
    public static final class R.layout
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      static intlist_item 
      static intmain 
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      R.layout() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+ +
+
+ + + + + + + diff --git a/docs/ca/ualberta/cs/lonelytwitter/R.string.html b/docs/ca/ualberta/cs/lonelytwitter/R.string.html new file mode 100644 index 0000000000..666f6883ee --- /dev/null +++ b/docs/ca/ualberta/cs/lonelytwitter/R.string.html @@ -0,0 +1,309 @@ + + + + + +R.string + + + + + + + + + + + +
+
ca.ualberta.cs.lonelytwitter
+

Class R.string

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • ca.ualberta.cs.lonelytwitter.R.string
    • +
    +
  • +
+
+
    +
  • +
    +
    Enclosing class:
    +
    R
    +
    +
    +
    +
    public static final class R.string
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      static intapp_name 
      static intclear 
      static inthello 
      static intsave 
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      R.string() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+ +
+
+ + + + + + + diff --git a/docs/ca/ualberta/cs/lonelytwitter/Tweet.html b/docs/ca/ualberta/cs/lonelytwitter/Tweet.html new file mode 100644 index 0000000000..fbf1887593 --- /dev/null +++ b/docs/ca/ualberta/cs/lonelytwitter/Tweet.html @@ -0,0 +1,427 @@ + + + + + +Tweet + + + + + + + + + + + +
+
ca.ualberta.cs.lonelytwitter
+

Class Tweet

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • ca.ualberta.cs.lonelytwitter.Tweet
    • +
    +
  • +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      private java.util.Datedate 
      private java.lang.Stringmessage 
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + + +
      Constructors 
      Constructor and Description
      Tweet(java.lang.String message) +
      Instantiates a new Tweet.
      +
      Tweet(java.lang.String message, + java.util.Date date) +
      Instantiates a new Tweet.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      java.util.DategetDate() 
      java.lang.StringgetMessage() 
      abstract java.lang.BooleanisImportant() +
      Is important boolean.
      +
      voidsetDate(java.util.Date date) +
      Sets date.
      +
      voidsetMessage(java.lang.String message) +
      Sets message.
      +
      java.lang.StringtoString() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        message

        +
        private java.lang.String message
        +
      • +
      + + + +
        +
      • +

        date

        +
        private java.util.Date date
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Tweet

        +
        public Tweet(java.lang.String message)
        +
        Instantiates a new Tweet.
        +
        Parameters:
        message - the message
        +
      • +
      + + + +
        +
      • +

        Tweet

        +
        public Tweet(java.lang.String message,
        +     java.util.Date date)
        +
        Instantiates a new Tweet.
        +
        Parameters:
        message - the message
        date - the date
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      + + + +
        +
      • +

        isImportant

        +
        public abstract java.lang.Boolean isImportant()
        +
        Is important boolean.
        +
        Returns:
        the boolean
        +
      • +
      + + + +
        +
      • +

        setMessage

        +
        public void setMessage(java.lang.String message)
        +                throws TweetTooLongException
        +
        Sets message.
        +
        Parameters:
        message - the message
        +
        Throws:
        +
        TweetTooLongException - the tweet too long exception
        +
      • +
      + + + +
        +
      • +

        setDate

        +
        public void setDate(java.util.Date date)
        +
        Sets date.
        +
        Parameters:
        date - the date
        +
      • +
      + + + +
        +
      • +

        getMessage

        +
        public java.lang.String getMessage()
        +
        +
        Specified by:
        +
        getMessage in interface Tweetable
        +
        +
      • +
      + + + +
        +
      • +

        getDate

        +
        public java.util.Date getDate()
        +
        +
        Specified by:
        +
        getDate in interface Tweetable
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/docs/ca/ualberta/cs/lonelytwitter/TweetList.html b/docs/ca/ualberta/cs/lonelytwitter/TweetList.html new file mode 100644 index 0000000000..cd50f9247d --- /dev/null +++ b/docs/ca/ualberta/cs/lonelytwitter/TweetList.html @@ -0,0 +1,329 @@ + + + + + +TweetList + + + + + + + + + + + +
+
ca.ualberta.cs.lonelytwitter
+

Class TweetList

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • ca.ualberta.cs.lonelytwitter.TweetList
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class TweetList
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      private java.util.ArrayList<Tweet>tweets 
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      TweetList() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      voidadd(Tweet tweet) 
      voiddelete(Tweet tweet) 
      TweetgetTweet(int index) 
      booleanhasTweet(Tweet tweet) 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        tweets

        +
        private java.util.ArrayList<Tweet> tweets
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        TweetList

        +
        public TweetList()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getTweet

        +
        public Tweet getTweet(int index)
        +
      • +
      + + + +
        +
      • +

        hasTweet

        +
        public boolean hasTweet(Tweet tweet)
        +
      • +
      + + + +
        +
      • +

        add

        +
        public void add(Tweet tweet)
        +
      • +
      + + + +
        +
      • +

        delete

        +
        public void delete(Tweet tweet)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/docs/ca/ualberta/cs/lonelytwitter/TweetListTest.html b/docs/ca/ualberta/cs/lonelytwitter/TweetListTest.html new file mode 100644 index 0000000000..c0403a76ca --- /dev/null +++ b/docs/ca/ualberta/cs/lonelytwitter/TweetListTest.html @@ -0,0 +1,299 @@ + + + + + +TweetListTest + + + + + + + + + + + +
+
ca.ualberta.cs.lonelytwitter
+

Class TweetListTest

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • ActivityInstrumentationTestCase2
    • +
    • +
        +
      • ca.ualberta.cs.lonelytwitter.TweetListTest
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class TweetListTest
    +extends ActivityInstrumentationTestCase2
    +
    Created by makepeac on 9/29/16.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      TweetListTest() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      voidtestAddTweet() 
      voidtestDelete() 
      voidtestGetTweet() 
      voidtestHasTweet() 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        TweetListTest

        +
        public TweetListTest()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        testAddTweet

        +
        public void testAddTweet()
        +
      • +
      + + + +
        +
      • +

        testDelete

        +
        public void testDelete()
        +
      • +
      + + + +
        +
      • +

        testGetTweet

        +
        public void testGetTweet()
        +
      • +
      + + + +
        +
      • +

        testHasTweet

        +
        public void testHasTweet()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/docs/ca/ualberta/cs/lonelytwitter/TweetTooLongException.html b/docs/ca/ualberta/cs/lonelytwitter/TweetTooLongException.html new file mode 100644 index 0000000000..3cb1d58e2f --- /dev/null +++ b/docs/ca/ualberta/cs/lonelytwitter/TweetTooLongException.html @@ -0,0 +1,248 @@ + + + + + +TweetTooLongException + + + + + + + + + + + +
+
ca.ualberta.cs.lonelytwitter
+

Class TweetTooLongException

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • java.lang.Throwable
    • +
    • +
        +
      • java.lang.Exception
      • +
      • +
          +
        • ca.ualberta.cs.lonelytwitter.TweetTooLongException
        • +
        +
      • +
      +
    • +
    +
  • +
+
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.io.Serializable
    +
    +
    +
    +
    public class TweetTooLongException
    +extends java.lang.Exception
    +
    See Also:
    Serialized Form
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Method Summary

      +
        +
      • + + +

        Methods inherited from class java.lang.Throwable

        +addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        TweetTooLongException

        +
        public TweetTooLongException()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/docs/ca/ualberta/cs/lonelytwitter/Tweetable.html b/docs/ca/ualberta/cs/lonelytwitter/Tweetable.html new file mode 100644 index 0000000000..4e4277f646 --- /dev/null +++ b/docs/ca/ualberta/cs/lonelytwitter/Tweetable.html @@ -0,0 +1,221 @@ + + + + + +Tweetable + + + + + + + + + + + +
+
ca.ualberta.cs.lonelytwitter
+

Interface Tweetable

+
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      java.util.DategetDate() 
      java.lang.StringgetMessage() 
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getMessage

        +
        java.lang.String getMessage()
        +
      • +
      + + + +
        +
      • +

        getDate

        +
        java.util.Date getDate()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/docs/ca/ualberta/cs/lonelytwitter/class-use/BuildConfig.html b/docs/ca/ualberta/cs/lonelytwitter/class-use/BuildConfig.html new file mode 100644 index 0000000000..70e68c1f8b --- /dev/null +++ b/docs/ca/ualberta/cs/lonelytwitter/class-use/BuildConfig.html @@ -0,0 +1,113 @@ + + + + + +Uses of Class ca.ualberta.cs.lonelytwitter.BuildConfig + + + + + + + + + + +
+

Uses of Class
ca.ualberta.cs.lonelytwitter.BuildConfig

+
+
No usage of ca.ualberta.cs.lonelytwitter.BuildConfig
+ + + + + + diff --git a/docs/ca/ualberta/cs/lonelytwitter/class-use/ImportantTweet.html b/docs/ca/ualberta/cs/lonelytwitter/class-use/ImportantTweet.html new file mode 100644 index 0000000000..eff86b3164 --- /dev/null +++ b/docs/ca/ualberta/cs/lonelytwitter/class-use/ImportantTweet.html @@ -0,0 +1,113 @@ + + + + + +Uses of Class ca.ualberta.cs.lonelytwitter.ImportantTweet + + + + + + + + + + +
+

Uses of Class
ca.ualberta.cs.lonelytwitter.ImportantTweet

+
+
No usage of ca.ualberta.cs.lonelytwitter.ImportantTweet
+ + + + + + diff --git a/docs/ca/ualberta/cs/lonelytwitter/class-use/LonelyTwitterActivity.html b/docs/ca/ualberta/cs/lonelytwitter/class-use/LonelyTwitterActivity.html new file mode 100644 index 0000000000..4014140224 --- /dev/null +++ b/docs/ca/ualberta/cs/lonelytwitter/class-use/LonelyTwitterActivity.html @@ -0,0 +1,113 @@ + + + + + +Uses of Class ca.ualberta.cs.lonelytwitter.LonelyTwitterActivity + + + + + + + + + + +
+

Uses of Class
ca.ualberta.cs.lonelytwitter.LonelyTwitterActivity

+
+
No usage of ca.ualberta.cs.lonelytwitter.LonelyTwitterActivity
+ + + + + + diff --git a/docs/ca/ualberta/cs/lonelytwitter/class-use/LonelyTwitterActivityTest.html b/docs/ca/ualberta/cs/lonelytwitter/class-use/LonelyTwitterActivityTest.html new file mode 100644 index 0000000000..365f157075 --- /dev/null +++ b/docs/ca/ualberta/cs/lonelytwitter/class-use/LonelyTwitterActivityTest.html @@ -0,0 +1,113 @@ + + + + + +Uses of Class ca.ualberta.cs.lonelytwitter.LonelyTwitterActivityTest + + + + + + + + + + +
+

Uses of Class
ca.ualberta.cs.lonelytwitter.LonelyTwitterActivityTest

+
+
No usage of ca.ualberta.cs.lonelytwitter.LonelyTwitterActivityTest
+ + + + + + diff --git a/docs/ca/ualberta/cs/lonelytwitter/class-use/NormalTweet.html b/docs/ca/ualberta/cs/lonelytwitter/class-use/NormalTweet.html new file mode 100644 index 0000000000..497b33a186 --- /dev/null +++ b/docs/ca/ualberta/cs/lonelytwitter/class-use/NormalTweet.html @@ -0,0 +1,113 @@ + + + + + +Uses of Class ca.ualberta.cs.lonelytwitter.NormalTweet + + + + + + + + + + +
+

Uses of Class
ca.ualberta.cs.lonelytwitter.NormalTweet

+
+
No usage of ca.ualberta.cs.lonelytwitter.NormalTweet
+ + + + + + diff --git a/docs/ca/ualberta/cs/lonelytwitter/class-use/R.attr.html b/docs/ca/ualberta/cs/lonelytwitter/class-use/R.attr.html new file mode 100644 index 0000000000..40c07539e1 --- /dev/null +++ b/docs/ca/ualberta/cs/lonelytwitter/class-use/R.attr.html @@ -0,0 +1,113 @@ + + + + + +Uses of Class ca.ualberta.cs.lonelytwitter.R.attr + + + + + + + + + + +
+

Uses of Class
ca.ualberta.cs.lonelytwitter.R.attr

+
+
No usage of ca.ualberta.cs.lonelytwitter.R.attr
+ + + + + + diff --git a/docs/ca/ualberta/cs/lonelytwitter/class-use/R.drawable.html b/docs/ca/ualberta/cs/lonelytwitter/class-use/R.drawable.html new file mode 100644 index 0000000000..4624b7689d --- /dev/null +++ b/docs/ca/ualberta/cs/lonelytwitter/class-use/R.drawable.html @@ -0,0 +1,113 @@ + + + + + +Uses of Class ca.ualberta.cs.lonelytwitter.R.drawable + + + + + + + + + + +
+

Uses of Class
ca.ualberta.cs.lonelytwitter.R.drawable

+
+
No usage of ca.ualberta.cs.lonelytwitter.R.drawable
+ + + + + + diff --git a/docs/ca/ualberta/cs/lonelytwitter/class-use/R.html b/docs/ca/ualberta/cs/lonelytwitter/class-use/R.html new file mode 100644 index 0000000000..f30c50d24f --- /dev/null +++ b/docs/ca/ualberta/cs/lonelytwitter/class-use/R.html @@ -0,0 +1,113 @@ + + + + + +Uses of Class ca.ualberta.cs.lonelytwitter.R + + + + + + + + + + +
+

Uses of Class
ca.ualberta.cs.lonelytwitter.R

+
+
No usage of ca.ualberta.cs.lonelytwitter.R
+ + + + + + diff --git a/docs/ca/ualberta/cs/lonelytwitter/class-use/R.id.html b/docs/ca/ualberta/cs/lonelytwitter/class-use/R.id.html new file mode 100644 index 0000000000..cefc9b266b --- /dev/null +++ b/docs/ca/ualberta/cs/lonelytwitter/class-use/R.id.html @@ -0,0 +1,113 @@ + + + + + +Uses of Class ca.ualberta.cs.lonelytwitter.R.id + + + + + + + + + + +
+

Uses of Class
ca.ualberta.cs.lonelytwitter.R.id

+
+
No usage of ca.ualberta.cs.lonelytwitter.R.id
+ + + + + + diff --git a/docs/ca/ualberta/cs/lonelytwitter/class-use/R.layout.html b/docs/ca/ualberta/cs/lonelytwitter/class-use/R.layout.html new file mode 100644 index 0000000000..0d59b09a00 --- /dev/null +++ b/docs/ca/ualberta/cs/lonelytwitter/class-use/R.layout.html @@ -0,0 +1,113 @@ + + + + + +Uses of Class ca.ualberta.cs.lonelytwitter.R.layout + + + + + + + + + + +
+

Uses of Class
ca.ualberta.cs.lonelytwitter.R.layout

+
+
No usage of ca.ualberta.cs.lonelytwitter.R.layout
+ + + + + + diff --git a/docs/ca/ualberta/cs/lonelytwitter/class-use/R.string.html b/docs/ca/ualberta/cs/lonelytwitter/class-use/R.string.html new file mode 100644 index 0000000000..50c71801af --- /dev/null +++ b/docs/ca/ualberta/cs/lonelytwitter/class-use/R.string.html @@ -0,0 +1,113 @@ + + + + + +Uses of Class ca.ualberta.cs.lonelytwitter.R.string + + + + + + + + + + +
+

Uses of Class
ca.ualberta.cs.lonelytwitter.R.string

+
+
No usage of ca.ualberta.cs.lonelytwitter.R.string
+ + + + + + diff --git a/docs/ca/ualberta/cs/lonelytwitter/class-use/Tweet.html b/docs/ca/ualberta/cs/lonelytwitter/class-use/Tweet.html new file mode 100644 index 0000000000..bfadd0405b --- /dev/null +++ b/docs/ca/ualberta/cs/lonelytwitter/class-use/Tweet.html @@ -0,0 +1,193 @@ + + + + + +Uses of Class ca.ualberta.cs.lonelytwitter.Tweet + + + + + + + + + + +
+

Uses of Class
ca.ualberta.cs.lonelytwitter.Tweet

+
+
+ +
+ + + + + + diff --git a/docs/ca/ualberta/cs/lonelytwitter/class-use/TweetList.html b/docs/ca/ualberta/cs/lonelytwitter/class-use/TweetList.html new file mode 100644 index 0000000000..ff5f3abc32 --- /dev/null +++ b/docs/ca/ualberta/cs/lonelytwitter/class-use/TweetList.html @@ -0,0 +1,113 @@ + + + + + +Uses of Class ca.ualberta.cs.lonelytwitter.TweetList + + + + + + + + + + +
+

Uses of Class
ca.ualberta.cs.lonelytwitter.TweetList

+
+
No usage of ca.ualberta.cs.lonelytwitter.TweetList
+ + + + + + diff --git a/docs/ca/ualberta/cs/lonelytwitter/class-use/TweetListTest.html b/docs/ca/ualberta/cs/lonelytwitter/class-use/TweetListTest.html new file mode 100644 index 0000000000..6f19f08293 --- /dev/null +++ b/docs/ca/ualberta/cs/lonelytwitter/class-use/TweetListTest.html @@ -0,0 +1,113 @@ + + + + + +Uses of Class ca.ualberta.cs.lonelytwitter.TweetListTest + + + + + + + + + + +
+

Uses of Class
ca.ualberta.cs.lonelytwitter.TweetListTest

+
+
No usage of ca.ualberta.cs.lonelytwitter.TweetListTest
+ + + + + + diff --git a/docs/ca/ualberta/cs/lonelytwitter/class-use/TweetTooLongException.html b/docs/ca/ualberta/cs/lonelytwitter/class-use/TweetTooLongException.html new file mode 100644 index 0000000000..74057cf7db --- /dev/null +++ b/docs/ca/ualberta/cs/lonelytwitter/class-use/TweetTooLongException.html @@ -0,0 +1,140 @@ + + + + + +Uses of Class ca.ualberta.cs.lonelytwitter.TweetTooLongException + + + + + + + + + + +
+

Uses of Class
ca.ualberta.cs.lonelytwitter.TweetTooLongException

+
+
+ +
+ + + + + + diff --git a/docs/ca/ualberta/cs/lonelytwitter/class-use/Tweetable.html b/docs/ca/ualberta/cs/lonelytwitter/class-use/Tweetable.html new file mode 100644 index 0000000000..6b7bc8ed63 --- /dev/null +++ b/docs/ca/ualberta/cs/lonelytwitter/class-use/Tweetable.html @@ -0,0 +1,148 @@ + + + + + +Uses of Interface ca.ualberta.cs.lonelytwitter.Tweetable + + + + + + + + + + +
+

Uses of Interface
ca.ualberta.cs.lonelytwitter.Tweetable

+
+
+ +
+ + + + + + diff --git a/docs/ca/ualberta/cs/lonelytwitter/package-frame.html b/docs/ca/ualberta/cs/lonelytwitter/package-frame.html new file mode 100644 index 0000000000..7f5ce73226 --- /dev/null +++ b/docs/ca/ualberta/cs/lonelytwitter/package-frame.html @@ -0,0 +1,33 @@ + + + + + +ca.ualberta.cs.lonelytwitter + + + + +

ca.ualberta.cs.lonelytwitter

+ + + diff --git a/docs/ca/ualberta/cs/lonelytwitter/package-summary.html b/docs/ca/ualberta/cs/lonelytwitter/package-summary.html new file mode 100644 index 0000000000..64cd75ebd0 --- /dev/null +++ b/docs/ca/ualberta/cs/lonelytwitter/package-summary.html @@ -0,0 +1,202 @@ + + + + + +ca.ualberta.cs.lonelytwitter + + + + + + + + + + +
+

Package ca.ualberta.cs.lonelytwitter

+
+
Test package documentation.
+
+

See: Description

+
+
+ + + + +

Package ca.ualberta.cs.lonelytwitter Description

+
Test package documentation.
+
+ + + + + + diff --git a/docs/ca/ualberta/cs/lonelytwitter/package-tree.html b/docs/ca/ualberta/cs/lonelytwitter/package-tree.html new file mode 100644 index 0000000000..8703a4bd32 --- /dev/null +++ b/docs/ca/ualberta/cs/lonelytwitter/package-tree.html @@ -0,0 +1,156 @@ + + + + + +ca.ualberta.cs.lonelytwitter Class Hierarchy + + + + + + + +
+ + + + + +
+ + +
+

Hierarchy For Package ca.ualberta.cs.lonelytwitter

+
+
+

Class Hierarchy

+ +

Interface Hierarchy

+ +
+ +
+ + + + + +
+ + + + diff --git a/docs/ca/ualberta/cs/lonelytwitter/package-use.html b/docs/ca/ualberta/cs/lonelytwitter/package-use.html new file mode 100644 index 0000000000..8991e5e1f0 --- /dev/null +++ b/docs/ca/ualberta/cs/lonelytwitter/package-use.html @@ -0,0 +1,139 @@ + + + + + +Uses of Package ca.ualberta.cs.lonelytwitter + + + + + + + +
+ + + + + +
+ + +
+

Uses of Package
ca.ualberta.cs.lonelytwitter

+
+
+ +
+ +
+ + + + + +
+ + + + diff --git a/docs/constant-values.html b/docs/constant-values.html new file mode 100644 index 0000000000..9d2c471b29 --- /dev/null +++ b/docs/constant-values.html @@ -0,0 +1,142 @@ + + + + + +Constant Field Values + + + + + + + +
+ + + + + +
+ + +
+

Constant Field Values

+

Contents

+ +
+
+ + +

ca.ualberta.*

+
    +
  • + + + + + + + + + + + + + + +
    ca.ualberta.cs.lonelytwitter.LonelyTwitterActivity 
    Modifier and TypeConstant FieldValue
    + +private static final java.lang.StringFILENAME"file.sav"
    +
  • +
+
+ +
+ + + + + +
+ + + + diff --git a/docs/deprecated-list.html b/docs/deprecated-list.html new file mode 100644 index 0000000000..d8f6db8081 --- /dev/null +++ b/docs/deprecated-list.html @@ -0,0 +1,113 @@ + + + + + +Deprecated List + + + + + + + +
+ + + + + +
+ + +
+

Deprecated API

+

Contents

+
+ +
+ + + + + +
+ + + + diff --git a/docs/help-doc.html b/docs/help-doc.html new file mode 100644 index 0000000000..51e466d31f --- /dev/null +++ b/docs/help-doc.html @@ -0,0 +1,214 @@ + + + + + +API Help + + + + + + + +
+ + + + + +
+ + +
+

How This API Document Is Organized

+
This API (Application Programming Interface) document has pages corresponding to the items in the navigation bar, described as follows.
+
+
+
    +
  • +

    Package

    +

    Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain six categories:

    +
      +
    • Interfaces (italic)
    • +
    • Classes
    • +
    • Enums
    • +
    • Exceptions
    • +
    • Errors
    • +
    • Annotation Types
    • +
    +
  • +
  • +

    Class/Interface

    +

    Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:

    +
      +
    • Class inheritance diagram
    • +
    • Direct Subclasses
    • +
    • All Known Subinterfaces
    • +
    • All Known Implementing Classes
    • +
    • Class/interface declaration
    • +
    • Class/interface description
    • +
    +
      +
    • Nested Class Summary
    • +
    • Field Summary
    • +
    • Constructor Summary
    • +
    • Method Summary
    • +
    +
      +
    • Field Detail
    • +
    • Constructor Detail
    • +
    • Method Detail
    • +
    +

    Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.

    +
  • +
  • +

    Annotation Type

    +

    Each annotation type has its own separate page with the following sections:

    +
      +
    • Annotation Type declaration
    • +
    • Annotation Type description
    • +
    • Required Element Summary
    • +
    • Optional Element Summary
    • +
    • Element Detail
    • +
    +
  • +
  • +

    Enum

    +

    Each enum has its own separate page with the following sections:

    +
      +
    • Enum declaration
    • +
    • Enum description
    • +
    • Enum Constant Summary
    • +
    • Enum Constant Detail
    • +
    +
  • +
  • +

    Use

    +

    Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.

    +
  • +
  • +

    Tree (Class Hierarchy)

    +

    There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object.

    +
      +
    • When viewing the Overview page, clicking on "Tree" displays the hierarchy for all packages.
    • +
    • When viewing a particular package, class or interface page, clicking "Tree" displays the hierarchy for only that package.
    • +
    +
  • +
  • +

    Deprecated API

    +

    The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.

    +
  • +
  • +

    Index

    +

    The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.

    +
  • +
  • +

    Prev/Next

    +

    These links take you to the next or previous class, interface, package, or related page.

    +
  • +
  • +

    Frames/No Frames

    +

    These links show and hide the HTML frames. All pages are available with or without frames.

    +
  • +
  • +

    All Classes

    +

    The All Classes link shows all classes and interfaces except non-static nested types.

    +
  • +
  • +

    Serialized Form

    +

    Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.

    +
  • +
  • +

    Constant Field Values

    +

    The Constant Field Values page lists the static final fields and their values.

    +
  • +
+This help file applies to API documentation generated using the standard doclet.
+ +
+ + + + + +
+ + + + diff --git a/docs/index-files/index-1.html b/docs/index-files/index-1.html new file mode 100644 index 0000000000..d5b215565c --- /dev/null +++ b/docs/index-files/index-1.html @@ -0,0 +1,120 @@ + + + + + +A-Index + + + + + + + +
+ + + + + +
+ + +
A B C D F G H I L M N O R S T  + + +

A

+
+
adapter - Variable in class ca.ualberta.cs.lonelytwitter.LonelyTwitterActivity
+
 
+
add(Tweet) - Method in class ca.ualberta.cs.lonelytwitter.TweetList
+
 
+
+A B C D F G H I L M N O R S T 
+ +
+ + + + + +
+ + + + diff --git a/docs/index-files/index-10.html b/docs/index-files/index-10.html new file mode 100644 index 0000000000..91805d8df7 --- /dev/null +++ b/docs/index-files/index-10.html @@ -0,0 +1,118 @@ + + + + + +M-Index + + + + + + + +
+ + + + + +
+ + +
A B C D F G H I L M N O R S T  + + +

M

+
+
message - Variable in class ca.ualberta.cs.lonelytwitter.Tweet
+
 
+
+A B C D F G H I L M N O R S T 
+ +
+ + + + + +
+ + + + diff --git a/docs/index-files/index-11.html b/docs/index-files/index-11.html new file mode 100644 index 0000000000..cc3af32e56 --- /dev/null +++ b/docs/index-files/index-11.html @@ -0,0 +1,120 @@ + + + + + +N-Index + + + + + + + +
+ + + + + +
+ + +
A B C D F G H I L M N O R S T  + + +

N

+
+
NormalTweet - Class in ca.ualberta.cs.lonelytwitter
+
 
+
NormalTweet(String) - Constructor for class ca.ualberta.cs.lonelytwitter.NormalTweet
+
 
+
+A B C D F G H I L M N O R S T 
+ +
+ + + + + +
+ + + + diff --git a/docs/index-files/index-12.html b/docs/index-files/index-12.html new file mode 100644 index 0000000000..2e511aa905 --- /dev/null +++ b/docs/index-files/index-12.html @@ -0,0 +1,124 @@ + + + + + +O-Index + + + + + + + +
+ + + + + +
+ + +
A B C D F G H I L M N O R S T  + + +

O

+
+
oldTweetsList - Variable in class ca.ualberta.cs.lonelytwitter.LonelyTwitterActivity
+
 
+
onCreate(Bundle) - Method in class ca.ualberta.cs.lonelytwitter.LonelyTwitterActivity
+
+
Called when the activity is first created.
+
+
onStart() - Method in class ca.ualberta.cs.lonelytwitter.LonelyTwitterActivity
+
 
+
+A B C D F G H I L M N O R S T 
+ +
+ + + + + +
+ + + + diff --git a/docs/index-files/index-13.html b/docs/index-files/index-13.html new file mode 100644 index 0000000000..2584ec4420 --- /dev/null +++ b/docs/index-files/index-13.html @@ -0,0 +1,120 @@ + + + + + +R-Index + + + + + + + +
+ + + + + +
+ + +
A B C D F G H I L M N O R S T  + + +

R

+
+
reverseItems() - Method in class ca.ualberta.cs.lonelytwitter.LonelyTwitterActivity
+
+
This method rverses the items in the tweetList and refreshes the adapter.
+
+
+A B C D F G H I L M N O R S T 
+ +
+ + + + + +
+ + + + diff --git a/docs/index-files/index-14.html b/docs/index-files/index-14.html new file mode 100644 index 0000000000..78511e1812 --- /dev/null +++ b/docs/index-files/index-14.html @@ -0,0 +1,126 @@ + + + + + +S-Index + + + + + + + +
+ + + + + +
+ + +
A B C D F G H I L M N O R S T  + + +

S

+
+
saveInFile() - Method in class ca.ualberta.cs.lonelytwitter.LonelyTwitterActivity
+
 
+
setDate(Date) - Method in class ca.ualberta.cs.lonelytwitter.Tweet
+
+
Sets date.
+
+
setMessage(String) - Method in class ca.ualberta.cs.lonelytwitter.Tweet
+
+
Sets message.
+
+
+A B C D F G H I L M N O R S T 
+ +
+ + + + + +
+ + + + diff --git a/docs/index-files/index-15.html b/docs/index-files/index-15.html new file mode 100644 index 0000000000..c204668bc5 --- /dev/null +++ b/docs/index-files/index-15.html @@ -0,0 +1,162 @@ + + + + + +T-Index + + + + + + + +
+ + + + + +
+ + +
A B C D F G H I L M N O R S T  + + +

T

+
+
testAddTweet() - Method in class ca.ualberta.cs.lonelytwitter.TweetListTest
+
 
+
testDelete() - Method in class ca.ualberta.cs.lonelytwitter.TweetListTest
+
 
+
testGetTweet() - Method in class ca.ualberta.cs.lonelytwitter.TweetListTest
+
 
+
testHasTweet() - Method in class ca.ualberta.cs.lonelytwitter.TweetListTest
+
 
+
testStart() - Method in class ca.ualberta.cs.lonelytwitter.LonelyTwitterActivityTest
+
 
+
toString() - Method in class ca.ualberta.cs.lonelytwitter.Tweet
+
 
+
trimExtraSpaces(String) - Method in class ca.ualberta.cs.lonelytwitter.LonelyTwitterActivity
+
 
+
Tweet - Class in ca.ualberta.cs.lonelytwitter
+
+
The type Tweet.
+
+
Tweet(String) - Constructor for class ca.ualberta.cs.lonelytwitter.Tweet
+
+
Instantiates a new Tweet.
+
+
Tweet(String, Date) - Constructor for class ca.ualberta.cs.lonelytwitter.Tweet
+
+
Instantiates a new Tweet.
+
+
Tweetable - Interface in ca.ualberta.cs.lonelytwitter
+
 
+
tweetList - Variable in class ca.ualberta.cs.lonelytwitter.LonelyTwitterActivity
+
 
+
TweetList - Class in ca.ualberta.cs.lonelytwitter
+
 
+
TweetList() - Constructor for class ca.ualberta.cs.lonelytwitter.TweetList
+
 
+
TweetListTest - Class in ca.ualberta.cs.lonelytwitter
+
+
Created by makepeac on 9/29/16.
+
+
TweetListTest() - Constructor for class ca.ualberta.cs.lonelytwitter.TweetListTest
+
 
+
tweets - Variable in class ca.ualberta.cs.lonelytwitter.TweetList
+
 
+
TweetTooLongException - Exception in ca.ualberta.cs.lonelytwitter
+
 
+
TweetTooLongException() - Constructor for exception ca.ualberta.cs.lonelytwitter.TweetTooLongException
+
 
+
+A B C D F G H I L M N O R S T 
+ +
+ + + + + +
+ + + + diff --git a/docs/index-files/index-16.html b/docs/index-files/index-16.html new file mode 100644 index 0000000000..e97044bcd8 --- /dev/null +++ b/docs/index-files/index-16.html @@ -0,0 +1,120 @@ + + + + + +V-Index + + + + + + + +
+ + + + + +
+ + +
A B C D F G H I L M N O R S T V  + + +

V

+
+
VERSION_CODE - Static variable in class ca.ualberta.cs.lonelytwitter.BuildConfig
+
 
+
VERSION_NAME - Static variable in class ca.ualberta.cs.lonelytwitter.BuildConfig
+
 
+
+A B C D F G H I L M N O R S T V 
+ +
+ + + + + +
+ + + + diff --git a/docs/index-files/index-2.html b/docs/index-files/index-2.html new file mode 100644 index 0000000000..464cae0d5b --- /dev/null +++ b/docs/index-files/index-2.html @@ -0,0 +1,118 @@ + + + + + +B-Index + + + + + + + +
+ + + + + +
+ + +
A B C D F G H I L M N O R S T  + + +

B

+
+
bodyText - Variable in class ca.ualberta.cs.lonelytwitter.LonelyTwitterActivity
+
 
+
+A B C D F G H I L M N O R S T 
+ +
+ + + + + +
+ + + + diff --git a/docs/index-files/index-3.html b/docs/index-files/index-3.html new file mode 100644 index 0000000000..239cc133a6 --- /dev/null +++ b/docs/index-files/index-3.html @@ -0,0 +1,120 @@ + + + + + +C-Index + + + + + + + +
+ + + + + +
+ + +
A B C D F G H I L M N O R S T  + + +

C

+
+
ca.ualberta.cs.lonelytwitter - package ca.ualberta.cs.lonelytwitter
+
+
Test package documentation.
+
+
+A B C D F G H I L M N O R S T 
+ +
+ + + + + +
+ + + + diff --git a/docs/index-files/index-4.html b/docs/index-files/index-4.html new file mode 100644 index 0000000000..a1e4704ea3 --- /dev/null +++ b/docs/index-files/index-4.html @@ -0,0 +1,120 @@ + + + + + +D-Index + + + + + + + +
+ + + + + +
+ + +
A B C D F G H I L M N O R S T  + + +

D

+
+
date - Variable in class ca.ualberta.cs.lonelytwitter.Tweet
+
 
+
delete(Tweet) - Method in class ca.ualberta.cs.lonelytwitter.TweetList
+
 
+
+A B C D F G H I L M N O R S T 
+ +
+ + + + + +
+ + + + diff --git a/docs/index-files/index-5.html b/docs/index-files/index-5.html new file mode 100644 index 0000000000..4ae1ca8655 --- /dev/null +++ b/docs/index-files/index-5.html @@ -0,0 +1,120 @@ + + + + + +F-Index + + + + + + + +
+ + + + + +
+ + +
A B C D F G H I L M N O R S T  + + +

F

+
+
FILENAME - Static variable in class ca.ualberta.cs.lonelytwitter.LonelyTwitterActivity
+
+
The file that all the tweets are saved there.
+
+
+A B C D F G H I L M N O R S T 
+ +
+ + + + + +
+ + + + diff --git a/docs/index-files/index-6.html b/docs/index-files/index-6.html new file mode 100644 index 0000000000..77c7ec13bd --- /dev/null +++ b/docs/index-files/index-6.html @@ -0,0 +1,126 @@ + + + + + +G-Index + + + + + + + +
+ + + + + +
+ + +
A B C D F G H I L M N O R S T  + + +

G

+
+
getDate() - Method in class ca.ualberta.cs.lonelytwitter.Tweet
+
 
+
getDate() - Method in interface ca.ualberta.cs.lonelytwitter.Tweetable
+
 
+
getMessage() - Method in class ca.ualberta.cs.lonelytwitter.Tweet
+
 
+
getMessage() - Method in interface ca.ualberta.cs.lonelytwitter.Tweetable
+
 
+
getTweet(int) - Method in class ca.ualberta.cs.lonelytwitter.TweetList
+
 
+
+A B C D F G H I L M N O R S T 
+ +
+ + + + + +
+ + + + diff --git a/docs/index-files/index-7.html b/docs/index-files/index-7.html new file mode 100644 index 0000000000..3e885ba46f --- /dev/null +++ b/docs/index-files/index-7.html @@ -0,0 +1,118 @@ + + + + + +H-Index + + + + + + + +
+ + + + + +
+ + +
A B C D F G H I L M N O R S T  + + +

H

+
+
hasTweet(Tweet) - Method in class ca.ualberta.cs.lonelytwitter.TweetList
+
 
+
+A B C D F G H I L M N O R S T 
+ +
+ + + + + +
+ + + + diff --git a/docs/index-files/index-8.html b/docs/index-files/index-8.html new file mode 100644 index 0000000000..ef83897ec7 --- /dev/null +++ b/docs/index-files/index-8.html @@ -0,0 +1,128 @@ + + + + + +I-Index + + + + + + + +
+ + + + + +
+ + +
A B C D F G H I L M N O R S T  + + +

I

+
+
ImportantTweet - Class in ca.ualberta.cs.lonelytwitter
+
 
+
ImportantTweet(String) - Constructor for class ca.ualberta.cs.lonelytwitter.ImportantTweet
+
 
+
isImportant() - Method in class ca.ualberta.cs.lonelytwitter.ImportantTweet
+
 
+
isImportant() - Method in class ca.ualberta.cs.lonelytwitter.NormalTweet
+
 
+
isImportant() - Method in class ca.ualberta.cs.lonelytwitter.Tweet
+
+
Is important boolean.
+
+
+A B C D F G H I L M N O R S T 
+ +
+ + + + + +
+ + + + diff --git a/docs/index-files/index-9.html b/docs/index-files/index-9.html new file mode 100644 index 0000000000..56ecd17a31 --- /dev/null +++ b/docs/index-files/index-9.html @@ -0,0 +1,130 @@ + + + + + +L-Index + + + + + + + +
+ + + + + +
+ + +
A B C D F G H I L M N O R S T  + + +

L

+
+
loadFromFile() - Method in class ca.ualberta.cs.lonelytwitter.LonelyTwitterActivity
+
 
+
LonelyTwitterActivity - Class in ca.ualberta.cs.lonelytwitter
+
+
This class is the main view class of the project.
+
+
LonelyTwitterActivity() - Constructor for class ca.ualberta.cs.lonelytwitter.LonelyTwitterActivity
+
 
+
LonelyTwitterActivityTest - Class in ca.ualberta.cs.lonelytwitter
+
+
Created by wz on 14/09/15.
+
+
LonelyTwitterActivityTest() - Constructor for class ca.ualberta.cs.lonelytwitter.LonelyTwitterActivityTest
+
 
+
+A B C D F G H I L M N O R S T 
+ +
+ + + + + +
+ + + + diff --git a/docs/index.html b/docs/index.html new file mode 100644 index 0000000000..b3871f741d --- /dev/null +++ b/docs/index.html @@ -0,0 +1,71 @@ + + + + + +Generated Documentation (Untitled) + + + + + + +<noscript> +<div>JavaScript is disabled on your browser.</div> +</noscript> +<h2>Frame Alert</h2> +<p>This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. Link to <a href="ca/ualberta/cs/lonelytwitter/package-summary.html">Non-frame version</a>.</p> + + + diff --git a/docs/overview-tree.html b/docs/overview-tree.html new file mode 100644 index 0000000000..dcf18c9fd3 --- /dev/null +++ b/docs/overview-tree.html @@ -0,0 +1,160 @@ + + + + + +Class Hierarchy + + + + + + + +
+ + + + + +
+ + +
+

Hierarchy For All Packages

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +

Interface Hierarchy

+ +
+ +
+ + + + + +
+ + + + diff --git a/docs/package-list b/docs/package-list new file mode 100644 index 0000000000..d3f926c0b1 --- /dev/null +++ b/docs/package-list @@ -0,0 +1 @@ +ca.ualberta.cs.lonelytwitter diff --git a/docs/resources/background.gif b/docs/resources/background.gif new file mode 100644 index 0000000000000000000000000000000000000000..f471940fde2f39ef8943a6af9569bcf986b1579b GIT binary patch literal 2313 zcmV+k3HJ6!Nk%w1VKM-40OkMy00030|NlK(aXwsfKV5S}VtGJbbVOr%L0@%CZH88Q zl{{NzcR^uxNo<2iYk@pjY)*5FJz8x~bc{)B zfk z+1T6M-s9WdW8dcJ-wO*3@9+W*5AY543-j^$^!EPz_4eHZ2#>)41`h@dc!2OAgN6$a zCS2I?;lqgx6IR4nkpTe;1RN0f=zxMq2O=q`94V5d$&e>Unta)^<;;^G3>e7yp=ZvW z6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nejn`~DcZJI+QC-xU zoxz=5z0k%1;jBrGI%Th~FQElrAPr?E-Fv9|o09dPk=?>f)jFKL8PK|;w(cVDq>YWP zEfL7RGBv|<>f4IccND3wCi*V8`>#a$FPZu&a{V`W`me+Kuf_CJ)%IV%?5ByL^#3Q{ z&uBM5|34IKI>0_Tz{5OngXe#6w*N6;;5PH%9n%56%RaWA{wJ4%515Apdj`a62bp<> zM12OuV+QZ^55ATkViO(UWgg}%9C}kb^r~=BiDyWIXZWM&kb>Q?dd$#W`4KU|2#4qh zz;sZ>ZqS5h#Kdk$&1c9AHmDUdtmHE)CqH0RIAZEE;t(^+RXF+*FlJyk;?6Vn{&MsO zZ0HwY)b4Va!F1#s^N5$-s9(&mPa*Lu4>4SxXm~l|3?PR2jB1J!Q|(4#0i$lFME^-r zA~Q(2O+PHOdcVN((R8zqi>%+yx4PA5u&+jI zZ?)Fm8m-+`n!Bnrx0PvZE7!Q)Z+NTE@K(R!nO40sZF(n~bq_b_9H`UYU#q>pPJ3UC z_UeU>J7qcy%%`ks9)BNcS^GDOn z?oKkjHNoWO1e2?M#vd12e^_AscAnLnc~-CISiYWX`D%{k^H~<37unpMYJYdSv=Om2vbAM@`Qp{{SI=yP zj6WN*eEt0G$9EPX6FU%)-ho>hWTW!yzXBIo73<0umM-=@eG&niY^` zlG(|vuCl_x(X^Fob@=i{8+M5vWf7Bz=#aHGTNA;fZQyfbfueI8Z^639n`(DI%w^-^ zl`=@!u)r~Xf920-xd$Ab+S&PJY%K0H8a_J8uN3^_!K1_NV$*e#*Y*6|)XpiW=9H`*`Xx7W%v@7{XDma1?v0a%(K6rI&1!a YpWXKgmku8Vj|K)Vje`mzEKCg608Q#dYybcN literal 0 HcmV?d00001 diff --git a/docs/serialized-form.html b/docs/serialized-form.html new file mode 100644 index 0000000000..dbd34cbf2c --- /dev/null +++ b/docs/serialized-form.html @@ -0,0 +1,126 @@ + + + + + +Serialized Form + + + + + + + +
+ + + + + +
+ + +
+

Serialized Form

+
+
+ +
+ +
+ + + + + +
+ + + + diff --git a/docs/stylesheet.css b/docs/stylesheet.css new file mode 100644 index 0000000000..0aeaa97fe0 --- /dev/null +++ b/docs/stylesheet.css @@ -0,0 +1,474 @@ +/* Javadoc style sheet */ +/* +Overall document style +*/ +body { + background-color:#ffffff; + color:#353833; + font-family:Arial, Helvetica, sans-serif; + font-size:76%; + margin:0; +} +a:link, a:visited { + text-decoration:none; + color:#4c6b87; +} +a:hover, a:focus { + text-decoration:none; + color:#bb7a2a; +} +a:active { + text-decoration:none; + color:#4c6b87; +} +a[name] { + color:#353833; +} +a[name]:hover { + text-decoration:none; + color:#353833; +} +pre { + font-size:1.3em; +} +h1 { + font-size:1.8em; +} +h2 { + font-size:1.5em; +} +h3 { + font-size:1.4em; +} +h4 { + font-size:1.3em; +} +h5 { + font-size:1.2em; +} +h6 { + font-size:1.1em; +} +ul { + list-style-type:disc; +} +code, tt { + font-size:1.2em; +} +dt code { + font-size:1.2em; +} +table tr td dt code { + font-size:1.2em; + vertical-align:top; +} +sup { + font-size:.6em; +} +/* +Document title and Copyright styles +*/ +.clear { + clear:both; + height:0px; + overflow:hidden; +} +.aboutLanguage { + float:right; + padding:0px 21px; + font-size:.8em; + z-index:200; + margin-top:-7px; +} +.legalCopy { + margin-left:.5em; +} +.bar a, .bar a:link, .bar a:visited, .bar a:active { + color:#FFFFFF; + text-decoration:none; +} +.bar a:hover, .bar a:focus { + color:#bb7a2a; +} +.tab { + background-color:#0066FF; + background-image:url(resources/titlebar.gif); + background-position:left top; + background-repeat:no-repeat; + color:#ffffff; + padding:8px; + width:5em; + font-weight:bold; +} +/* +Navigation bar styles +*/ +.bar { + background-image:url(resources/background.gif); + background-repeat:repeat-x; + color:#FFFFFF; + padding:.8em .5em .4em .8em; + height:auto;/*height:1.8em;*/ + font-size:1em; + margin:0; +} +.topNav { + background-image:url(resources/background.gif); + background-repeat:repeat-x; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; +} +.bottomNav { + margin-top:10px; + background-image:url(resources/background.gif); + background-repeat:repeat-x; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; +} +.subNav { + background-color:#dee3e9; + border-bottom:1px solid #9eadc0; + float:left; + width:100%; + overflow:hidden; +} +.subNav div { + clear:left; + float:left; + padding:0 0 5px 6px; +} +ul.navList, ul.subNavList { + float:left; + margin:0 25px 0 0; + padding:0; +} +ul.navList li{ + list-style:none; + float:left; + padding:3px 6px; +} +ul.subNavList li{ + list-style:none; + float:left; + font-size:90%; +} +.topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link, .bottomNav a:active, .bottomNav a:visited { + color:#FFFFFF; + text-decoration:none; +} +.topNav a:hover, .bottomNav a:hover { + text-decoration:none; + color:#bb7a2a; +} +.navBarCell1Rev { + background-image:url(resources/tab.gif); + background-color:#a88834; + color:#FFFFFF; + margin: auto 5px; + border:1px solid #c9aa44; +} +/* +Page header and footer styles +*/ +.header, .footer { + clear:both; + margin:0 20px; + padding:5px 0 0 0; +} +.indexHeader { + margin:10px; + position:relative; +} +.indexHeader h1 { + font-size:1.3em; +} +.title { + color:#2c4557; + margin:10px 0; +} +.subTitle { + margin:5px 0 0 0; +} +.header ul { + margin:0 0 25px 0; + padding:0; +} +.footer ul { + margin:20px 0 5px 0; +} +.header ul li, .footer ul li { + list-style:none; + font-size:1.2em; +} +/* +Heading styles +*/ +div.details ul.blockList ul.blockList ul.blockList li.blockList h4, div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 { + background-color:#dee3e9; + border-top:1px solid #9eadc0; + border-bottom:1px solid #9eadc0; + margin:0 0 6px -8px; + padding:2px 5px; +} +ul.blockList ul.blockList ul.blockList li.blockList h3 { + background-color:#dee3e9; + border-top:1px solid #9eadc0; + border-bottom:1px solid #9eadc0; + margin:0 0 6px -8px; + padding:2px 5px; +} +ul.blockList ul.blockList li.blockList h3 { + padding:0; + margin:15px 0; +} +ul.blockList li.blockList h2 { + padding:0px 0 20px 0; +} +/* +Page layout container styles +*/ +.contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer { + clear:both; + padding:10px 20px; + position:relative; +} +.indexContainer { + margin:10px; + position:relative; + font-size:1.0em; +} +.indexContainer h2 { + font-size:1.1em; + padding:0 0 3px 0; +} +.indexContainer ul { + margin:0; + padding:0; +} +.indexContainer ul li { + list-style:none; +} +.contentContainer .description dl dt, .contentContainer .details dl dt, .serializedFormContainer dl dt { + font-size:1.1em; + font-weight:bold; + margin:10px 0 0 0; + color:#4E4E4E; +} +.contentContainer .description dl dd, .contentContainer .details dl dd, .serializedFormContainer dl dd { + margin:10px 0 10px 20px; +} +.serializedFormContainer dl.nameValue dt { + margin-left:1px; + font-size:1.1em; + display:inline; + font-weight:bold; +} +.serializedFormContainer dl.nameValue dd { + margin:0 0 0 1px; + font-size:1.1em; + display:inline; +} +/* +List styles +*/ +ul.horizontal li { + display:inline; + font-size:0.9em; +} +ul.inheritance { + margin:0; + padding:0; +} +ul.inheritance li { + display:inline; + list-style:none; +} +ul.inheritance li ul.inheritance { + margin-left:15px; + padding-left:15px; + padding-top:1px; +} +ul.blockList, ul.blockListLast { + margin:10px 0 10px 0; + padding:0; +} +ul.blockList li.blockList, ul.blockListLast li.blockList { + list-style:none; + margin-bottom:25px; +} +ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast li.blockList { + padding:0px 20px 5px 10px; + border:1px solid #9eadc0; + background-color:#f9f9f9; +} +ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList ul.blockListLast li.blockList { + padding:0 0 5px 8px; + background-color:#ffffff; + border:1px solid #9eadc0; + border-top:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockList { + margin-left:0; + padding-left:0; + padding-bottom:15px; + border:none; + border-bottom:1px solid #9eadc0; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast { + list-style:none; + border-bottom:none; + padding-bottom:0; +} +table tr td dl, table tr td dl dt, table tr td dl dd { + margin-top:0; + margin-bottom:1px; +} +/* +Table styles +*/ +.contentContainer table, .classUseContainer table, .constantValuesContainer table { + border-bottom:1px solid #9eadc0; + width:100%; +} +.contentContainer ul li table, .classUseContainer ul li table, .constantValuesContainer ul li table { + width:100%; +} +.contentContainer .description table, .contentContainer .details table { + border-bottom:none; +} +.contentContainer ul li table th.colOne, .contentContainer ul li table th.colFirst, .contentContainer ul li table th.colLast, .classUseContainer ul li table th, .constantValuesContainer ul li table th, .contentContainer ul li table td.colOne, .contentContainer ul li table td.colFirst, .contentContainer ul li table td.colLast, .classUseContainer ul li table td, .constantValuesContainer ul li table td{ + vertical-align:top; + padding-right:20px; +} +.contentContainer ul li table th.colLast, .classUseContainer ul li table th.colLast,.constantValuesContainer ul li table th.colLast, +.contentContainer ul li table td.colLast, .classUseContainer ul li table td.colLast,.constantValuesContainer ul li table td.colLast, +.contentContainer ul li table th.colOne, .classUseContainer ul li table th.colOne, +.contentContainer ul li table td.colOne, .classUseContainer ul li table td.colOne { + padding-right:3px; +} +.overviewSummary caption, .packageSummary caption, .contentContainer ul.blockList li.blockList caption, .summary caption, .classUseContainer caption, .constantValuesContainer caption { + position:relative; + text-align:left; + background-repeat:no-repeat; + color:#FFFFFF; + font-weight:bold; + clear:none; + overflow:hidden; + padding:0px; + margin:0px; +} +caption a:link, caption a:hover, caption a:active, caption a:visited { + color:#FFFFFF; +} +.overviewSummary caption span, .packageSummary caption span, .contentContainer ul.blockList li.blockList caption span, .summary caption span, .classUseContainer caption span, .constantValuesContainer caption span { + white-space:nowrap; + padding-top:8px; + padding-left:8px; + display:block; + float:left; + background-image:url(resources/titlebar.gif); + height:18px; +} +.overviewSummary .tabEnd, .packageSummary .tabEnd, .contentContainer ul.blockList li.blockList .tabEnd, .summary .tabEnd, .classUseContainer .tabEnd, .constantValuesContainer .tabEnd { + width:10px; + background-image:url(resources/titlebar_end.gif); + background-repeat:no-repeat; + background-position:top right; + position:relative; + float:left; +} +ul.blockList ul.blockList li.blockList table { + margin:0 0 12px 0px; + width:100%; +} +.tableSubHeadingColor { + background-color: #EEEEFF; +} +.altColor { + background-color:#eeeeef; +} +.rowColor { + background-color:#ffffff; +} +.overviewSummary td, .packageSummary td, .contentContainer ul.blockList li.blockList td, .summary td, .classUseContainer td, .constantValuesContainer td { + text-align:left; + padding:3px 3px 3px 7px; +} +th.colFirst, th.colLast, th.colOne, .constantValuesContainer th { + background:#dee3e9; + border-top:1px solid #9eadc0; + border-bottom:1px solid #9eadc0; + text-align:left; + padding:3px 3px 3px 7px; +} +td.colOne a:link, td.colOne a:active, td.colOne a:visited, td.colOne a:hover, td.colFirst a:link, td.colFirst a:active, td.colFirst a:visited, td.colFirst a:hover, td.colLast a:link, td.colLast a:active, td.colLast a:visited, td.colLast a:hover, .constantValuesContainer td a:link, .constantValuesContainer td a:active, .constantValuesContainer td a:visited, .constantValuesContainer td a:hover { + font-weight:bold; +} +td.colFirst, th.colFirst { + border-left:1px solid #9eadc0; + white-space:nowrap; +} +td.colLast, th.colLast { + border-right:1px solid #9eadc0; +} +td.colOne, th.colOne { + border-right:1px solid #9eadc0; + border-left:1px solid #9eadc0; +} +table.overviewSummary { + padding:0px; + margin-left:0px; +} +table.overviewSummary td.colFirst, table.overviewSummary th.colFirst, +table.overviewSummary td.colOne, table.overviewSummary th.colOne { + width:25%; + vertical-align:middle; +} +table.packageSummary td.colFirst, table.overviewSummary th.colFirst { + width:25%; + vertical-align:middle; +} +/* +Content styles +*/ +.description pre { + margin-top:0; +} +.deprecatedContent { + margin:0; + padding:10px 0; +} +.docSummary { + padding:0; +} +/* +Formatting effect styles +*/ +.sourceLineNo { + color:green; + padding:0 30px 0 0; +} +h1.hidden { + visibility:hidden; + overflow:hidden; + font-size:.9em; +} +.block { + display:block; + margin:3px 0 0 0; +} +.strong { + font-weight:bold; +} From b38ca43ea9aa32c4e36d8458a048705ac14f346d Mon Sep 17 00:00:00 2001 From: Ian Watts Date: Tue, 11 Oct 2016 16:21:22 -0600 Subject: [PATCH 09/12] Cleanup for start of lab6 --- .../cs/lonelytwitter/LonelyTwitterActivity.java | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/app/src/main/java/ca/ualberta/cs/lonelytwitter/LonelyTwitterActivity.java b/app/src/main/java/ca/ualberta/cs/lonelytwitter/LonelyTwitterActivity.java index 86f7b07293..53a82ab10d 100644 --- a/app/src/main/java/ca/ualberta/cs/lonelytwitter/LonelyTwitterActivity.java +++ b/app/src/main/java/ca/ualberta/cs/lonelytwitter/LonelyTwitterActivity.java @@ -26,7 +26,6 @@ public class LonelyTwitterActivity extends Activity { private static final String FILENAME = "file.sav"; - private enum Ordering {DATE_ASCENDING, DATE_DESCENDING, TEXT_ASCENDING, TEXT_DESCENDING}; private EditText bodyText; private ListView oldTweetsList; private ArrayList tweetList = new ArrayList(); @@ -46,7 +45,6 @@ public void onCreate(Bundle savedInstanceState) { public void onClick(View v) { setResult(RESULT_OK); String text = bodyText.getText().toString(); - text = trimExtraSpaces(text); Tweet newTweet = new NormalTweet(text); tweetList.add(newTweet); adapter.notifyDataSetChanged(); @@ -65,17 +63,8 @@ protected void onStart() { oldTweetsList.setAdapter(adapter); } - private String trimExtraSpaces(String inputString){ - inputString = inputString.replaceAll("\\s+", " "); - return inputString; - } - - private void sortTweetListItems(Ordering ordering){ - - } private void loadFromFile() { - ArrayList tweets = new ArrayList(); try { FileInputStream fis = openFileInput(FILENAME); BufferedReader in = new BufferedReader(new InputStreamReader(fis)); From a11555e8c07e8851cf83edd8e7b46a316c137473 Mon Sep 17 00:00:00 2001 From: kassenov Date: Tue, 17 Oct 2017 00:27:30 -0600 Subject: [PATCH 10/12] Prep for lab7 --- .idea/gradle.xml | 1 + .idea/misc.xml | 2 +- .idea/workspace.xml | 1806 +++++++++++------ app/build.gradle | 2 +- .../LonelyTwitterActivityTest.java | 3 - .../cs/lonelytwitter/TweetListTest.java | 3 - build.gradle | 2 +- gradle/wrapper/gradle-wrapper.properties | 4 +- 8 files changed, 1149 insertions(+), 674 deletions(-) diff --git a/.idea/gradle.xml b/.idea/gradle.xml index 1bbc21dc23..195e217b2c 100644 --- a/.idea/gradle.xml +++ b/.idea/gradle.xml @@ -12,6 +12,7 @@ + diff --git a/.idea/misc.xml b/.idea/misc.xml index 40cae9e35a..54110a8132 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -55,7 +55,7 @@ - + diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 0699733f17..ad767ca72a 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -18,33 +18,64 @@ - + + + + + + + + + + + + - - + + - + - - + + + + + + + + + + + + + + + + + + + + + + - + @@ -54,6 +85,16 @@ + + - - - - @@ -1497,6 +1799,8 @@ + + @@ -1516,10 +1820,6 @@ - - + + @@ -1579,29 +1873,81 @@ - - + + + + + + + + + + + - + @@ -1636,30 +2010,6 @@ - - - - - - - - - @@ -1701,30 +2051,99 @@ - + - + + + + + + + + + - @@ -1747,44 +2189,47 @@ 1475601070538 - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1819,18 +2264,37 @@ - + + + + + + + + + + + + + + + + + + + + - - + + - + @@ -1838,7 +2302,7 @@ - + @@ -1851,7 +2315,7 @@ - + @@ -1859,15 +2323,31 @@ - + - - + + + + + + + + + + + + + + + + + + diff --git a/app/build.gradle b/app/build.gradle index 38e4ef9533..5aa1467654 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -1,7 +1,7 @@ apply plugin: 'com.android.application' android { compileSdkVersion 18 - buildToolsVersion "22.0.1" + buildToolsVersion '25.0.0' defaultConfig { applicationId "ca.ualberta.cs.lonelytwitter" diff --git a/app/src/androidTest/java/ca/ualberta/cs/lonelytwitter/LonelyTwitterActivityTest.java b/app/src/androidTest/java/ca/ualberta/cs/lonelytwitter/LonelyTwitterActivityTest.java index 495680650f..3d07d1fb45 100644 --- a/app/src/androidTest/java/ca/ualberta/cs/lonelytwitter/LonelyTwitterActivityTest.java +++ b/app/src/androidTest/java/ca/ualberta/cs/lonelytwitter/LonelyTwitterActivityTest.java @@ -5,9 +5,6 @@ import junit.framework.TestCase; -/** - * Created by wz on 14/09/15. - */ public class LonelyTwitterActivityTest extends ActivityInstrumentationTestCase2 { public LonelyTwitterActivityTest() { diff --git a/app/src/androidTest/java/ca/ualberta/cs/lonelytwitter/TweetListTest.java b/app/src/androidTest/java/ca/ualberta/cs/lonelytwitter/TweetListTest.java index cb8abc4a6f..45200616c0 100644 --- a/app/src/androidTest/java/ca/ualberta/cs/lonelytwitter/TweetListTest.java +++ b/app/src/androidTest/java/ca/ualberta/cs/lonelytwitter/TweetListTest.java @@ -2,9 +2,6 @@ import android.test.ActivityInstrumentationTestCase2; -/** - * Created by makepeac on 9/29/16. - */ public class TweetListTest extends ActivityInstrumentationTestCase2 { public TweetListTest(){ diff --git a/build.gradle b/build.gradle index 6a5c233c5d..8674409cc6 100644 --- a/build.gradle +++ b/build.gradle @@ -4,7 +4,7 @@ buildscript { jcenter() } dependencies { - classpath 'com.android.tools.build:gradle:1.3.0' + classpath 'com.android.tools.build:gradle:2.3.3' } } diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index f23df6e463..0d204ae16a 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ -#Wed Oct 21 11:34:03 PDT 2015 +#Tue Oct 17 00:25:11 MDT 2017 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-2.8-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip From 28faaa548dc9de9a91e7548e9077fd1f4a85e80b Mon Sep 17 00:00:00 2001 From: charleshoang1 Date: Tue, 17 Oct 2017 17:30:40 -0600 Subject: [PATCH 11/12] lab7 --- .idea/libraries/robotium_solo_5_6_3.xml | 11 + .idea/modules.xml | 1 + .idea/workspace.xml | 361 +++++++++++------- app/build.gradle | 1 + .../LonelyTwitterActivityTest.java | 14 + 5 files changed, 246 insertions(+), 142 deletions(-) create mode 100644 .idea/libraries/robotium_solo_5_6_3.xml diff --git a/.idea/libraries/robotium_solo_5_6_3.xml b/.idea/libraries/robotium_solo_5_6_3.xml new file mode 100644 index 0000000000..1cb81f88ac --- /dev/null +++ b/.idea/libraries/robotium_solo_5_6_3.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml index c15affbaa2..c0c7774c0b 100644 --- a/.idea/modules.xml +++ b/.idea/modules.xml @@ -2,6 +2,7 @@ + diff --git a/.idea/workspace.xml b/.idea/workspace.xml index ad767ca72a..d0e15babe9 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -42,11 +42,10 @@ - + - - + @@ -55,8 +54,8 @@ - - + + @@ -65,8 +64,8 @@ - - + + @@ -75,9 +74,18 @@ - + - + + + + + + + + + + @@ -1415,7 +1423,7 @@ - @@ -1803,6 +1810,7 @@ + @@ -1859,9 +1867,8 @@ - - + @@ -1872,6 +1879,9 @@ + + + @@ -2195,13 +2205,13 @@ - + + - @@ -2211,13 +2221,13 @@ - + - - + + @@ -2262,13 +2272,55 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + @@ -2277,7 +2329,16 @@ - + + + + + + + + + + @@ -2286,8 +2347,7 @@ - - + @@ -2296,7 +2356,16 @@ - + + + + + + + + + + @@ -2315,35 +2384,43 @@ - + - + + + + + + + + + + - + - - + - - + + - - + + diff --git a/app/build.gradle b/app/build.gradle index 5aa1467654..9592c5e0a1 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -23,4 +23,5 @@ android { dependencies { compile 'com.google.code.gson:gson:2.7' + compile 'com.jayway.android.robotium:robotium-solo:5.6.3' } \ No newline at end of file diff --git a/app/src/androidTest/java/ca/ualberta/cs/lonelytwitter/LonelyTwitterActivityTest.java b/app/src/androidTest/java/ca/ualberta/cs/lonelytwitter/LonelyTwitterActivityTest.java index 3d07d1fb45..fd2507d855 100644 --- a/app/src/androidTest/java/ca/ualberta/cs/lonelytwitter/LonelyTwitterActivityTest.java +++ b/app/src/androidTest/java/ca/ualberta/cs/lonelytwitter/LonelyTwitterActivityTest.java @@ -3,14 +3,28 @@ import android.app.Activity; import android.test.ActivityInstrumentationTestCase2; +import com.robotium.solo.Solo; + import junit.framework.TestCase; public class LonelyTwitterActivityTest extends ActivityInstrumentationTestCase2 { + + private Solo solo; + public LonelyTwitterActivityTest() { super(ca.ualberta.cs.lonelytwitter.LonelyTwitterActivity.class); } + /** + * Runs before starting test + * @throws Exception + */ + public void setUP() throws Exception{ + solo = new Solo(getInstrumentation(), getActivity()); + } + + public void testStart() throws Exception { Activity activity = getActivity(); From 774e106f244a7d9fbe3c27760ddc384447412f9d Mon Sep 17 00:00:00 2001 From: charleshoang1 Date: Tue, 17 Oct 2017 17:33:14 -0600 Subject: [PATCH 12/12] test --- .idea/workspace.xml | 8 ++++---- .../cs/lonelytwitter/LonelyTwitterActivityTest.java | 13 +++++++++++++ 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index d0e15babe9..af8572292b 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -54,8 +54,8 @@ - - + + @@ -2419,8 +2419,8 @@ - - + + diff --git a/app/src/androidTest/java/ca/ualberta/cs/lonelytwitter/LonelyTwitterActivityTest.java b/app/src/androidTest/java/ca/ualberta/cs/lonelytwitter/LonelyTwitterActivityTest.java index fd2507d855..714ac1fa9b 100644 --- a/app/src/androidTest/java/ca/ualberta/cs/lonelytwitter/LonelyTwitterActivityTest.java +++ b/app/src/androidTest/java/ca/ualberta/cs/lonelytwitter/LonelyTwitterActivityTest.java @@ -29,4 +29,17 @@ public void testStart() throws Exception { Activity activity = getActivity(); } + + public void testTweet(){ + solo.assertCurrentActivity("Wrong Activity", LonelyTwitterActivity.class); + } + + /** + * Runs after tests + * @throws Exception + */ + @Override + public void tearDown() throws Exception{ + solo.finishOpenedActivities(); + } } \ No newline at end of file