Class Mixin-Form-View-Field

A field class of the form view.

Part of:

package weblocks, class form-view-field-writer-mixin, class mixin-view-field

Direct Superclass

form-view-field-writer-mixinA writer slot mixin
mixin-view-fieldMixin fields render a field with another view.

Slot

hidep
A predicate that determines whether the field is to be hidden from the user. If set to true, the field will not be rendered.
Initargs::hidep; Accessors:view-field-hide-p.
initform
If the object being mixed in is null, the object produced by this form will be used instead.
Initargs::initform; Accessors:mixin-view-field-init-form.
persistp
If this slot is set to true, the mixed in object will be persisted prior to being written to its parent via 'persist-object'. If null, 'persist-object' will not be called. If this slot is unbound (the default), the value will be taken from 'form-view-persist-p' of the mixin view.
Initargs::persistp; Accessors:mixin-form-view-field-persist-p.
prefix-fn
A function called prior to rendering the field. The function should expect the view object, the field object, the object being rendered, and any additional arguments passed to the view.
Initargs::prefix-fn; Accessors:view-field-prefix-fn.
reader
If this slot is bound to a function object, the function will be called with the object being rendered as argument, and its return value will be used as the value of the field. If this slot is not bound to a function object but another value, the value will be used to render the value of the field as a convinience. If the slot is not bound, 'slot-value' will be used.
Initargs::reader; Accessors:view-field-reader.
slot-name
The name of the slot that this field represents. This value can be null, in which case the field does not correspond to any slot.
Initargs::slot-name; Accessors:view-field-slot-name.
suffix-fn
A function called after rendering the field. The function should expect the view object, the field object, the object being rendered, and any additional arguments passed to the view.
Initargs::suffix-fn; Accessors:view-field-suffix-fn.
view
A mixin view to be used to render the field.
Initargs::view; Accessors:mixin-view-field-view.
writer
If this slot is bound to a function object, the function will be called with a new slot value and the object being rendered as arguments. If the slot is not bound, '(setf slot-value)' will be used.
Initargs::writer; Accessors:form-view-field-writer.

Direct Method

mixin-form-view-field-persist-p