|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectActivity
com.blogspot.applications4android.comicreader.core.ComicActivity
com.blogspot.applications4android.comicreader.ComicStripViewer
public class ComicStripViewer
Activity which is responsible for displaying a comic-series. This also provides the UI for 'navigating' in this comic-series.
Field Summary |
---|
Fields inherited from class com.blogspot.applications4android.comicreader.core.ComicActivity |
---|
mColor1, mColor2 |
Constructor Summary | |
---|---|
ComicStripViewer()
|
Method Summary | |
---|---|
void |
cacheCleaner(int type)
Updater to clear the cache |
void |
displayStrip(int comic_type)
Update the view in the given activity with the comic type |
Comic |
getComic()
Returns the comic series being displayed right now |
LinearLayout |
getControlsLayout()
Returns the layout containing the controls for strip navigation |
Strip |
getStripFromUrl(java.lang.String url)
Get the strip from the given url |
boolean |
isCurrentFavorite()
Tells whether the cucrent comic-strip being displayed is favorite or not |
void |
onCreate(Bundle savedInstanceState)
|
boolean |
onCreateOptionsMenu(Menu menu)
|
boolean |
onOptionsItemSelected(MenuItem item)
|
protected void |
onPause()
Called when the activity is finished. |
void |
onResume()
Called when the activity is first created. |
void |
selectAndDisplayStrip(java.lang.String comic_url)
Update the view in the given activity with the comic selected by the user |
void |
setupNextComic()
Set the next comic in the list |
void |
setupPreviousComic()
Set the previous comic in the list |
void |
updateBitmap()
This updates the view with the current comic-strip |
Methods inherited from class com.blogspot.applications4android.comicreader.core.ComicActivity |
---|
displayHtml, ExitActivity, hideResetButton, setupComicsList, showResetButton, storeComicClassList |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ComicStripViewer()
Method Detail |
---|
public void onCreate(Bundle savedInstanceState)
public void onResume()
ComicActivity
onResume
in class ComicActivity
protected void onPause()
ComicActivity
onPause
in class ComicActivity
public Comic getComic()
public LinearLayout getControlsLayout()
public boolean isCurrentFavorite()
public void setupNextComic() throws java.io.IOException, ComicNotFoundException, JSONException, ComicSDCardFull
java.io.IOException
ComicNotFoundException
JSONException
ComicSDCardFull
public void setupPreviousComic() throws ComicNotFoundException, java.io.IOException, JSONException, ComicSDCardFull
ComicNotFoundException
java.io.IOException
JSONException
ComicSDCardFull
public void updateBitmap() throws java.io.FileNotFoundException, BitMapException
BitMapException
java.io.FileNotFoundException
public boolean onCreateOptionsMenu(Menu menu)
public boolean onOptionsItemSelected(MenuItem item)
public void cacheCleaner(int type)
type
- whether to update the strip (pass a value <0 to not update)public void displayStrip(int comic_type)
comic_type
- type of comic to be fetched.public void selectAndDisplayStrip(java.lang.String comic_url)
comic_url
- comic url to be displayedpublic Strip getStripFromUrl(java.lang.String url) throws ClientProtocolException, java.net.URISyntaxException, java.io.IOException, ComicSDCardFull
url
- url
ClientProtocolException
java.net.URISyntaxException
java.io.IOException
ComicSDCardFull
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |