public void phoneManagerDetailsCheckboxChanged(Object checkbox) { boolean selected = this.ui.isSelected(checkbox); String sectionItem = null; if (checkbox.equals(find(UI_COMPONENT_PHONE_SENDING))) { sectionItem = SECTION_ITEM_DEVICE_USE_FOR_SENDING; } else if (checkbox.equals(find(UI_COMPONENT_PHONE_RECEIVING))) { sectionItem = SECTION_ITEM_DEVICE_USE_FOR_RECEIVING; } else if (checkbox.equals(find(UI_COMPONENT_PHONE_DELIVERY_REPORTS))) { sectionItem = SECTION_ITEM_DEVICE_USE_DELIVERY_REPORTS; } else if (checkbox.equals(find(UI_COMPONENT_PHONE_DELETE))) { sectionItem = SECTION_ITEM_DEVICE_DELETE_MESSAGES; } super.settingChanged(sectionItem, selected); }
public void phoneManagerDetailsUse(Object radioButton) { Object pnPhoneSettings = find(UI_COMPONENT_PN_PHONE_SETTINGS); boolean useDevice = UI_COMPONENT_RB_PHONE_DETAILS_ENABLE.equals(this.ui.getName(radioButton)); if (useDevice) { this.ui.activate(pnPhoneSettings); // If this phone does not support SMS receiving, we need to pass this info onto // the user. We also want to gray out the options for receiving. if (!this.getDeviceSettings().supportsReceive()) { this.ui.setEnabled(find(UI_COMPONENT_PHONE_RECEIVING), false); this.ui.setEnabled(find(UI_COMPONENT_PHONE_DELETE), false); } } else this.ui.deactivate(pnPhoneSettings); super.settingChanged(SECTION_ITEM_DEVICE_USE, useDevice); }