|
@@ -13,21 +13,21 @@ import Foundation
|
|
|
self.bounds = bounds
|
|
|
if (controlType == .radioButtonControl) {
|
|
|
if let annotationModel = CPDFAnnotationModel(annotationType: .radioButton) {
|
|
|
- self.backgroundColor = annotationModel.backgroundColor()
|
|
|
+ setCurrentBackColor(backgroundColor: annotationModel.backgroundColor())
|
|
|
self.backgroundOpacity = annotationModel.backgroundOpacity()
|
|
|
self.border = CPDFBorder(style: annotationModel.style(), lineWidth: annotationModel.lineWidth(), dashPattern: annotationModel.dashPattern())
|
|
|
self.setFieldName(String(format: "%@%@", "Radio Button_",CPDFAnnotationModel.tagString()!))
|
|
|
}
|
|
|
} else if (controlType == .checkBoxControl) {
|
|
|
if let annotationModel = CPDFAnnotationModel(annotationType: .checkBox) {
|
|
|
- self.backgroundColor = annotationModel.backgroundColor()
|
|
|
+ setCurrentBackColor(backgroundColor: annotationModel.backgroundColor())
|
|
|
self.backgroundOpacity = annotationModel.backgroundOpacity()
|
|
|
self.border = CPDFBorder(style: annotationModel.style(), lineWidth: annotationModel.lineWidth(), dashPattern: annotationModel.dashPattern())
|
|
|
self.setFieldName(String(format: "%@%@", "Check Box_",CPDFAnnotationModel.tagString()!))
|
|
|
}
|
|
|
} else if (controlType == .pushButtonControl) {
|
|
|
if let annotationModel = CPDFAnnotationModel(annotationType: .actionButton) {
|
|
|
- self.backgroundColor = annotationModel.backgroundColor()
|
|
|
+ setCurrentBackColor(backgroundColor: annotationModel.backgroundColor())
|
|
|
self.backgroundOpacity = annotationModel.backgroundOpacity()
|
|
|
self.fontColor = annotationModel.fontColor()
|
|
|
self.border = CPDFBorder(style: annotationModel.style(), lineWidth: annotationModel.lineWidth(), dashPattern: annotationModel.dashPattern())
|