package org.tizen.emulator.manager.wearable.ui.detail;
-import java.util.ArrayList;
import java.util.List;
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;