#include <ElementFormControl.h>


Public Member Functions | |
| ElementFormControl (const Rocket::Core::String &tag) | |
| Rocket::Core::String | GetName () const |
| void | SetName (const Rocket::Core::String &name) |
| virtual Rocket::Core::String | GetValue () const =0 |
| virtual void | SetValue (const Rocket::Core::String &value)=0 |
| virtual bool | IsSubmitted () |
| bool | IsDisabled () const |
| void | SetDisabled (bool disable) |
Protected Member Functions | |
| virtual void | OnAttributeChange (const Core::AttributeNameList &changed_attributes) |
| Rocket::Controls::ElementFormControl::ElementFormControl | ( | const Rocket::Core::String & | tag | ) |
Constructs a new ElementFormControl. This should not be called directly; use the Factory instead.
| [in] | tag | The tag the element was declared as in RML. |
| Rocket::Core::String Rocket::Controls::ElementFormControl::GetName | ( | ) | const |
Returns the name of the form control. This is not guaranteed to be unique, and in the case of some form controls (such as radio buttons) most likely will not be.
| void Rocket::Controls::ElementFormControl::SetName | ( | const Rocket::Core::String & | name | ) |
Sets the name of the form control.
| [in] | name | The new name of the form control. |
| virtual Rocket::Core::String Rocket::Controls::ElementFormControl::GetValue | ( | ) | const [pure virtual] |
Returns a string representation of the current value of the form control.
Implemented in Rocket::Controls::ElementFormControlInput, Rocket::Controls::ElementFormControlSelect, and Rocket::Controls::ElementFormControlTextArea.
| virtual void Rocket::Controls::ElementFormControl::SetValue | ( | const Rocket::Core::String & | value | ) | [pure virtual] |
Sets the current value of the form control.
| [in] | value | The new value of the form control. |
Implemented in Rocket::Controls::ElementFormControlInput, Rocket::Controls::ElementFormControlSelect, and Rocket::Controls::ElementFormControlTextArea.
| bool Rocket::Controls::ElementFormControl::IsSubmitted | ( | ) | [virtual] |
Returns if this value should be submitted with the form.
Reimplemented in Rocket::Controls::ElementFormControlInput.
| bool Rocket::Controls::ElementFormControl::IsDisabled | ( | ) | const |
Returns the disabled status of the form control.
| void Rocket::Controls::ElementFormControl::SetDisabled | ( | bool | disable | ) |
Sets the disabled status of the form control.
| [in] | disable | True to disable the element, false to enable. |
| void Rocket::Controls::ElementFormControl::OnAttributeChange | ( | const Core::AttributeNameList & | changed_attributes | ) | [protected, virtual] |
Checks for changes to the 'disabled' attribute.
| [in] | changed_attributes | List of changed attributes on the element. |
Reimplemented from Rocket::Core::Element.
Reimplemented in Rocket::Controls::ElementFormControlDataSelect, Rocket::Controls::ElementFormControlInput, and Rocket::Controls::ElementFormControlTextArea.