- set disable 'confirm' button, when template list is empty
Change-Id: Ie93afbb1a8e277faa12e8d4cabd5bfda20eba56a
Signed-off-by: jihye424.kim <jihye424.kim@samsung.com>
if (table.getItemCount() > 0) {
table.setSelection(0);
+ } else {
+ // set template is null;
+ viewer.setTemplate(null);
}
}
table.showTable();
}
-
-
checkValid();
}
public void setTemplate(DeviceTemplate template) {
this.template = template;
- if (newValue == null) {
- settingVMPropertyValue();
- }
-
- // check camera
- resetCameraOption();
+ if (this.template != null) {
+ if (newValue == null) {
+ settingVMPropertyValue();
+ }
- // check skin list
- resetSkinList(template.getValue().getResolution());
+ // check camera
+ resetCameraOption();
+ // check skin list
+ resetSkinList(template.getValue().getResolution());
+ }
checkValid();
}