new PropertyValue(prop.getDefaultTemplate().getValue()));
}
for (ModifyDialogItem item : itemListComp.getItemList()) {
- item.setInitialValue(itemListComp.getPropertyValue());
+ item.setInitialValue();
}
DeviceTemplateDialogHandler.changeItemList(itemListComp.getItemList(), profile);
item.setItemListComp(this);
// TODO we need default value for dialog
- item.setInitialValue(propertyValue);
+ item.setInitialValue();
item.create(scrolledContent);
item.setVisible();
}
public void setPropertyValue(PropertyValue propertyValue) {
this.propertyValue = propertyValue;
+ if (itemList != null) {
+ for (ModifyDialogItem item : itemList) {
+ item.setPropertyValue(propertyValue);
+ }
+ }
}
public void create() {
}
}
- if (!isCreateMode()) {
+ if (isModifyMode()) {
// TODO check change
}
Profile prop = ProfileList.getProfile(profile);
if (prop != null && prop.getDefaultTemplate() != null) {
- propertyValue = new PropertyValue(prop.getDefaultTemplate().getValue().clone());
+ setPropertyValue(new PropertyValue(prop.getDefaultTemplate().getValue().clone()));
}
for (ModifyDialogItem item : itemList) {
- item.setInitialValue(propertyValue);
+ item.setInitialValue();
}
DeviceTemplateDialogHandler.changeItemList(itemList, profile);
public void changeItemListForBaseImageDialog() {
for (ModifyDialogItem item : itemList) {
- item.changeItemValue(propertyValue);
+ item.changeItemValue();
}
}
public void changeAdvancedItemList(List<ModifyDialogItem> profileItems,
List<ModifyDialogItem> imageItems, PropertyValue value) {
- propertyValue = value;
+ setPropertyValue(value);
if (profileItems != null) {
itemList = profileItems;
// change items with imageItems.
for (ModifyDialogItem item : itemList) {
- item.setInitialValue(propertyValue);
+ item.setInitialValue();
}
changeItemList(itemList, imageItems);
layoutScrolledComposite();
-
}
}
- public void saveDataInto(Object obj) {
- PropertyValue value = new PropertyValue(obj);
-
+ public void saveDataInto() {
for(ModifyDialogItem item : itemList) {
- item.setValue(value);
+ item.setValue();
}
}
public void checkValid() {
}
- public void saveDataInto(Object obj) {
- itemListComp.saveDataInto(obj);
+ public void saveDataInto() {
+ itemListComp.saveDataInto();
}
dialog.create(value, getDefaultItemList(), mode);
if (dialog.open() == SWT.OK) {
- dialog.saveDataInto(value);
+ dialog.saveDataInto();
return value;
}
int retValue = dialog.open();
if (retValue == SWT.OK) {
- dialog.saveDataInto(value);
+ dialog.saveDataInto();
// TODO for test
System.out.println(value.getPrintValue());
return value;
int retValue = dialog.open();
if (retValue == SWT.OK) {
- dialog.saveDataInto(newValue);
+ dialog.saveDataInto();
return newValue;
}
return null;
import org.tizen.emulator.manager.ui.renewal.dialog.MessageBox;
import org.tizen.emulator.manager.ui.renewal.item.modify.common.FileDialogItem;
import org.tizen.emulator.manager.ui.renewal.item.modify.common.ModifyDialogItem;
-import org.tizen.emulator.manager.ui.renewal.item.modify.comp.PropertyValue;
import org.tizen.emulator.manager.vms.VMProperty.Architecture;
import org.tizen.emulator.manager.vms.helper.HelperClass;
import org.tizen.emulator.manager.vms.helper.QemuImgProc;
}
@Override
- public void setInitialValue(PropertyValue value) {
- filePath = imageFilePath = value.getImageFilePath();
+ public void setInitialValue() {
+ filePath = imageFilePath = propertyValue.getImageFilePath();
}
@Override
- public void setValue(PropertyValue value) {
- value.setImageFilePath(imageFilePath);
+ public void setValue() {
+ propertyValue.setImageFilePath(imageFilePath);
}
@Override
public void fileSelected() {
imageFilePath = filePath;
// for setting default name of custom base image
- getItemListComp().getPropertyValue().setImageFilePath(imageFilePath);
+ propertyValue.setImageFilePath(imageFilePath);
getItemListComp().changeItemListForBaseImageDialog();
getItemListComp().checkValid();
}
import org.tizen.emulator.manager.ui.renewal.item.modify.common.ModifyDialogItem;
import org.tizen.emulator.manager.ui.renewal.item.modify.common.NameItem;
import org.tizen.emulator.manager.ui.renewal.item.modify.common.TextInputBoxItem;
-import org.tizen.emulator.manager.ui.renewal.item.modify.comp.PropertyValue;
import org.tizen.emulator.manager.vms.helper.HelperClass;
public class BaseImageNameItem extends TextInputBoxItem {
}
@Override
- public void setInitialValue(PropertyValue value) {
- if (value == null) {
+ public void setInitialValue() {
+
+ if (propertyValue == null) {
return;
}
if (getItemListComp().isCreateMode()) {
- this.value = value.getDefaultName();
+ this.value = propertyValue.getDefaultName();
} else if (getItemListComp().isCloneMode()){
- this.value = value.getCloneName();
+ this.value = propertyValue.getCloneName();
} else {
- this.value = value.getName();
+ this.value = propertyValue.getName();
}
imageName = this.value;
}
@Override
- public void setValue(PropertyValue value) {
- value.setName(this.value);
+ public void setValue() {
+ propertyValue.setName(this.value);
}
@Override
}
@Override
- public void changeItemValue(PropertyValue property) {
+ public void changeItemValue() {
// item list comp's changeItemListForBaseImageDialog() -> chnageItemValue()
- if (property.isBaseImageValue()) {
+
+ if (propertyValue.isBaseImageValue()) {
if (value != null && !value.isEmpty()) {
return;
}
- String path = property.getImageFilePath();
+ String path = propertyValue.getImageFilePath();
if (path != null && !path.isEmpty()) {
String fileName = path.substring(path
.lastIndexOf(File.separator) + 1, path.length());
import org.tizen.emulator.manager.ui.renewal.item.modify.common.ModifyDialogItem;
import org.tizen.emulator.manager.ui.renewal.item.modify.common.TextInputBoxItem;
import org.tizen.emulator.manager.ui.renewal.item.modify.comp.ModifyItem;
-import org.tizen.emulator.manager.ui.renewal.item.modify.comp.PropertyValue;
import org.tizen.emulator.manager.ui.renewal.widgets.TextInputBox;
public class DescriptionItem extends TextInputBoxItem {
}
@Override
- public void setInitialValue(PropertyValue value) {
- if (value == null) {
+ public void setInitialValue() {
+ if (propertyValue == null) {
return;
}
- this.value = value.getDescritpion();
+ this.value = propertyValue.getDescritpion();
}
@Override
}
@Override
- public void setValue(PropertyValue value) {
- value.setDescription(this.value);
+ public void setValue() {
+ propertyValue.setDescription(this.value);
}
@Override
import org.tizen.emulator.manager.ui.renewal.item.modify.common.ComboItem;
import org.tizen.emulator.manager.ui.renewal.item.modify.common.ModifyDialogItem;
import org.tizen.emulator.manager.ui.renewal.item.modify.comp.ModifyItem;
-import org.tizen.emulator.manager.ui.renewal.item.modify.comp.PropertyValue;
import org.tizen.emulator.manager.ui.renewal.widgets.ComboBox;
import org.tizen.emulator.manager.ui.renewal.widgets.ImageButton;
import org.tizen.emulator.manager.vms.VMProperty.Architecture;
}
@Override
- public void setInitialValue(PropertyValue value) {
- selectedPlatform = value.getPlatform();
- arch = value.getArchitecture();
+ public void setInitialValue() {
+ selectedPlatform = propertyValue.getPlatform();
+ arch = propertyValue.getArchitecture();
- profile = ProfileList.getProfile(value.getProfile());
+ profile = ProfileList.getProfile(propertyValue.getProfile());
}
@Override
}
@Override
- public void setValue(PropertyValue value) {
- value.setPlatform(selectedPlatform);
- value.setArchitecture(arch);
+ public void setValue() {
+ propertyValue.setPlatform(selectedPlatform);
+ propertyValue.setArchitecture(arch);
}
@Override
}
}
- private Listener radioButtonListener = new Listener() {
+ private final Listener radioButtonListener = new Listener() {
@Override
public void handleEvent(Event event) {
}
@Override
- public void changeItemValue(PropertyValue value) {
+ public void changeItemValue() {
// changeItemLsitForBaseImageDialog call changeItemValue
// change profile
- if (profile == null || !profile.getName().equals(value.getProfile())) {
- profile = ProfileList.getProfile(value.getProfile());
+ if (profile == null || !profile.getName().equals(propertyValue.getProfile())) {
+ profile = ProfileList.getProfile(propertyValue.getProfile());
initPlatformCombo();
}
// change image path
- if (imagePath == null || !imagePath.equals(value.getImageFilePath())) {
- imagePath = value.getImageFilePath();
+ if (imagePath == null || !imagePath.equals(propertyValue.getImageFilePath())) {
+ imagePath = propertyValue.getImageFilePath();
Architecture a = Architecture.findCpuTypeFromPath(imagePath);
if (a != null) {
Architecture temp = selectedPlatform.findArchitecture(a.getBit());
import org.eclipse.swt.widgets.Composite;
import org.tizen.emulator.manager.ui.renewal.item.ItemType;
import org.tizen.emulator.manager.ui.renewal.item.modify.comp.ModifyItem;
-import org.tizen.emulator.manager.ui.renewal.item.modify.comp.PropertyValue;
import org.tizen.emulator.manager.ui.renewal.item.modify.comp.SubTreeModifyItem;
import org.tizen.emulator.manager.ui.renewal.item.modify.comp.TreeModifyItem;
}
@Override
- public void setInitialValue(PropertyValue value) {
- Map<String, Boolean> valueMap = value.getCheckBoxOptions(getName());
+ public void setInitialValue() {
+ Map<String, Boolean> valueMap = propertyValue.getCheckBoxOptions(getName());
this.valueMap = valueMap;
-// if (getDialog().getDialogMode() == DIALOG_MODE.MODIFY) {
-//
-//
-// } else {
-// for (CheckItemData data : this.dataList) {
-// data.setChecked(true);
-// }
-// }
}
@Override
- public void setValue(PropertyValue value) {
+ public void setValue() {
valueMap.clear();
for (CheckBoxSubItem subItem : getSubItemList()) {
valueMap.put(subItem.getName(), subItem.isChecked());
}
- value.setCheckBoxOptions(getName(), valueMap);
+ propertyValue.setCheckBoxOptions(getName(), valueMap);
}
@Override
@Override
- public void changeItemValue(PropertyValue value) {
- setInitialValue(value);
+ public void changeItemValue() {
+ setInitialValue();
updateCheckBoxSubItems();
layoutCheckBoxSubItems();
}
comboBox.setEnabled(enable);
item.setTitleEnable(enable);
}
-
-
}
import org.tizen.emulator.manager.renewal.resources.ImageResources;
import org.tizen.emulator.manager.ui.renewal.dialog.DIALOG_MODE;
import org.tizen.emulator.manager.ui.renewal.item.modify.comp.ModifyItem;
-import org.tizen.emulator.manager.ui.renewal.item.modify.comp.PropertyValue;
import org.tizen.emulator.manager.ui.renewal.item.modify.comp.SubTreeModifyItem;
import org.tizen.emulator.manager.ui.renewal.item.modify.comp.TreeModifyItem;
import org.tizen.emulator.manager.ui.renewal.item.modify.template.TemplateSkinSubItem;
}
// create skin item
- if (getItemListComp().getPropertyValue().isTemplateValue()) {
+ if (propertyValue.isTemplateValue()) {
skinItem = new TemplateSkinSubItem(this);
} else {
skinItem = new SkinSubItem(this);
@Override
- public void setInitialValue(PropertyValue value) {
- resolutionItem.setResolution(value.getResolution());
- resolutionItem.setDisplayHeight(String.valueOf(value.getDisplayHeight()));
- resolutionItem.setDisplayWidth(String.valueOf(value.getDisplayWidth()));
+ public void setInitialValue() {
+ resolutionItem.setResolution(propertyValue.getResolution());
+ resolutionItem.setDisplayHeight(String.valueOf(propertyValue.getDisplayHeight()));
+ resolutionItem.setDisplayWidth(String.valueOf(propertyValue.getDisplayWidth()));
- displaySize = String.valueOf(value.getDisplaySize());
+ displaySize = String.valueOf(propertyValue.getDisplaySize());
makeSkinItem();
- skinItem.setSkin(value.getSkin());
+ skinItem.setSkin(propertyValue.getSkin());
// for detail information
- displayDPI = String.valueOf(value.getDisplayDPI());
+ displayDPI = String.valueOf(propertyValue.getDisplayDPI());
}
@Override
- public void setValue(PropertyValue value) {
+ public void setValue() {
// set resolution
- resolutionItem.setValue(value);
+ resolutionItem.setValue(propertyValue);
try {
// set display size (inch)
- value.setDisplaySize(Double.parseDouble(displaySize));
+ propertyValue.setDisplaySize(Double.parseDouble(displaySize));
} catch (NumberFormatException e) {
EMLogger.getLogger().warning(e.getMessage());
}
// TODO skin
- skinItem.setValue(value);
+ skinItem.setValue();
}
}
@Override
- public void changeItemValue(PropertyValue value) {
+ public void changeItemValue() {
+
// display resolution
- resolutionItem.changeValue(value.getResolution());
+ resolutionItem.changeValue(propertyValue.getResolution());
// size
- displaySize = String.valueOf(value.getDisplaySize());
+ displaySize = String.valueOf(propertyValue.getDisplaySize());
selectSize();
// skin ?
package org.tizen.emulator.manager.ui.renewal.item.modify.common;
import org.eclipse.swt.widgets.Composite;
-import org.tizen.emulator.manager.ui.renewal.item.modify.comp.PropertyValue;
public interface IModifyDialogItem {
/** To decide modify dialog */
public int getHeight();
- public void setInitialValue(PropertyValue value);
+ public void setInitialValue();
public boolean isValid();
- /** set dialog data to property value */
- public void setValue(PropertyValue value);
+ /** set dialog data PropertyValue in ItemListComp */
+ public void setValue();
public abstract ModifyDialogItem cloneItem();
import org.eclipse.swt.widgets.Composite;
import org.tizen.emulator.manager.renewal.resources.ImageResources;
-import org.tizen.emulator.manager.ui.renewal.item.modify.comp.PropertyValue;
public class ImageItem extends TextLabelItem {
}
@Override
- public void setInitialValue(PropertyValue value) {
- if (value == null) {
+ public void setInitialValue() {
+ if (propertyValue == null) {
return;
}
- this.value = value.getImageName();
+ this.value = propertyValue.getImageName();
}
@Override
- public void setValue(PropertyValue value) {
+ public void setValue() {
// TODO Auto-generated method stub
}
private ItemListComp itemListComp;
+ protected PropertyValue propertyValue;
protected Canvas stateIconCanvas;
public static final int ERROR_ICON_SIZE = 16;
}
/** change item value and redraw */
- public void changeItemValue(PropertyValue value) {
+// public void changeItemValue(PropertyValue value) {
+ public void changeItemValue() {
// sub tree Dialog-item have to override
}
public void setItemListComp(ItemListComp itemlistComp) {
this.itemListComp = itemlistComp;
+ propertyValue = itemListComp.getPropertyValue();
}
+ public void setPropertyValue(PropertyValue value) {
+ propertyValue = value;
+ }
public ItemListComp getItemListComp() {
return itemListComp;
import org.tizen.emulator.manager.resources.StringResources;
import org.tizen.emulator.manager.ui.Messages;
import org.tizen.emulator.manager.ui.renewal.dialog.DIALOG_MODE;
-import org.tizen.emulator.manager.ui.renewal.item.modify.comp.PropertyValue;
import org.tizen.emulator.manager.vms.VMProperty;
import org.tizen.emulator.manager.vms.helper.HelperClass;
@Override
- public void setInitialValue(PropertyValue value) {
- if (value == null) {
+ public void setInitialValue() {
+ if (propertyValue == null) {
return;
}
if (getItemListComp().isCreateMode()) {
- this.value = value.getDefaultName();
+ this.value = propertyValue.getDefaultName();
} else if (getItemListComp().isCloneMode()){
- this.value = value.getCloneName();
+ this.value = propertyValue.getCloneName();
} else {
- this.value = value.getName();
+ this.value = propertyValue.getName();
}
}
}
String msg = "";
- PropertyValue property = getItemListComp().getPropertyValue();
- if (property.isTemplateValue()) {
+ if (propertyValue.isTemplateValue()) {
msg = checkTemplateName(value);
- } else if (property.isVMValue()) {
+ } else if (propertyValue.isVMValue()) {
msg = checkVMName(value);
} else {
// TODO
@Override
- public void setValue(PropertyValue value) {
- value.setName(this.value);
+ public void setValue() {
+ propertyValue.setName(this.value);
}
import org.tizen.emulator.manager.renewal.resources.ImageResources;
import org.tizen.emulator.manager.ui.renewal.dialog.DIALOG_MODE;
import org.tizen.emulator.manager.ui.renewal.item.modify.comp.ModifyItem;
-import org.tizen.emulator.manager.ui.renewal.item.modify.comp.PropertyValue;
import org.tizen.emulator.manager.ui.renewal.item.modify.comp.SubTreeModifyItem;
import org.tizen.emulator.manager.ui.renewal.item.modify.comp.TreeModifyItem;
import org.tizen.emulator.manager.ui.renewal.widgets.ComboBox;
}
@Override
- public void setInitialValue(PropertyValue value) {
- if (value == null) {
+ public void setInitialValue() {
+ if (propertyValue == null) {
return;
}
}
} else {
- cpuNum = value.getCpuNum();
+ cpuNum = propertyValue.getCpuNum();
}
}
}
@Override
- public void setValue(PropertyValue value) {
- value.setCpuNum(cpuNum);
+ public void setValue() {
+ propertyValue.setCpuNum(cpuNum);
}
@Override
- public void changeItemValue(PropertyValue value) {
- setInitialValue(value);
+ public void changeItemValue() {
+ setInitialValue();
selectItem();
}
}
import org.tizen.emulator.manager.platform.ProfileList;
import org.tizen.emulator.manager.renewal.resources.ImageResources;
import org.tizen.emulator.manager.ui.renewal.item.modify.comp.ModifyItem;
-import org.tizen.emulator.manager.ui.renewal.item.modify.comp.PropertyValue;
import org.tizen.emulator.manager.ui.renewal.widgets.ImageRadioButton;
import org.tizen.emulator.manager.ui.renewal.widgets.WSTATE;
}
@Override
- public void setInitialValue(PropertyValue value) {
- if (value == null) {
+ public void setInitialValue() {
+ if (propertyValue == null) {
return;
}
- this.currentProfile = value.getProfile();
+ this.currentProfile = propertyValue.getProfile();
}
return;
}
- PropertyValue value = getItemListComp().getPropertyValue();
- if (value.isBaseImageValue()) {
- value.setProfile(profile);
+ if (propertyValue.isBaseImageValue()) {
+ propertyValue.setProfile(profile);
getItemListComp().changeItemListForBaseImageDialog();
- } else if (value.isTemplateValue()) {
+ } else if (propertyValue.isTemplateValue()) {
getItemListComp().changeItemListByProfile(profile);
}
}
for (String profile : buttonMap.keySet()) {
if (profile.equals(currentProfile)) {
buttonMap.get(profile).selectRadio();
- getItemListComp().getPropertyValue().setProfile(profile);
+ propertyValue.setProfile(profile);
}
}
}
@Override
- public void setValue(PropertyValue value) {
- value.setProfile(currentProfile);
+ public void setValue() {
+ propertyValue.setProfile(currentProfile);
}
}
@Override
- public void changeItemValue(PropertyValue value) {
- currentProfile = value.getProfile();
+ public void changeItemValue() {
+ setInitialValue();
}
}
import org.tizen.emulator.manager.renewal.resources.ImageResources;
import org.tizen.emulator.manager.ui.renewal.dialog.DIALOG_MODE;
import org.tizen.emulator.manager.ui.renewal.item.modify.comp.ModifyItem;
-import org.tizen.emulator.manager.ui.renewal.item.modify.comp.PropertyValue;
import org.tizen.emulator.manager.ui.renewal.item.modify.comp.SubTreeModifyItem;
import org.tizen.emulator.manager.ui.renewal.item.modify.comp.TreeModifyItem;
import org.tizen.emulator.manager.ui.renewal.widgets.ComboBox;
}
@Override
- public void setInitialValue(PropertyValue value) {
- ramSize = value.getRamSize();
+ public void setInitialValue() {
+ ramSize = propertyValue.getRamSize();
}
@Override
- public void setValue(PropertyValue value) {
- value.setRamSize(ramSize);
+ public void setValue() {
+ propertyValue.setRamSize(ramSize);
}
@Override
- public void changeItemValue(PropertyValue value) {
- setInitialValue(value);
+ public void changeItemValue() {
+ setInitialValue();
selectItem();
}
}
import org.tizen.emulator.manager.platform.Skin;
import org.tizen.emulator.manager.platform.SkinList;
import org.tizen.emulator.manager.ui.renewal.item.modify.comp.ModifyItem;
-import org.tizen.emulator.manager.ui.renewal.item.modify.comp.PropertyValue;
import org.tizen.emulator.manager.vms.RESOLUTION;
import org.tizen.emulator.manager.vms.SKIN_SHAPE;
import org.tizen.emulator.manager.vms.SKIN_TYPE;
}
@Override
- public void setInitialValue(PropertyValue value) {
- skin = value.getSkin();
+ public void setInitialValue() {
+ skin = propertyValue.getSkin();
}
@Override
- public void setValue(PropertyValue value) {
+ public void setValue() {
// set skin
- value.setSkin(skin);
+ propertyValue.setSkin(skin);
// set skin path
String skinPath = null;
if (skin != null) {
skinPath = skin.getPath();
}
- value.setSkinPath(skinPath);
+ propertyValue.setSkinPath(skinPath);
}
}
protected void initSkinCombo(RESOLUTION re, boolean isResolutionExist) {
- imageSkinShape = getItemListComp().getPropertyValue().getImageSkinShape();
- skinList = getItemListComp().getPropertyValue().getImageSkinList();
+ imageSkinShape = propertyValue.getImageSkinShape();
+ skinList = propertyValue.getImageSkinList();
settingSkinList(re, isResolutionExist);
comboBox = new ComboBox(getItemListComp().getShell(), comp, SWT.NONE);
comboBox.setLayoutData(data);
- if (getItemListComp().getPropertyValue().isTemplateValue()) {
+ if (propertyValue.isTemplateValue()) {
return;
}
import org.eclipse.swt.layout.FormData;
import org.eclipse.swt.widgets.Composite;
import org.tizen.emulator.manager.ui.renewal.item.modify.comp.ModifyItem;
-import org.tizen.emulator.manager.ui.renewal.item.modify.comp.PropertyValue;
import org.tizen.emulator.manager.ui.renewal.widgets.TextBox;
public class TextBoxItem extends ModifyDialogItem {
}
@Override
- public void setInitialValue(PropertyValue value) {
+ public void setInitialValue() {
// TODO Auto-generated method stub
}
@Override
- public void setValue(PropertyValue value) {
+ public void setValue() {
// TODO Auto-generated method stub
}
return listener;
}
- public void saveDataInto(Object value) {
- itemListComp.saveDataInto(value);
+ public void saveDataInto() {
+ itemListComp.saveDataInto();
}
// return if item is showing in advanced option.
import org.tizen.emulator.manager.ui.renewal.item.ItemName;
import org.tizen.emulator.manager.ui.renewal.item.modify.common.FileDialogItem;
import org.tizen.emulator.manager.ui.renewal.item.modify.common.ModifyDialogItem;
-import org.tizen.emulator.manager.ui.renewal.item.modify.comp.PropertyValue;
import org.tizen.emulator.manager.ui.renewal.item.modify.comp.SubItemTitle;
import org.tizen.emulator.manager.ui.renewal.item.modify.comp.SubModifyItem;
@Override
- public void setInitialValue(PropertyValue value) {
- imagePath = value.getSubOptionValue(getParentItem().getName(), getName());
+ public void setInitialValue() {
+ imagePath = propertyValue.getSubOptionValue(getParentItem().getName(), getName());
if (!getItemListComp().isDetailMode()) {
settingImagePath();
}
}
@Override
- public void setValue(PropertyValue value) {
- value.setSubOptionValue(getParentItem().getName(), getName(), imagePath);
+ public void setValue() {
+ propertyValue.setSubOptionValue(getParentItem().getName(), getName(), imagePath);
}
import org.tizen.emulator.manager.ui.renewal.item.ItemName;
import org.tizen.emulator.manager.ui.renewal.item.modify.common.ModifyDialogItem;
import org.tizen.emulator.manager.ui.renewal.item.modify.comp.ModifyItem;
-import org.tizen.emulator.manager.ui.renewal.item.modify.comp.PropertyValue;
import org.tizen.emulator.manager.ui.renewal.item.modify.comp.SubTreeModifyItem;
import org.tizen.emulator.manager.ui.renewal.item.modify.comp.TreeModifyItem;
import org.tizen.emulator.manager.vms.helper.HelperClass;
}
@Override
- public void changeItemValue(PropertyValue value) {
- boolean useRear = value.getCheckBoxValue(ItemName.CAMERA, ItemName.CAMERA_REAR);
+ public void changeItemValue() {
+ boolean useRear = propertyValue.getCheckBoxValue(ItemName.CAMERA, ItemName.CAMERA_REAR);
setRearCameraCheck(useRear);
}
import org.tizen.emulator.manager.ui.renewal.item.modify.common.CheckBoxItem;
import org.tizen.emulator.manager.ui.renewal.item.modify.common.CheckBoxSubItem;
import org.tizen.emulator.manager.ui.renewal.item.modify.common.CheckItemData;
-import org.tizen.emulator.manager.ui.renewal.item.modify.comp.PropertyValue;
import org.tizen.emulator.manager.ui.renewal.item.modify.comp.TreeModifyItem;
public class CameraLegacyItem extends CheckBoxItem {
}
@Override
- public void changeItemValue(PropertyValue value) {
- setInitialValue(value);
+ public void changeItemValue() {
+ setInitialValue();
updateCheckBoxSubItems();
layoutCheckBoxSubItems();
}
@Override
- public void setInitialValue(PropertyValue value) {
- Map<String, Boolean> valueMap = value.getCameraCheckOptions();
+ public void setInitialValue() {
+ Map<String, Boolean> valueMap = propertyValue.getCameraCheckOptions();
this.valueMap = valueMap;
}
@Override
- public void setValue(PropertyValue value) {
+ public void setValue() {
valueMap.clear();
for (CheckBoxSubItem subItem : getSubItemList()) {
valueMap.put(subItem.getName(), subItem.isChecked());
}
- value.setCheckBoxOptions(getName(), valueMap);
+ propertyValue.setCheckBoxOptions(getName(), valueMap);
}
}
import org.tizen.emulator.manager.ui.renewal.item.ItemName;
import org.tizen.emulator.manager.ui.renewal.item.modify.common.ComboItem;
import org.tizen.emulator.manager.ui.renewal.item.modify.common.ModifyDialogItem;
-import org.tizen.emulator.manager.ui.renewal.item.modify.comp.PropertyValue;
import org.tizen.emulator.manager.ui.renewal.item.modify.comp.SubItemTitle;
import org.tizen.emulator.manager.ui.renewal.item.modify.comp.SubModifyItem;
import org.tizen.emulator.manager.ui.renewal.widgets.ComboBox;
@Override
- public void setInitialValue(PropertyValue value) {
- cameraType = value.getSubOptionValue(ItemName.CAMERA, getName());
+ public void setInitialValue() {
+ cameraType = propertyValue.getSubOptionValue(ItemName.CAMERA, getName());
}
@Override
- public void setValue(PropertyValue value) {
- value.setSubOptionValue(ItemName.CAMERA, getName(), cameraType);
+ public void setValue() {
+ propertyValue.setSubOptionValue(ItemName.CAMERA, getName(), cameraType);
}
import java.util.List;
import org.tizen.emulator.manager.ui.renewal.item.modify.common.ModifyDialogItem;
-import org.tizen.emulator.manager.ui.renewal.item.modify.comp.PropertyValue;
public abstract class CategoryItem extends ModifyDialogItem {
protected final List<ModifyDialogItem> subItems =
new ArrayList<ModifyDialogItem>();
+ private boolean isAllItemCreated = false;
+
public void addSubItems(ModifyDialogItem subItem) {
subItems.add(subItem);
}
}
@Override
- public void setValue(PropertyValue value) {
+ public void setValue() {
for (ModifyDialogItem item : subItems) {
- item.setValue(value);
+ item.setValue();
}
}
for (ModifyDialogItem item : subItems) {
item.setParentItem(this);
item.setItemListComp(this.getItemListComp());
- item.setInitialValue(this.getItemListComp().getPropertyValue());
+ item.setInitialValue();
item.create(this.item.getBody());
item.setVisible();
}
+ isAllItemCreated = true;
}
@Override
- public void setInitialValue(PropertyValue value) {
+ public void setInitialValue() {
// nothing to do
+ if (!isAllItemCreated) {
+ return;
+ }
+
+ for (ModifyDialogItem item : subItems) {
+ item.setInitialValue();
+ }
}
import org.tizen.emulator.manager.ui.renewal.item.ItemName;
import org.tizen.emulator.manager.ui.renewal.item.modify.common.ComboItem;
import org.tizen.emulator.manager.ui.renewal.item.modify.common.ModifyDialogItem;
-import org.tizen.emulator.manager.ui.renewal.item.modify.comp.PropertyValue;
import org.tizen.emulator.manager.ui.renewal.item.modify.comp.SubTreeModifyItem;
import org.tizen.emulator.manager.ui.renewal.item.modify.comp.TreeItemTitle;
import org.tizen.emulator.manager.ui.renewal.item.modify.comp.TreeModifyItem;
}
@Override
- public void setInitialValue(PropertyValue value) {
+ public void setInitialValue() {
// TODO
- template = value.getDeivceTemplate();
- profile = ProfileList.getProfile(value.getProfile());
+ template = propertyValue.getDeivceTemplate();
+ profile = ProfileList.getProfile(propertyValue.getProfile());
}
@Override
public void itemSelected(ComboBox comboBox) {
template = (DeviceTemplate)comboBox.getSelectedData();
- PropertyValue propertyValue = getItemListComp().getPropertyValue();
propertyValue.setDeviceTemplate(template);
+
// - change item list value
for (SubTreeModifyItem subTree : treeModifyItem.getSubItemList()) {
ModifyDialogItem dialogItem = subTree.getDialogItem();
- dialogItem.changeItemValue(propertyValue);
+ dialogItem.changeItemValue();
}
// change new camera item value
- changeCameraItemValue(propertyValue);
+ changeCameraItemValue();
}
- private void changeCameraItemValue(PropertyValue value) {
+ private void changeCameraItemValue( ) {
CameraItem cameraItem = (CameraItem)getItemListComp().getItem(ItemName.CAMERA);
if (cameraItem == null) {
return;
}
- cameraItem.changeItemValue(value);
+ cameraItem.changeItemValue();
}
@Override
- public void setValue(PropertyValue value) {
+ public void setValue() {
// already set value when selected item
//value.setDeviceTemplate(template);
}
import org.tizen.emulator.manager.renewal.resources.ImageResources;
import org.tizen.emulator.manager.ui.renewal.item.modify.common.FileDialogItem;
import org.tizen.emulator.manager.ui.renewal.item.modify.common.ModifyDialogItem;
-import org.tizen.emulator.manager.ui.renewal.item.modify.comp.PropertyValue;
public class FileSharingItem extends FileDialogItem {
}
@Override
- public void setInitialValue(PropertyValue value) {
+ public void setInitialValue() {
if (getItemListComp().isCreateMode()) {
sharingPath = "";
} else {
- sharingPath = value.getFileSharingPath();
+ sharingPath = propertyValue.getFileSharingPath();
}
}
@Override
- public void setValue(PropertyValue value) {
- value.setFileSharingPath(sharingPath);
+ public void setValue() {
+ propertyValue.setFileSharingPath(sharingPath);
}
@Override
import org.tizen.emulator.manager.ui.renewal.item.modify.common.ComboItem;
import org.tizen.emulator.manager.ui.renewal.item.modify.common.ModifyDialogItem;
import org.tizen.emulator.manager.ui.renewal.item.modify.comp.ModifyItem;
-import org.tizen.emulator.manager.ui.renewal.item.modify.comp.PropertyValue;
import org.tizen.emulator.manager.ui.renewal.widgets.ComboBox;
public class GLVersionItem extends ComboItem {
isActivate = false;
} else {
- isActivate = getItemListComp().getPropertyValue().getGPUAcceleration();
+ isActivate = propertyValue.getGPUAcceleration();
}
return isActivate;
}
@Override
- public void setInitialValue(PropertyValue value) {
- glVersion = value.getSubOptionValue(getName());
+ public void setInitialValue() {
+ glVersion = propertyValue.getSubOptionValue(getName());
}
@Override
- public void setValue(PropertyValue value) {
- value.setSubOptionValue(getName(), glVersion);
+ public void setValue() {
+ propertyValue.setSubOptionValue(getName(), glVersion);
}
return new GLVersionItem(getName(), getTitle(), optionMap);
}
+ @Override
+ public void changeItem(ModifyDialogItem srcDialogItem) {
+ resetCombo();
+ }
+
}
import org.tizen.emulator.manager.ui.renewal.item.ItemName;
import org.tizen.emulator.manager.ui.renewal.item.modify.common.ModifyDialogItem;
import org.tizen.emulator.manager.ui.renewal.item.modify.comp.ModifyItem;
-import org.tizen.emulator.manager.ui.renewal.item.modify.comp.PropertyValue;
import org.tizen.emulator.manager.ui.renewal.widgets.ImageButton;
public class HWSupportItem extends ModifyDialogItem {
gpuItem.setOnOffLabel();
// reset GLVersion item
- setValue(getItemListComp().getPropertyValue());
+ setValue();
setEnableGLVersion();
}
}
@Override
- public void setInitialValue(PropertyValue value) {
- isCpuOn = value.getCPUVirtualization();
- isGpuOn = value.getGPUAcceleration();
+ public void setInitialValue() {
+ isCpuOn = propertyValue.getCPUVirtualization();
+ isGpuOn = propertyValue.getGPUAcceleration();
}
@Override
- public void setValue(PropertyValue value) {
- value.setCPUVirtualization(cpuItem.getOnOff());
- value.setGPUAcceleration(gpuItem.getOnOff());
+ public void setValue() {
+ propertyValue.setCPUVirtualization(cpuItem.getOnOff());
+ propertyValue.setGPUAcceleration(gpuItem.getOnOff());
}
import org.tizen.emulator.manager.tool.TapUtil;
import org.tizen.emulator.manager.ui.renewal.item.modify.common.ComboItem;
import org.tizen.emulator.manager.ui.renewal.item.modify.common.ModifyDialogItem;
-import org.tizen.emulator.manager.ui.renewal.item.modify.comp.PropertyValue;
import org.tizen.emulator.manager.ui.renewal.item.modify.comp.SubItemTitle;
import org.tizen.emulator.manager.ui.renewal.item.modify.comp.SubModifyItem;
import org.tizen.emulator.manager.ui.renewal.widgets.ComboBox;
}
// for resetting
- setValue(getItemListComp().getPropertyValue());
+ setValue();
NetworkItem networkItem = (NetworkItem)getParentItem();
@Override
- public void setInitialValue(PropertyValue value) {
- connectType = value.getSubOptionValue(getName());
+ public void setInitialValue() {
+ connectType = propertyValue.getSubOptionValue(getName());
}
@Override
- public void setValue(PropertyValue value) {
- value.setSubOptionValue(getName(), connectType);
+ public void setValue() {
+ propertyValue.setSubOptionValue(getName(), connectType);
}
import org.tizen.emulator.manager.ui.renewal.item.ItemName;
import org.tizen.emulator.manager.ui.renewal.item.modify.common.ModifyDialogItem;
import org.tizen.emulator.manager.ui.renewal.item.modify.common.TextInputBoxItem;
-import org.tizen.emulator.manager.ui.renewal.item.modify.comp.PropertyValue;
import org.tizen.emulator.manager.ui.renewal.item.modify.comp.SubItemTitle;
import org.tizen.emulator.manager.ui.renewal.item.modify.comp.SubModifyItem;
}
@Override
- public void setInitialValue(PropertyValue value) {
- super.value = value.getSubOptionValue(ItemName.NET_DNS);
+ public void setInitialValue() {
+ super.value = propertyValue.getSubOptionValue(ItemName.NET_DNS);
}
@Override
- public void setValue(PropertyValue value) {
- value.setSubOptionValue(ItemName.NET_DNS, super.value);
+ public void setValue() {
+ propertyValue.setSubOptionValue(ItemName.NET_DNS, super.value);
}
}
public void resetItem() {
- boolean useDHCP = getItemListComp().getPropertyValue().getCheckBoxValue(
+ boolean useDHCP = propertyValue.getCheckBoxValue(
ItemName.NET_IP_INFO, ItemName.NET_USE_DHCP);
boolean isNAT = ((NetworkItem)getParentItem()).isNATType();
import org.tizen.emulator.manager.ui.renewal.item.modify.common.CheckBoxSubItem;
import org.tizen.emulator.manager.ui.renewal.item.modify.common.ModifyDialogItem;
import org.tizen.emulator.manager.ui.renewal.item.modify.comp.ModifyItem;
-import org.tizen.emulator.manager.ui.renewal.item.modify.comp.PropertyValue;
import org.tizen.emulator.manager.ui.renewal.item.modify.comp.SubItemTitle;
import org.tizen.emulator.manager.ui.renewal.item.modify.comp.SubModifyItem;
import org.tizen.emulator.manager.ui.renewal.widgets.CheckBoxButton;
for (NetIPSubItem ipSubItem : ipSubItems) {
ipSubItem.setParentItem(this);
- ipSubItem.setInitialValue(getItemListComp().getPropertyValue());
ipSubItem.setItemListComp(getItemListComp());
+ ipSubItem.setInitialValue();
ipSubItem.create(item.getBody());
}
private void dhcpChanged() {
- setValue(getItemListComp().getPropertyValue());
+ setValue();
changeAddressItemState();
changeDNSItemState();
}
@Override
- public void setInitialValue(PropertyValue value) {
- useDHCP = value.getCheckBoxValue(ItemName.NET_IP_INFO, ItemName.NET_USE_DHCP);
+ public void setInitialValue() {
+ useDHCP = propertyValue.getCheckBoxValue(ItemName.NET_IP_INFO, ItemName.NET_USE_DHCP);
}
@Override
- public void setValue(PropertyValue value) {
- value.setCheckBoxValue(ItemName.NET_IP_INFO, ItemName.NET_USE_DHCP, useDHCP);
+ public void setValue() {
+ propertyValue.setCheckBoxValue(ItemName.NET_IP_INFO, ItemName.NET_USE_DHCP, useDHCP);
for (NetIPSubItem ipSubItem : ipSubItems) {
- ipSubItem.setValue(value);
+ ipSubItem.setValue();
}
}
import org.tizen.emulator.manager.ui.renewal.item.ItemName;
import org.tizen.emulator.manager.ui.renewal.item.modify.common.ModifyDialogItem;
import org.tizen.emulator.manager.ui.renewal.item.modify.common.TextInputBoxItem;
-import org.tizen.emulator.manager.ui.renewal.item.modify.comp.PropertyValue;
import org.tizen.emulator.manager.ui.renewal.item.modify.comp.SubItemTitle;
import org.tizen.emulator.manager.ui.renewal.item.modify.comp.SubModifyItem;
if (isDetailMode()) {
return;
}
-
addFocusListener();
-
}
-
private void addFocusListener() {
textInputBox.setFocusListener(new FocusListener() {
});
}
-
-
@Override
- public void setInitialValue(PropertyValue value) {
- this.value = value.getSubOptionValue(ItemName.NET_IP_INFO, getName());
+ public void setInitialValue() {
+ this.value = propertyValue.getSubOptionValue(ItemName.NET_IP_INFO, getName());
}
@Override
- public void setValue(PropertyValue value) {
- value.setSubOptionValue(ItemName.NET_IP_INFO, getName(), this.value);
-
+ public void setValue() {
+ propertyValue.setSubOptionValue(ItemName.NET_IP_INFO, getName(), this.value);
}
@Override
getItemListComp().checkValid();
}
-
@Override
public boolean isValid() {
boolean isValid = true;
}
public void resetItem() {
- boolean useDHCP = getItemListComp().getPropertyValue().getCheckBoxValue(
+ boolean useDHCP = propertyValue.getCheckBoxValue(
ItemName.NET_IP_INFO, ItemName.NET_USE_DHCP);
boolean isNAT = ((NetworkItem)getParentItem().getParentItem()).isNATType();
import org.tizen.emulator.manager.ui.renewal.item.ItemName;
import org.tizen.emulator.manager.ui.renewal.item.modify.common.ModifyDialogItem;
import org.tizen.emulator.manager.ui.renewal.item.modify.common.TextBoxItem;
-import org.tizen.emulator.manager.ui.renewal.item.modify.comp.PropertyValue;
import org.tizen.emulator.manager.ui.renewal.item.modify.comp.SubItemTitle;
import org.tizen.emulator.manager.ui.renewal.item.modify.comp.SubModifyItem;
import org.tizen.emulator.manager.vms.EmulatorVMList;
}
@Override
- public void setInitialValue(PropertyValue value) {
- this.value = value.getSubOptionValue(ItemName.NET_MAC);
+ public void setInitialValue() {
+ this.value = propertyValue.getSubOptionValue(ItemName.NET_MAC);
}
@Override
- public void setValue(PropertyValue value) {
- value.setSubOptionValue(ItemName.NET_MAC, this.value);
+ public void setValue() {
+ propertyValue.setSubOptionValue(ItemName.NET_MAC, this.value);
}
return new NetMacItem(getTitle());
}
-
public void resetItem() {
boolean isBridge = !((NetworkItem)getParentItem()).isNATType();
import org.tizen.emulator.manager.ui.renewal.item.ItemName;
import org.tizen.emulator.manager.ui.renewal.item.modify.common.ComboItem;
import org.tizen.emulator.manager.ui.renewal.item.modify.common.ModifyDialogItem;
-import org.tizen.emulator.manager.ui.renewal.item.modify.comp.PropertyValue;
import org.tizen.emulator.manager.ui.renewal.item.modify.comp.SubItemTitle;
import org.tizen.emulator.manager.ui.renewal.item.modify.comp.SubModifyItem;
import org.tizen.emulator.manager.ui.renewal.widgets.ComboBox;
comboSelected();
}
-
@Override
- public void setInitialValue(PropertyValue value) {
- proxyMode = value.getSubOptionValue(ItemName.NET_PROXY, ITEM_PROXY_MODE);
+ public void setInitialValue() {
+ proxyMode = propertyValue.getSubOptionValue(ItemName.NET_PROXY, ITEM_PROXY_MODE);
if (proxyMode.isEmpty()) {
proxyMode = MODE_AUTO;
}
if (proxyMode.equals(MODE_MANUAL)) {
- httpProxy = value.getSubOptionValue(ItemName.NET_PROXY, ITEM_HTTP_PROXY);
- httpsProxy = value.getSubOptionValue(ItemName.NET_PROXY, ITEM_HTTPS_PROXY);
- ftpProxy = value.getSubOptionValue(ItemName.NET_PROXY, ITEM_FTP_PROXY);
- socksProxy = value.getSubOptionValue(ItemName.NET_PROXY,ITEM_SOCKS_PROXY);
+ httpProxy = propertyValue.getSubOptionValue(ItemName.NET_PROXY, ITEM_HTTP_PROXY);
+ httpsProxy = propertyValue.getSubOptionValue(ItemName.NET_PROXY, ITEM_HTTPS_PROXY);
+ ftpProxy = propertyValue.getSubOptionValue(ItemName.NET_PROXY, ITEM_FTP_PROXY);
+ socksProxy = propertyValue.getSubOptionValue(ItemName.NET_PROXY,ITEM_SOCKS_PROXY);
}
}
@Override
- public void setValue(PropertyValue value) {
- value.setSubOptionValue(ItemName.NET_PROXY, ITEM_PROXY_MODE, proxyMode);
- value.setSubOptionValue(ItemName.NET_PROXY, ITEM_HTTP_PROXY, httpProxy);
- value.setSubOptionValue(ItemName.NET_PROXY, ITEM_HTTPS_PROXY, httpsProxy);
- value.setSubOptionValue(ItemName.NET_PROXY, ITEM_FTP_PROXY, ftpProxy);
- value.setSubOptionValue(ItemName.NET_PROXY, ITEM_SOCKS_PROXY, socksProxy);
-
+ public void setValue() {
+ propertyValue.setSubOptionValue(ItemName.NET_PROXY, ITEM_PROXY_MODE, proxyMode);
+ propertyValue.setSubOptionValue(ItemName.NET_PROXY, ITEM_HTTP_PROXY, httpProxy);
+ propertyValue.setSubOptionValue(ItemName.NET_PROXY, ITEM_HTTPS_PROXY, httpsProxy);
+ propertyValue.setSubOptionValue(ItemName.NET_PROXY, ITEM_FTP_PROXY, ftpProxy);
+ propertyValue.setSubOptionValue(ItemName.NET_PROXY, ITEM_SOCKS_PROXY, socksProxy);
}
@Override
return httpProxy + "," + httpsProxy + "," //$NON-NLS-1$ //$NON-NLS-2$
+ ftpProxy + "," + socksProxy; //$NON-NLS-1$
}
+
+
+ @Override
+ public void changeItem(ModifyDialogItem srcDialogItem) {
+ selectItem(false);
+ }
}
import org.tizen.emulator.manager.ui.renewal.item.ItemName;
import org.tizen.emulator.manager.ui.renewal.item.modify.common.ComboItem;
import org.tizen.emulator.manager.ui.renewal.item.modify.common.ModifyDialogItem;
-import org.tizen.emulator.manager.ui.renewal.item.modify.comp.PropertyValue;
import org.tizen.emulator.manager.ui.renewal.item.modify.comp.SubItemTitle;
import org.tizen.emulator.manager.ui.renewal.item.modify.comp.SubModifyItem;
import org.tizen.emulator.manager.ui.renewal.widgets.ComboBox;
}
@Override
- public void setInitialValue(PropertyValue value) {
- interfaceName = value.getSubOptionValue(ItemName.NET_TAP_DEVICE);
+ public void setInitialValue() {
+ interfaceName = propertyValue.getSubOptionValue(ItemName.NET_TAP_DEVICE);
}
@Override
- public void setValue(PropertyValue value) {
- value.setSubOptionValue(ItemName.NET_TAP_DEVICE, interfaceName);
+ public void setValue() {
+ propertyValue.setSubOptionValue(ItemName.NET_TAP_DEVICE, interfaceName);
}
import org.tizen.emulator.manager.ui.renewal.dialog.TapDeviceDialogForWin;
import org.tizen.emulator.manager.ui.renewal.item.ItemName;
import org.tizen.emulator.manager.ui.renewal.item.modify.common.ModifyDialogItem;
-import org.tizen.emulator.manager.ui.renewal.item.modify.comp.PropertyValue;
import org.tizen.emulator.manager.ui.renewal.item.modify.comp.SubModifyItem;
import org.tizen.emulator.manager.ui.renewal.widgets.ImageButton;
import org.tizen.emulator.manager.ui.renewal.widgets.WSTATE;
}
@Override
- public void setInitialValue(PropertyValue value) {
- interfaceName = value.getSubOptionValue(ItemName.NET_TAP_DEVICE);
- platformVersion = value.getPlatformVersion();
+ public void setInitialValue() {
+ interfaceName = propertyValue.getSubOptionValue(ItemName.NET_TAP_DEVICE);
+ platformVersion = propertyValue.getPlatformVersion();
}
@Override
public boolean isNATType() {
- String connectType = getItemListComp().getPropertyValue().
+ String connectType = propertyValue.
getSubOptionValue(ItemName.NET_CONNECT_TYPE);
if (connectType.equals(NetConnectTypeItem.TYPE_NAT)) {
return true;
import org.tizen.emulator.manager.ui.renewal.item.modify.common.ComboItem;
import org.tizen.emulator.manager.ui.renewal.item.modify.common.ModifyDialogItem;
import org.tizen.emulator.manager.ui.renewal.item.modify.comp.ModifyItem;
-import org.tizen.emulator.manager.ui.renewal.item.modify.comp.PropertyValue;
import org.tizen.emulator.manager.ui.renewal.widgets.ComboBox;
import org.tizen.emulator.manager.vms.OCI;
import org.tizen.emulator.manager.vms.OCIList;
}
@Override
- public void setInitialValue(PropertyValue value) {
+ public void setInitialValue() {
if (!EmulatorManager.isMac()) {
try {
scanOCIDevice();
+ StringResources.NEW_LINE + "Error: " + e.getMessage()); //$NON-NLS-1$
}
}
- newOCIDevice = value.getOCIDevice();
+ newOCIDevice = propertyValue.getOCIDevice();
- String ociValue = value.getOCIOption();
+ String ociValue = propertyValue.getOCIOption();
String device = null;
if (ociValue != null && !ociValue.equals(VALUE_NONE) && !ociValue.equals(" ")) { //$NON-NLS-1$
}
@Override
- public void setValue(PropertyValue value) {
- value.setOCIDevice(newOCIDevice);
- value.setOCIOption(ociOption);
+ public void setValue() {
+ propertyValue.setOCIDevice(newOCIDevice);
+ propertyValue.setOCIOption(ociOption);
}
@Override
import org.tizen.emulator.manager.ui.renewal.item.ItemName;
import org.tizen.emulator.manager.ui.renewal.item.modify.common.ComboItem;
import org.tizen.emulator.manager.ui.renewal.item.modify.common.ModifyDialogItem;
-import org.tizen.emulator.manager.ui.renewal.item.modify.comp.PropertyValue;
import org.tizen.emulator.manager.ui.renewal.item.modify.comp.SubItemTitle;
import org.tizen.emulator.manager.ui.renewal.item.modify.comp.SubModifyItem;
import org.tizen.emulator.manager.ui.renewal.widgets.ComboBox;
private void createDetailItem() {
createDetailItem(tunerCountry);
- String tunerSystem = getItemListComp().getPropertyValue().getSubOptionValue(
+ String tunerSystem = propertyValue.getSubOptionValue(
ItemName.TUNER, ItemName.TUNER_SYSTEM);
setTitleEnable(SYSTEM_ATSC.equals(tunerSystem));
// init combo list
initComboList();
- resetCombo(getItemListComp().getPropertyValue().getSubOptionValue(
+ resetCombo(propertyValue.getSubOptionValue(
ItemName.TUNER, ItemName.TUNER_SYSTEM));
}
@Override
- public void setInitialValue(PropertyValue value) {
- tunerCountry = value.getSubOptionValue(ItemName.TUNER, getName());
+ public void setInitialValue() {
+ tunerCountry = propertyValue.getSubOptionValue(ItemName.TUNER, getName());
}
@Override
- public void setValue(PropertyValue value) {
- value.setSubOptionValue(ItemName.TUNER, getName(), tunerCountry);
+ public void setValue() {
+ propertyValue.setSubOptionValue(ItemName.TUNER, getName(), tunerCountry);
}
import org.tizen.emulator.manager.ui.renewal.item.ItemName;
import org.tizen.emulator.manager.ui.renewal.item.modify.common.ComboItem;
import org.tizen.emulator.manager.ui.renewal.item.modify.common.ModifyDialogItem;
-import org.tizen.emulator.manager.ui.renewal.item.modify.comp.PropertyValue;
import org.tizen.emulator.manager.ui.renewal.item.modify.comp.SubItemTitle;
import org.tizen.emulator.manager.ui.renewal.item.modify.comp.SubModifyItem;
import org.tizen.emulator.manager.ui.renewal.widgets.ComboBox;
}
@Override
- public void setInitialValue(PropertyValue value) {
- tunerSystem = value.getSubOptionValue(ItemName.TUNER, getName());
+ public void setInitialValue() {
+ tunerSystem = propertyValue.getSubOptionValue(ItemName.TUNER, getName());
}
@Override
- public void setValue(PropertyValue value) {
- value.setSubOptionValue(ItemName.TUNER, getName(), tunerSystem);
+ public void setValue() {
+ propertyValue.setSubOptionValue(ItemName.TUNER, getName(), tunerSystem);
}
@Override
import org.tizen.emulator.manager.ui.renewal.item.ItemName;
import org.tizen.emulator.manager.ui.renewal.item.modify.common.FileDialogItem;
import org.tizen.emulator.manager.ui.renewal.item.modify.common.ModifyDialogItem;
-import org.tizen.emulator.manager.ui.renewal.item.modify.comp.PropertyValue;
import org.tizen.emulator.manager.ui.renewal.item.modify.comp.SubItemTitle;
import org.tizen.emulator.manager.ui.renewal.item.modify.comp.SubModifyItem;
}
@Override
- public void setInitialValue(PropertyValue value) {
- newTableFileName = value.getSubOptionValue(ItemName.TUNER, ItemName.TUNER_FILE_NAME);
- newTableFilePath = value.getSubOptionValue(ItemName.TUNER, ItemName.TUNER_FILE_PATH);
+ public void setInitialValue() {
+ newTableFileName = propertyValue.getSubOptionValue(ItemName.TUNER, ItemName.TUNER_FILE_NAME);
+ newTableFilePath = propertyValue.getSubOptionValue(ItemName.TUNER, ItemName.TUNER_FILE_PATH);
if (newTableFileName.isEmpty()) {
newTableFileName = TABLE_DEFAULT;
}
@Override
- public void setValue(PropertyValue value) {
- value.setSubOptionValue(ItemName.TUNER, ItemName.TUNER_FILE_NAME, newTableFileName);
- value.setSubOptionValue(ItemName.TUNER, ItemName.TUNER_FILE_PATH, newTableFilePath);
+ public void setValue() {
+ propertyValue.setSubOptionValue(ItemName.TUNER, ItemName.TUNER_FILE_NAME, newTableFileName);
+ propertyValue.setSubOptionValue(ItemName.TUNER, ItemName.TUNER_FILE_PATH, newTableFilePath);
}
// change advanced item-list
settingVMPropertyValue();
- PropertyValue value = new PropertyValue(newValue.clone());
+ PropertyValue value = new PropertyValue(newValue);
advancedViewer.changeItemList(baseImage, value);
if (needRedrawingTable) {
newValue.setDeviceTemplate(template);
// set advanced option value
- advancedViewer.saveDataInto(newValue);
+ advancedViewer.saveDataInto();
// TODO
if (newValue.skin == null) {