// Path: src/main/java/com/inovex/zabbixmobile/adapters/ScreensListAdapter.java
// public class ScreensListAdapter extends BaseServiceAdapter<Screen> {
// 
// 	private static final String TAG = ScreensListAdapter.class.getSimpleName();
// 	private int mTextViewResourceId = R.layout.list_item_screens;
// 
// 	/**
// 	 * Constructor.
// 	 * 
// 	 * @param service
// 	 */
// 	public ScreensListAdapter(ZabbixDataService service) {
// 		super(service);
// 	}
// 
// 	@Override
// 	public View getView(int position, View convertView, ViewGroup parent) {
// 		View row = convertView;
// 
// 		if (row == null) {
// 			row = getInflater().inflate(mTextViewResourceId, parent, false);
// 
// 		}
// 
// 		TextView title = (TextView) row.findViewById(R.id.screen_entry_name);
// 
// 		Screen s = getItem(position);
// 
// 		StringBuilder titleBuilder = new StringBuilder();
// 		if(s.getHost() != null) {
// 			titleBuilder.append(s.getHost().getName() + " - ");
// 		}
// 		titleBuilder.append(s.getName());
// 		title.setText(titleBuilder.toString());
// 
// 		return row;
// 	}
// 
// 	@Override
// 	public long getItemId(int position) {
// 		Screen item = getItem(position); 
// 		if (item != null)
// 			return item.getScreenId();
// 		return 0;
// 	}
// 
// }
// 
// Path: src/main/java/com/inovex/zabbixmobile/listeners/OnScreensItemSelectedListener.java
// public interface OnScreensItemSelectedListener {
// 
// 	/**
// 	 * Callback method for the selection of a screen.
// 	 * 
// 	 * @param screen
// 	 *            the screen
// 	 */
// 	public void onScreenSelected(Screen screen);
// 
// }


import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import android.widget.ListView;
import com.inovex.zabbixmobile.R;
import com.inovex.zabbixmobile.adapters.ScreensListAdapter;
import com.inovex.zabbixmobile.listeners.OnScreensItemSelectedListener;
/*
This file is part of ZAX.

	ZAX 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.

	ZAX 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 ZAX.  If not, see <http://www.gnu.org/licenses/>.
*/

package com.inovex.zabbixmobile.activities.fragments;



/**
 * Fragment showing a list of all screens specified in Zabbix.
 * 
 */
public class ScreensListFragment extends BaseServiceConnectedListFragment {

	public static String TAG = ScreensListFragment.class.getSimpleName();

	private static final String ARG_POSITION = "arg_position";
	private static final String ARG_ITEM_ID = "arg_item_id";
	private static final String ARG_SPINNER_VISIBLE = "arg_spinner_visible";

	private int mCurrentPosition = 0;
	private long mCurrentItemId = 0;
	private boolean mLoadingSpinnerVisible = true;

	private OnScreensItemSelectedListener mCallbackMain;

// Path: src/main/java/com/inovex/zabbixmobile/adapters/ScreensListAdapter.java
// public class ScreensListAdapter extends BaseServiceAdapter<Screen> {
// 
// 	private static final String TAG = ScreensListAdapter.class.getSimpleName();
// 	private int mTextViewResourceId = R.layout.list_item_screens;
// 
// 	/**
// 	 * Constructor.
// 	 * 
// 	 * @param service
// 	 */
// 	public ScreensListAdapter(ZabbixDataService service) {
// 		super(service);
// 	}
// 
// 	@Override
// 	public View getView(int position, View convertView, ViewGroup parent) {
// 		View row = convertView;
// 
// 		if (row == null) {
// 			row = getInflater().inflate(mTextViewResourceId, parent, false);
// 
// 		}
// 
// 		TextView title = (TextView) row.findViewById(R.id.screen_entry_name);
// 
// 		Screen s = getItem(position);
// 
// 		StringBuilder titleBuilder = new StringBuilder();
// 		if(s.getHost() != null) {
// 			titleBuilder.append(s.getHost().getName() + " - ");
// 		}
// 		titleBuilder.append(s.getName());
// 		title.setText(titleBuilder.toString());
// 
// 		return row;
// 	}
// 
// 	@Override
// 	public long getItemId(int position) {
// 		Screen item = getItem(position); 
// 		if (item != null)
// 			return item.getScreenId();
// 		return 0;
// 	}
// 
// }
// 
// Path: src/main/java/com/inovex/zabbixmobile/listeners/OnScreensItemSelectedListener.java
// public interface OnScreensItemSelectedListener {
// 
// 	/**
// 	 * Callback method for the selection of a screen.
// 	 * 
// 	 * @param screen
// 	 *            the screen
// 	 */
// 	public void onScreenSelected(Screen screen);
// 
// }


// Path: src/main/java/com/inovex/zabbixmobile/activities/fragments/ScreensListFragment.java
import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import android.widget.ListView;
import com.inovex.zabbixmobile.R;
import com.inovex.zabbixmobile.adapters.ScreensListAdapter;
import com.inovex.zabbixmobile.listeners.OnScreensItemSelectedListener;

/*
This file is part of ZAX.

	ZAX 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.

	ZAX 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 ZAX.  If not, see <http://www.gnu.org/licenses/>.
*/

package com.inovex.zabbixmobile.activities.fragments;



/**
 * Fragment showing a list of all screens specified in Zabbix.
 * 
 */
public class ScreensListFragment extends BaseServiceConnectedListFragment {

	public static String TAG = ScreensListFragment.class.getSimpleName();

	private static final String ARG_POSITION = "arg_position";
	private static final String ARG_ITEM_ID = "arg_item_id";
	private static final String ARG_SPINNER_VISIBLE = "arg_spinner_visible";

	private int mCurrentPosition = 0;
	private long mCurrentItemId = 0;
	private boolean mLoadingSpinnerVisible = true;

	private OnScreensItemSelectedListener mCallbackMain;

	private ScreensListAdapter mListAdapter;