// Path: SmartSelectionList/slideselection/src/main/java/com/hkm/slideselection/worker/SelectChoice.java
// public class SelectChoice extends LevelResources<String> {
//     public enum ListType {
//         MAINFILTER,
//         FILTER_ITEM
//     }
// 
//     private String choice_selection;
// 
//     public String selected_string() {
//         return choice_selection;
//     }
// 
//     @Override
//     public void setSelectedAtPos(int selectedAtPos) {
//         super.setSelectedAtPos(selectedAtPos);
//         this.choice_selection = resource.get(selectedAtPos);
//     }
// 
//     public SelectChoice(int selection) {
//         super(selection);
//     }
// 
//     public SelectChoice(boolean selected, String TAG) {
//         super(selected, TAG);
//     }
// 
//     public SelectChoice(boolean selected) {
//         super(selected);
//     }
// 
//     public SelectChoice(int[] selection) {
//         super(selection);
//     }
// 
//     public String[] getSimpleSource() {
//         String[] stockArr = new String[resource.size()];
//         stockArr = resource.toArray(stockArr);
//         return stockArr;
//     }
// 
//     public ArrayList<String> getSource() {
//         return resource;
//     }
// 
//     public String toString() {
//         return "";
//     }
// 
// 
//     public SelectChoice clone() {
//         if (isMultiSelection) {
//             return new SelectChoice(getSelections());
//         } else {
//             return new SelectChoice(getSelection());
//         }
// 
//     }
// 
//     public int getFromSubFilter(SelectChoice sub) {
//         String selected_item = sub.selected_string();
//         Iterator<String> k = resource.iterator();
//         int u = 0;
//         while (k.hasNext()) {
//             String e = k.next();
//             if (e.equalsIgnoreCase(selected_item)) {
//                 return u;
//             }
//             u++;
//         }
// 
//         return 0;
//     }
// }
// 
// Path: SmartSelectionList/slideselection/src/main/java/com/hkm/slideselection/worker/Util.java
// public class Util {
//     public static final String SELECTION = "selected";
//     public static final String DATASTRING = "strings";
//     public static final String LEVEL = "mlevel";
// 
//     public static SelectChoice fromBundle(Bundle fromData) {
//         int[] selection = fromData.getIntArray(SimpleSingleList.SELECTION);
//         String[] data = fromData.getStringArray(SimpleSingleList.DATASTRING);
//         SelectChoice lv0;
//         if (selection.length > 1) {
//             lv0 = new SelectChoice(selection);
//         } else {
//             lv0 = new SelectChoice(selection[0]);
//         }
//         lv0.setResourceData(data);
//         lv0.setLevel(0);
//         return lv0;
//     }
// 
//     public static Bundle stuffs(SelectChoice option) {
//         Bundle b = new Bundle();
//         int[] single_selection = new int[]{option.getSelection()};
//         b.putIntArray(SELECTION, single_selection);
//         b.putStringArray(DATASTRING, option.getSimpleSource());
//         b.putInt(LEVEL, option.getLevel());
//         return b;
//     }
// 
//     public static Bundle stuffs(int selection, String[] list, int order) {
//         Bundle b = new Bundle();
//         int[] single_selection = new int[]{selection};
//         b.putIntArray(SELECTION, single_selection);
//         b.putStringArray(DATASTRING, list);
//         b.putInt(LEVEL, order);
//         return b;
//     }
// 
//     public static Bundle stuffs(int[] selections, String[] list, int order) {
//         Bundle b = new Bundle();
//         b.putIntArray(SELECTION, selections);
//         b.putStringArray(DATASTRING, list);
//         b.putInt(LEVEL, order);
//         return b;
//     }
// 
// }


import android.app.FragmentManager;
import android.os.Bundle;
import com.hkm.slideselection.worker.SelectChoice;
import com.hkm.slideselection.worker.Util;
package com.hkm.slideselection.V1;



/**
 * Created by hesk on 10/9/15.
 */
public class StringControlAdapter extends DynamicAdapter<SelectChoice> {

    public StringControlAdapter(FragmentManager fragmentManager, SelectChoice configuration) {
        super(fragmentManager, configuration);
    }

    public StringControlAdapter(FragmentManager fragmentManager, Bundle mfrombundle) {
        super(fragmentManager);
        firstPage = SimpleSingleList.newInstance(mfrombundle);
        firstPageListConfiguration = Util.fromBundle(mfrombundle);
    }

    public StringControlAdapter(FragmentManager fragmentManager) {
        super(fragmentManager);
    }



    @Override
// Path: SmartSelectionList/slideselection/src/main/java/com/hkm/slideselection/worker/SelectChoice.java
// public class SelectChoice extends LevelResources<String> {
//     public enum ListType {
//         MAINFILTER,
//         FILTER_ITEM
//     }
// 
//     private String choice_selection;
// 
//     public String selected_string() {
//         return choice_selection;
//     }
// 
//     @Override
//     public void setSelectedAtPos(int selectedAtPos) {
//         super.setSelectedAtPos(selectedAtPos);
//         this.choice_selection = resource.get(selectedAtPos);
//     }
// 
//     public SelectChoice(int selection) {
//         super(selection);
//     }
// 
//     public SelectChoice(boolean selected, String TAG) {
//         super(selected, TAG);
//     }
// 
//     public SelectChoice(boolean selected) {
//         super(selected);
//     }
// 
//     public SelectChoice(int[] selection) {
//         super(selection);
//     }
// 
//     public String[] getSimpleSource() {
//         String[] stockArr = new String[resource.size()];
//         stockArr = resource.toArray(stockArr);
//         return stockArr;
//     }
// 
//     public ArrayList<String> getSource() {
//         return resource;
//     }
// 
//     public String toString() {
//         return "";
//     }
// 
// 
//     public SelectChoice clone() {
//         if (isMultiSelection) {
//             return new SelectChoice(getSelections());
//         } else {
//             return new SelectChoice(getSelection());
//         }
// 
//     }
// 
//     public int getFromSubFilter(SelectChoice sub) {
//         String selected_item = sub.selected_string();
//         Iterator<String> k = resource.iterator();
//         int u = 0;
//         while (k.hasNext()) {
//             String e = k.next();
//             if (e.equalsIgnoreCase(selected_item)) {
//                 return u;
//             }
//             u++;
//         }
// 
//         return 0;
//     }
// }
// 
// Path: SmartSelectionList/slideselection/src/main/java/com/hkm/slideselection/worker/Util.java
// public class Util {
//     public static final String SELECTION = "selected";
//     public static final String DATASTRING = "strings";
//     public static final String LEVEL = "mlevel";
// 
//     public static SelectChoice fromBundle(Bundle fromData) {
//         int[] selection = fromData.getIntArray(SimpleSingleList.SELECTION);
//         String[] data = fromData.getStringArray(SimpleSingleList.DATASTRING);
//         SelectChoice lv0;
//         if (selection.length > 1) {
//             lv0 = new SelectChoice(selection);
//         } else {
//             lv0 = new SelectChoice(selection[0]);
//         }
//         lv0.setResourceData(data);
//         lv0.setLevel(0);
//         return lv0;
//     }
// 
//     public static Bundle stuffs(SelectChoice option) {
//         Bundle b = new Bundle();
//         int[] single_selection = new int[]{option.getSelection()};
//         b.putIntArray(SELECTION, single_selection);
//         b.putStringArray(DATASTRING, option.getSimpleSource());
//         b.putInt(LEVEL, option.getLevel());
//         return b;
//     }
// 
//     public static Bundle stuffs(int selection, String[] list, int order) {
//         Bundle b = new Bundle();
//         int[] single_selection = new int[]{selection};
//         b.putIntArray(SELECTION, single_selection);
//         b.putStringArray(DATASTRING, list);
//         b.putInt(LEVEL, order);
//         return b;
//     }
// 
//     public static Bundle stuffs(int[] selections, String[] list, int order) {
//         Bundle b = new Bundle();
//         b.putIntArray(SELECTION, selections);
//         b.putStringArray(DATASTRING, list);
//         b.putInt(LEVEL, order);
//         return b;
//     }
// 
// }


// Path: SmartSelectionList/slideselection/src/main/java/com/hkm/slideselection/V1/StringControlAdapter.java
import android.app.FragmentManager;
import android.os.Bundle;
import com.hkm.slideselection.worker.SelectChoice;
import com.hkm.slideselection.worker.Util;

package com.hkm.slideselection.V1;



/**
 * Created by hesk on 10/9/15.
 */
public class StringControlAdapter extends DynamicAdapter<SelectChoice> {

    public StringControlAdapter(FragmentManager fragmentManager, SelectChoice configuration) {
        super(fragmentManager, configuration);
    }

    public StringControlAdapter(FragmentManager fragmentManager, Bundle mfrombundle) {
        super(fragmentManager);
        firstPage = SimpleSingleList.newInstance(mfrombundle);
        firstPageListConfiguration = Util.fromBundle(mfrombundle);
    }

    public StringControlAdapter(FragmentManager fragmentManager) {
        super(fragmentManager);
    }



    @Override
    public SelectChoice extractBundle() {