Sets a flag to indicate whether the field
value can be considered valid if it is empty (or has
not been filled in yet). This is used by the
-validate
method.
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
This class extends
WebServerForm
to provide a form field as a menu for which a user can
select from a fixed list of options.
The
-setPrefill:
method of this class sets the value to be used to
pre-select a menu item. This is NOT
necessarily the text seen by the user (the
user sees the menu keys), but in the case where the
value does not match any of the menu values, it is
used as the key for a dummy value indicating no
selection.
- (id) initWithName: (NSString*)name keys: (NSArray*)keys values: (NSArray*)values;
This is a designated initialiser for the class.
The options supported by this field are listed as
keys (the text that the user sees in their
web browser) and values (the text used by
your program). The two arguments must be arrays of the
same size, with no items repeated within an array...
so there is a one to one mapping between keys
and values.
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
Creates a new field with the specified
name and adds it to the form.
Replaces any existing field with the same
name. The result is a hidden field
withe the supplied prefilled value.
Creates a new field with the specified
name and adds it to the form.
Replaces any existing field with the same
name. The result is a menu whose
keys are 'Yes' and 'No' (or equivalents in the current
language) and whose values are always 'Y' and
'N'.
Creates a new field with the specified
name and adds it to the form.
Replaces any existing field with the same
name. The result is a password
field withe the supplied prefilled value.
Places values from the form fields in the
map dictionary. If the
-setURL:get:
method has been called, this method also adds form
start and end markup keyed on 'FormXStart' and
'FormXEnd' where 'X' is the name of the form
(which defaults to an empty string).
Implemented as a call to
-output:for:
with self as the second argument.
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
Sets a value in the map which is the text
of the HTML input field needed to provide data for the
receiver. The map may then be used to
substitute into an HTML template.
Sets the value for this field. You do not
usually call this method directly as the
-takeValueFrom:
method populates the field value from
data provided by a browser.
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
With this method the table informs the
delegate of the HTML cell content it intends to
use, and allows the delegate to supply replacement
'highlighted' content... perhaps by making
the contents bold or even by replacing them with a link
to an image. The replacement provided by the
delegate will appear unchanged (though possibly as
a link) as the cell content without HTML escaping, so it
is important that the delegate introduces no error into
the markup.
This method is called after the delegate has supplied
replacement text and html for a cell, and
allows the delegate to specify a URL to which the
cell contents will be linked. The link
argument will be the URL the table
proposes to use, or nil if
id does not propose to use one.
With this method the table informs the
delegate of the raw text data for a
particular cell and allows the delegate to
provide replacement text to be used when
displaying the cell. The replacement
text must not have special characters
escaped as the table will escape it
later.