Android Open Source - govchecker Hansard Search






From Project

Back to project page govchecker.

License

The source code is released under:

GNU General Public License

If you think the Android project govchecker listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.govchecker;
// w w  w . ja  v a 2s .c o  m
import java.io.IOException;

import org.json.JSONException;
import org.json.JSONObject;

import android.view.View;
import android.widget.LinearLayout;


public class HansardSearch
{
  private final String url;
  private JSONObject resultJson;
  private String resultRaw;
  private View view;
  private LinearLayout hansInnerLayout;

  public HansardSearch(String url)
  {
    this.url = url;
  }
  public HansardSearch(String url, View view, LinearLayout hansInnerLayout)
  {
    this.url = url;
    this.view = view;
    this.hansInnerLayout = hansInnerLayout;
  }

  public void fetchSearchResult() throws IOException
  {
    this.resultRaw = Utilities.getDataFromUrl(this.url, "url");
  }
  public void setJsonResultFromRawResult() throws JSONException
  {
    this.resultJson = new JSONObject(this.resultRaw);
  }
  public void fetchSearchResultAndSetJsonResult() throws IOException, JSONException
  {
    fetchSearchResult();
    setJsonResultFromRawResult();
  }
  public String getResultRaw()
  {
    return this.resultRaw;
  }
  public JSONObject getResultJson()
  {
    return this.resultJson;
  }
  public View getView()
  {
    return this.view;
  }
  public LinearLayout getHansInnerLayout()
  {
    return this.hansInnerLayout;
  }

}




Java Source Code List

com.govchecker.HansardSearchDisplay.java
com.govchecker.HansardSearch.java
com.govchecker.OAWebView.java
com.govchecker.OpenAusDB.java
com.govchecker.OpenAusSearchDroid.java
com.govchecker.RepSearch.java
com.govchecker.Rep_Display.java
com.govchecker.Rep_Object.java
com.govchecker.SearchHansardActivity.java
com.govchecker.SearchRepsActivity.java
com.govchecker.SearchSenate.java
com.govchecker.Utilities.java
com.govchecker.VoteResultDisplay.java