BCAbstractField Class Reference
Inherits from | NSObject |
Conforms to | BCCellDelegate |
Declared in | BCAbstractField.h |
Overview
This is a base class that it designed to be extended to add new types of form fields. The key method to implement is:
-createCell … Subclasses must return an instance of BCAbstractCell.
Tasks
-
section
The section that owns this field.
property -
label
Label for the field.
property -
cellColor
Overrides the property in BCForm or BCFormSection, for this specific field.
property -
selectedCellColor
Overrides the property in BCForm or BCFormSection, for this specific field.
property -
sectionTitleColor
Overrides the property in BCForm or BCFormSection, for this specific field.
property -
textColor
Overrides the property in BCForm or BCFormSection, for this specific field.
property -
selectedTextColor
Overrides the property in BCForm or BCFormSection, for this specific field.
property -
editable
Sets whether the field is writable or readonly.
property -
+ fieldWithLabel:
-
+ fieldWithLabel:cellColor:selectedCellColor:sectionTitleColor:
-
– initWithLabel:cellColor:selectedCellColor:sectionTitleColor:
-
– cell
Returns the created cell instance.
-
– createCellInstance
The key method to be implemented by sub-classes. This is the appropriate place to also specify a custom input view. To do this set
cell
.textField.inputView = <your input view>
… this of course requires a text-field to capture the input, but the text field need not be a visible part of the cell. -
– textValue
Returns the selected/set value as a string.
-
– value
Returns the selected/set value.
-
– setValue:
Sets the value.
-
– formCellWasFocused:
-
– formCellLostFocus:
Properties
cellColor
Overrides the property in BCForm or BCFormSection, for this specific field.
@property (nonatomic, strong) UIColor *cellColor
Discussion
Overrides the property in BCForm or BCFormSection, for this specific field.
Declared In
BCAbstractField.h
editable
Sets whether the field is writable or readonly.
@property (nonatomic) BOOL editable
Discussion
Sets whether the field is writable or readonly.
Declared In
BCAbstractField.h
label
Label for the field.
@property (nonatomic, strong, readonly) NSString *label
Discussion
Label for the field.
Declared In
BCAbstractField.h
section
The section that owns this field.
@property (nonatomic, weak) BCFormSection *section
Discussion
The section that owns this field.
Declared In
BCAbstractField.h
sectionTitleColor
Overrides the property in BCForm or BCFormSection, for this specific field.
@property (nonatomic, strong) UIColor *sectionTitleColor
Discussion
Overrides the property in BCForm or BCFormSection, for this specific field.
Declared In
BCAbstractField.h
selectedCellColor
Overrides the property in BCForm or BCFormSection, for this specific field.
@property (nonatomic, strong) UIColor *selectedCellColor
Discussion
Overrides the property in BCForm or BCFormSection, for this specific field.
Declared In
BCAbstractField.h
selectedTextColor
Overrides the property in BCForm or BCFormSection, for this specific field.
@property (nonatomic, strong) UIColor *selectedTextColor
Discussion
Overrides the property in BCForm or BCFormSection, for this specific field.
Declared In
BCAbstractField.h
textColor
Overrides the property in BCForm or BCFormSection, for this specific field.
@property (nonatomic, strong) UIColor *textColor
Discussion
Overrides the property in BCForm or BCFormSection, for this specific field.
Declared In
BCAbstractField.h
Instance Methods
cell
Returns the created cell instance.
- (BCAbstractCell *)cell
Discussion
Returns the created cell instance.
See Also
Declared In
BCAbstractField.h
createCellInstance
The key method to be implemented by sub-classes. This is the appropriate place to also specify a custom input view. To do this set
cell
.textField.inputView = <your input view>
… this of course requires a text-field to capture the input, but the text field need
not be a visible part of the cell.
- (BCAbstractCell *)createCellInstance
Discussion
The key method to be implemented by sub-classes. This is the appropriate place to also specify a custom input view. To do this set
cell
.textField.inputView = <your input view>
… this of course requires a text-field to capture the input, but the text field need
not be a visible part of the cell.
Declared In
BCAbstractField.h
initWithLabel:cellColor:selectedCellColor:sectionTitleColor:
- (id)initWithLabel:(NSString *)label cellColor:(UIColor *)cellColor selectedCellColor:(UIColor *)selectedCellColor sectionTitleColor:(UIColor *)sectionTitleColor
setValue:
Sets the value.
- (void)setValue:(id<NSObject>)value
Discussion
Sets the value.
Declared In
BCAbstractField.h