Android Open Source - UniApp Esame Row Control






From Project

Back to project page UniApp.

License

The source code is released under:

MIT License

If you think the Android project UniApp 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 it.nic.uniapp.cmp;
/* w  w w.  j  a v a2  s.co  m*/
import it.nic.uniapp.R;
import it.nic.uniapp.db.EsameEntity;
import android.app.Activity;
import android.content.Context;
import android.view.LayoutInflater;
import android.widget.CheckBox;
import android.widget.LinearLayout;
import android.widget.TextView;

public class EsameRowControl extends LinearLayout {

  private Context context = null;

  
  private TextView txtData = null;
  private TextView txtNome = null;
  private TextView txtTotCrediti = null;
  private TextView txtVoto = null;
  private TextView txtCredAcq = null;
  
  private EsameEntity entity = null;

  public EsameRowControl(Context context) {
    super(context);

    this.context = context;

    LayoutInflater inflater = ((Activity) context).getLayoutInflater();
    inflater.inflate(R.layout.esame_row_control, this, true);

    this.txtData = (TextView) this.findViewById(R.id.row_esame__txtDATA);
    this.txtNome = (TextView) this.findViewById(R.id.row_esame__txtNOME);
    this.txtTotCrediti = (TextView) this.findViewById(R.id.row_esame__txtTOTCREDITI);
    this.txtVoto = (TextView) this.findViewById(R.id.row_esame__txtVOTO);
    this.txtCredAcq = (TextView) this.findViewById(R.id.row_esame__txtCREDITI);
    

  }

  public void LoadEntity(EsameEntity esame) {

    this.txtData.setText(esame.getData());
    this.txtNome.setText(esame.getNome());
    this.txtTotCrediti.setText(esame.getTotCred());
    this.txtVoto.setText(esame.getVoto());
    this.txtCredAcq.setText(esame.getCredAcq());

  }

  public EsameEntity getEntity() {
    return entity;
  }
}




Java Source Code List

it.nic.uniapp.AddEsame.java
it.nic.uniapp.CalendarioEsami.java
it.nic.uniapp.FunzioniEsami.java
it.nic.uniapp.ListaEsami.java
it.nic.uniapp.MainActivity.java
it.nic.uniapp.PopUpWindow.java
it.nic.uniapp.UpdateEsame.java
it.nic.uniapp.adapters.EsameAdapter.java
it.nic.uniapp.adapters.GridCellAdapter.java
it.nic.uniapp.cmp.EsameRowControl.java
it.nic.uniapp.core.Constants.java
it.nic.uniapp.core.PageLoader.java
it.nic.uniapp.db.DBHandler.java
it.nic.uniapp.db.DatabaseConfigUtil.java
it.nic.uniapp.db.DatabaseHelper.java
it.nic.uniapp.db.EsameEntity.java
it.nic.uniapp.db.IDBHandler.java
it.nic.uniapp.util.Util.java