FormField
|
+--DropDownField
public class DropDownField
extends FormField
Field Summary | |
---|---|
mixed | The maximum length of the "Or" string. |
mixed | The default display value for the drop down field. |
mixed | Used so that just drop down portion of the field can be disabled when modifying the new choice. |
mixed | The height of the list field in rows of text. |
mixed | True if the new choice sub field should be displayed. |
mixed | The sub field for entering the new choice. |
mixed | An array of options. |
mixed | True if an empty sub field constitutes an invalid value. |
mixed | An array of values that correspond with the indices of options. |
Fields inherited from FORMfields.fields.FormField | |
---|---|
autoPropagate, data, disableEnterHandler, displayValuesOnNewLine, editable, enabled, endingString, enterTabHandler, enterTabs, error, extraHtml, fieldBelowLabel, formError, help, hidden, htmlify, id, isData, label, labelForId, multiValues, name, required, subFieldDisplayValueSeparator, subFieldSeparator, subFieldValueSeparator, subFields, subFieldsCannotBeEmpty, trimWhitespace, validators, value, valueIsHtml |
Constructor Summary | |
---|---|
DropDownField(string name, string label, int required, array options, array values, string blankString, boolean includeNewChoice) Creates a new DropDownField. |
|
__construct(string name, string label, int required, array options, array values, string blankString, boolean includeNewChoice) Creates a new DropDownField. |
Method Summary | |
---|---|
string | Returns the HTML used to display the input portion of this field. |
void | Retrieves the posted field value. |
void | setValue(string value) Sets the value of this form field. |
public mixed $OR_STRING_MAX_SIZE = 40
The maximum length of the "Or" string.
public mixed $blankString = null
The default display value for the drop down field. When the blank string is selected, the selection is considered blank.
public mixed $fieldEnabled = true
Used so that just drop down portion of the field can be disabled when modifying the new choice.
public mixed $height
The height of the list field in rows of text.
public mixed $includeNewChoice = false
True if the new choice sub field should be displayed.
public mixed $newChoice
The sub field for entering the new choice.
public mixed $options = null
An array of options.
public mixed $subFieldsCannotBeEmpty = false
True if an empty sub field constitutes an invalid value.
public mixed $values = null
An array of values that correspond with the indices of options.
public DropDownField(string name, string label, int required, array options, array values, string blankString, boolean includeNewChoice)
Creates a new DropDownField.
public string getEditableFieldTag()
Returns the HTML used to display the input portion of this field.
public void getParameter()
Retrieves the posted field value. In other words, sets this field value using the appropriate values in $_REQUEST.
public void setValue(string value)
Sets the value of this form field.
DropDownField a field for selecting a single option from a drop down list of options or supplying an new option, if the new option functionality is enabled.