package org.tizen.emulator.manager.mobile.ui.detail;
-import java.util.ArrayList;
import java.util.List;
import org.tizen.emulator.manager.EmulatorManager;
import org.tizen.emulator.manager.EmulatorManager.ManagerModeType;
import org.tizen.emulator.manager.ui.detail.item.CommonItemListFactory;
-import org.tizen.emulator.manager.ui.detail.item.IInfoViewItem;
-import org.tizen.emulator.manager.ui.detail.item.IModifyViewItem;
import org.tizen.emulator.manager.ui.detail.item.IViewItem;
import org.tizen.emulator.manager.vms.xml.template.ItemList;
public class ItemListFactory extends CommonItemListFactory {
- private static ArrayList<IInfoViewItem> infoList = null;
- private static ArrayList<IModifyViewItem> modifyList = null;
-
-
- @ Override
- public ArrayList<IInfoViewItem> getInfoItemList(ItemList template) {
- // if (infoList == null) {
- infoList = new ArrayList<IInfoViewItem>();
- makeItemListOld(infoList);
- makeItemList(infoList, template);
- // }
-
- return infoList;
- }
-
- @ Override
- public ArrayList<IModifyViewItem> getModifyItemList(ItemList template) {
- // if (modifyList == null) {
- modifyList = new ArrayList<IModifyViewItem>();
- makeItemListOld(modifyList);
- makeItemList(modifyList, template);
- // }
-
- return modifyList;
- }
private static void makeItemListOld(List<? extends IViewItem> list) {
List<IViewItem> itemList = (List<IViewItem>)list;
}
-// private static void makeModifyList() {
-// modifyList = new ArrayList<IModifyViewItem>();
-//
-// modifyList.add(new TNameTextItem());
-// modifyList.add(new TDisplayItem());
-// modifyList.add(new TRAMItem());
-// modifyList.add(new TTouchPointItem());
-// if (EmulatorManager.getManagerMode() == ManagerModeType.INHOUSE_MODE) {
-// modifyList.add(new TSupportSuspendItem());
-// }
-// modifyList.add(new TFileShareItem());
-// modifyList.add(new THWSupportItem());
-//
-// }
-
@Override
public void makeItemList(List<? extends IViewItem> itemList,
ItemList template) {