+++ /dev/null
-/*
- * Emulator Manager
- *
- * Copyright (C) 2013 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact:
- * JiHye Kim <jihye1128.kim@samsung.com>
- * SeokYeon Hwang <syeon.hwang@samsung.com>
- * YeongKyoon Lee <yeongkyoon.lee@samsung.com>
- *
- * This program 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 2
- * of the License, or (at your option) any later version.
- *
- * This program 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 this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- *
- * Contributors:
- * - S-Core Co., Ltd
- *
- */
-
-package org.tizen.emulator.manager.ui.detail.item;
-
-import java.util.ArrayList;
-
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.layout.FormLayout;
-import org.eclipse.swt.widgets.Composite;
-import org.tizen.emulator.manager.plugin.ExtensionItem;
-import org.tizen.emulator.manager.ui.detail.DetailViewPage;
-import org.tizen.emulator.manager.ui.detail.PModifyViewPage;
-
-public class DetailViewItemList {
- private ExtensionItem item = null;
- private DetailViewPage viewPage = null;
- private Composite infoComp = null;
- private Composite modifyComp = null;
- private ArrayList<IInfoViewItem> infoList = null;
- private ArrayList<IModifyViewItem> modifyList = null;
-
- public DetailViewItemList(ExtensionItem item, DetailViewPage page) {
- this.item = item;
- this.viewPage = page;
- }
-
- public ArrayList<IInfoViewItem> getInfoItemList() {
- if (infoList == null) {
- infoComp = new Composite(viewPage.getItemListComposite(), SWT.NONE);
- infoComp.setLayout(new FormLayout());
- IItemListFactory f = (IItemListFactory)(item.createClass());
-// infoList = f.getInfoItemList();
- IInfoViewItem item = null;
- DetailViewItem up = null;
- for (int i = 0; i < infoList.size(); i++) {
- item = infoList.get(i);
- item.initItem(infoComp, up);
- item.drawDetail();
- up = (DetailViewItem) item;
- }
- infoComp.layout(true, true);
- }
- return infoList;
- }
-
- public ArrayList<IModifyViewItem> getModifyItemList() {
- if (modifyList == null) {
- modifyComp = new Composite(viewPage.getItemListComposite(), SWT.NONE);
- modifyComp.setLayout(new FormLayout());
- IItemListFactory f = (IItemListFactory)(item.createClass());
-// modifyList = f.getModifyItemList();
-
- IModifyViewItem item = null;
- DetailViewItem up = null;
- for (int i = 0; i < modifyList.size(); i++) {
- item = modifyList.get(i);
- item.initItem(modifyComp, up);
- item.drawModify();
- item.setListener((PModifyViewPage)viewPage);
- up = (DetailViewItem) item;
- }
-
- modifyComp.layout(true, true);
- }
- return modifyList;
- }
-
- public Composite getInfoComposite() {
- return infoComp;
- }
-
- public Composite getModifyComposite() {
- return modifyComp;
- }
-}