// Path: android/rpc-app/src/umich/framjack/ApplicationInterface.java
// public interface UpdateListener {
// 	public abstract void Update();
// }


import java.text.DecimalFormat;
import umich.framjack.ApplicationInterface.UpdateListener;
import android.os.Bundle;
import android.app.Activity;
import android.graphics.Color;
import android.view.Menu;
import android.widget.CompoundButton;
import android.widget.CompoundButton.OnCheckedChangeListener;
import android.widget.Switch;
import android.widget.TextView;
/*
 *  This file is part of hijack-infinity.
 *
 *  hijack-infinity is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  hijack-infinity is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with hijack-infinity.  If not, see <http://www.gnu.org/licenses/>.
 */

package umich.framjack;





public class FramJack extends Activity {
	private ApplicationInterface _appInterface;
	
	private TextView _tvIn1;
	private TextView _tvIn2;
	private TextView _tvIn3;
	private TextView _tvIn4;
	
	private TextView _tvTemp;
	private TextView _tvStatus;
	
	private Switch _swOut1;
	private Switch _swOut2;
	private Switch _swOut3;
	private Switch _swOut4;
	
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_fram_jack);
        _appInterface = new ApplicationInterface();
        
        bindControls();
        
        _appInterface.registerOnUpdateListener(_listener);
        attachCheckChangeListeners();
    }
    
// Path: android/rpc-app/src/umich/framjack/ApplicationInterface.java
// public interface UpdateListener {
// 	public abstract void Update();
// }


// Path: android/rpc-app/src/umich/framjack/FramJack.java
import java.text.DecimalFormat;
import umich.framjack.ApplicationInterface.UpdateListener;
import android.os.Bundle;
import android.app.Activity;
import android.graphics.Color;
import android.view.Menu;
import android.widget.CompoundButton;
import android.widget.CompoundButton.OnCheckedChangeListener;
import android.widget.Switch;
import android.widget.TextView;

/*
 *  This file is part of hijack-infinity.
 *
 *  hijack-infinity is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  hijack-infinity is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with hijack-infinity.  If not, see <http://www.gnu.org/licenses/>.
 */

package umich.framjack;





public class FramJack extends Activity {
	private ApplicationInterface _appInterface;
	
	private TextView _tvIn1;
	private TextView _tvIn2;
	private TextView _tvIn3;
	private TextView _tvIn4;
	
	private TextView _tvTemp;
	private TextView _tvStatus;
	
	private Switch _swOut1;
	private Switch _swOut2;
	private Switch _swOut3;
	private Switch _swOut4;
	
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_fram_jack);
        _appInterface = new ApplicationInterface();
        
        bindControls();
        
        _appInterface.registerOnUpdateListener(_listener);
        attachCheckChangeListeners();
    }
    
    private UpdateListener _listener = new UpdateListener() {