Android Open Source - formulize-android Formulize Application






From Project

Back to project page formulize-android.

License

The source code is released under:

GNU General Public License

If you think the Android project formulize-android 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 ca.formulize.android.data;
/*  w w  w. jav a  2  s  .co m*/
import android.os.Parcel;
import android.os.Parcelable;


/**
 * Represents a Formulize Application and its links it contains to
 * different screens/forms. 
 * 
 * @author timch326
 * 
 */
public class FormulizeApplication implements Parcelable {

  private int appid;
  private String name;
  private String description;
  private FormulizeLink[] links;
  
  public int getAppID() {
    return appid;
  }
  public void setAppID(int appID) {
    this.appid = appID;
  }
  public String getName() {
    return name;
  }
  public void setName(String name) {
    this.name = name;
  }
  public String getDescription() {
    return description;
  }
  public void setDescription(String description) {
    this.description = description;
  }
  public FormulizeLink[] getLinks() {
    return links;
  }
  public void setLinks(FormulizeLink[] links) {
    this.links = links;
  }
  
  public String toString() {
    return name;
  }
  
  /*
   * Implementation of the Parcelable interface below
   * @see android.os.Parcelable
   */
  @Override
  public int describeContents() {
    return 0;
  }

  @Override
  public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(appid);
    dest.writeString(description);
    dest.writeString(name);
    dest.writeParcelableArray(links, 0);
  }

  // static field used to regenerate Formulize link data from a parcel
  public static final Parcelable.Creator<FormulizeApplication> CREATOR = new Parcelable.Creator<FormulizeApplication>() {
    public FormulizeApplication createFromParcel(Parcel pc) {
      return new FormulizeApplication(pc);
    }

    @Override
    public FormulizeApplication[] newArray(int size) {
      return new FormulizeApplication[size];
    }
  };

  // Constructor used by CREATOR object to read data from parcel
  public FormulizeApplication(Parcel pc) {
    appid = pc.readInt();
    description = pc.readString();
    name = pc.readString();
    
    Parcelable[] linksParcel = pc.readParcelableArray(FormulizeLink.class.getClassLoader());
    links = new FormulizeLink[linksParcel.length];
    System.arraycopy(linksParcel, 0, links, 0, linksParcel.length);
  
  }
}




Java Source Code List

ca.formulize.android.connection.FUserSession.java
ca.formulize.android.connection.LoginRunnable.java
ca.formulize.android.connection.LogoutAsyncTask.java
ca.formulize.android.connection.NetworkStateReceiver.java
ca.formulize.android.data.ConnectionInfo.java
ca.formulize.android.data.FormulizeApplication.java
ca.formulize.android.data.FormulizeDBContract.java
ca.formulize.android.data.FormulizeDBHelper.java
ca.formulize.android.data.FormulizeLink.java
ca.formulize.android.ui.AddConnectionActivity.java
ca.formulize.android.ui.ApplicationListActivity.java
ca.formulize.android.ui.ConnectionActivity.java
ca.formulize.android.ui.LoginDialogFragment.java
ca.formulize.android.ui.LogoutDialogFragment.java
ca.formulize.android.ui.NoNetworkDialogFragment.java
ca.formulize.android.ui.ScreenListActivity.java
ca.formulize.android.ui.ScreenWebActivity.java
ca.formulize.android.util.ConnectionUtil.java