// Path: app/src/main/java/javax/microedition/lcdui/Choice.java
// public interface Choice
// {
// 	public static final int EXCLUSIVE = 1;
// 	public static final int MULTIPLE = 2;
// 	public static final int IMPLICIT = 3;
// 	public static final int POPUP = 4;
// 	
// 	public static final int TEXT_WRAP_DEFAULT = 0;
// 	public static final int TEXT_WRAP_ON = 1;
// 	public static final int TEXT_WRAP_OFF = 2;
// 	
// 	public int append(String stringPart, Image imagePart);
// 	public void delete(int elementNum);
// 	public void deleteAll();
// 	public Image getImage(int elementNum);
// 	public int getSelectedFlags(boolean[] selectedArray_return);
// 	public int getSelectedIndex();
// 	public String getString(int elementNum);
// 	public void insert(int elementNum, String stringPart, Image imagePart);
// 	public boolean isSelected(int elementNum);
// 	public void set(int elementNum, String stringPart, Image imagePart);
// 	public void setSelectedFlags(boolean[] selectedArray);
// 	public void setSelectedIndex(int elementNum, boolean selected);
// 	public int size();
// }


import javax.microedition.lcdui.Choice;
import android.R.layout;
import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.CompoundButton;
import android.widget.ListAdapter;

/*
 * Copyright 2012 Kulikov Dmitriy
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package javax.microedition.lcdui.list;



public class CompoundListAdapter extends CompoundAdapter implements ListAdapter
{
	protected int listType;
	protected int viewResourceID;
	protected ItemSelector selector;
	
	public CompoundListAdapter(Context context, ItemSelector selector, int type)
	{
		super(context);
		
		this.listType = type;
		this.selector = selector;
		
		switch(type)
		{

// Path: app/src/main/java/javax/microedition/lcdui/Choice.java
// public interface Choice
// {
// 	public static final int EXCLUSIVE = 1;
// 	public static final int MULTIPLE = 2;
// 	public static final int IMPLICIT = 3;
// 	public static final int POPUP = 4;
// 	
// 	public static final int TEXT_WRAP_DEFAULT = 0;
// 	public static final int TEXT_WRAP_ON = 1;
// 	public static final int TEXT_WRAP_OFF = 2;
// 	
// 	public int append(String stringPart, Image imagePart);
// 	public void delete(int elementNum);
// 	public void deleteAll();
// 	public Image getImage(int elementNum);
// 	public int getSelectedFlags(boolean[] selectedArray_return);
// 	public int getSelectedIndex();
// 	public String getString(int elementNum);
// 	public void insert(int elementNum, String stringPart, Image imagePart);
// 	public boolean isSelected(int elementNum);
// 	public void set(int elementNum, String stringPart, Image imagePart);
// 	public void setSelectedFlags(boolean[] selectedArray);
// 	public void setSelectedIndex(int elementNum, boolean selected);
// 	public int size();
// }


// Path: app/src/main/java/javax/microedition/lcdui/list/CompoundListAdapter.java
import javax.microedition.lcdui.Choice;
import android.R.layout;
import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.CompoundButton;
import android.widget.ListAdapter;

/*
 * Copyright 2012 Kulikov Dmitriy
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package javax.microedition.lcdui.list;



public class CompoundListAdapter extends CompoundAdapter implements ListAdapter
{
	protected int listType;
	protected int viewResourceID;
	protected ItemSelector selector;
	
	public CompoundListAdapter(Context context, ItemSelector selector, int type)
	{
		super(context);
		
		this.listType = type;
		this.selector = selector;
		
		switch(type)
		{

			case Choice.IMPLICIT:
