|
| | html_form_input (const std::string &label, input_type type, const std::string &initial_value, const std::string &size, const std::string &css_class) |
| |
|
| html_form_input (const html_form_input &ref)=default |
| |
|
| html_form_input (html_form_input &&ref) noexcept=delete |
| |
|
html_form_input & | operator= (const html_form_input &ref)=default |
| |
|
html_form_input & | operator= (html_form_input &&ref) noexcept=delete |
| |
|
void | set_range (const libdar::infinint &min, const libdar::infinint &max) |
| |
|
void | set_min_only (const libdar::infinint &min) |
| |
|
void | set_max_only (const libdar::infinint &max) |
| |
|
void | change_label (const std::string &label) |
| |
|
void | change_type (input_type type) |
| |
|
void | set_value (const std::string &val) |
| |
|
void | set_value_as_bool (bool val) |
| |
|
void | set_value_as_int (int val) |
| |
|
const std::string & | get_value () const |
| |
|
bool | get_value_as_bool () const |
| |
|
int | get_value_as_int () const |
| |
|
void | set_enabled (bool val) |
| | set whether the HTML control is enable or disabled
|
| |
| void | box_set_css_class (const std::string &val) |
| | apply css to the box (text box if checkbox, but not to the label) More...
|
| |
|
const std::string & | box_get_css_class () const |
| | get the current css class applied to the box only
|
| |
| void | set_change_event_name (const std::string &name) |
| | change the name of the event generated when this control changes More...
|
| |
|
std::string | get_event_name () const |
| | get the event name used when the component changes
|
| |
| virtual void | load_json (const json &source) override |
| | inherited from jsoner More...
|
| |
| virtual json | save_json () const override |
| | inherited from jsoner More...
|
| |
| virtual void | clear_json () override |
| | inherited from jsoner More...
|
| |
|
void | set_tooltip (const std::string &msg) |
| | set tooltip for the html label of the input form
|
| |
Public Member Functions inherited from body_builder |
|
| body_builder () |
| | constructor
|
| |
| | body_builder (const body_builder &ref) |
| | copy constructor More...
|
| |
| | body_builder (body_builder &&ref) noexcept=delete |
| | move constructor More...
|
| |
| body_builder & | operator= (const body_builder &ref) |
| | assignment operator drops all existing children More...
|
| |
| body_builder & | operator= (body_builder &&ref) noexcept=delete |
| | move operator More...
|
| |
|
virtual | ~body_builder () |
| | the (virtual) destructor
|
| |
| void | set_prefix (const chemin &prefix) |
| |
| void | adopt (body_builder *obj) |
| |
|
bool | is_adopted () const |
| | whether the object has currently a parent (= is adopted)
|
| |
| void | foresake (body_builder *obj) |
| |
| void | set_visible (bool mode) |
| | ask for the object to become visible in HTML page or temporarily hidden More...
|
| |
| bool | get_visible () const |
| | returns the current visible status of the object More...
|
| |
|
bool | get_visible_recursively () const |
| | return the effective visible status of an object taking into account all of ancestors that adopted it
|
| |
|
void | add_css_class (const std::string &name) |
| | set this object with a additional css_class (assuming it is defined in a css_library available for this object)
|
| |
|
void | add_css_class (const css_class_group &cg) |
| | set this object with an additional set of css_classes (assuming they are all defined in a css_library available for this object)
|
| |
|
bool | has_css_class (const std::string &name) const |
| | check the presence of the given class name
|
| |
|
void | remove_css_class (const std::string &name) |
| | remove the provided css_class name from the list of css_class names this object has been assigned to
|
| |
|
void | remove_css_class (const css_class_group &cg) |
| | remove the provided css_class_group from the list
|
| |
|
void | clear_css_classes () |
| | clear the whole list of css_class names
|
| |
|
const std::set< std::string > & | get_css_classes_as_a_set () const |
| | provide the list of css_class names that this object has been set with
|
| |
|
css_class_group | get_css_class_group () const |
| | provide the list of css_class names as a css_class_group
|
| |
| std::string | get_css_classes (const std::string &extra="") const |
| | return the class_name as inlined css, suitable to be added in a html marker More...
|
| |
| void | define_css_class_in_library (const css_class &csscl) |
| |
|
void | define_css_class_in_library (const std::string &name, const css &cssdef) |
| |
|
bool | is_css_class_defined_in_library (const std::string &name) const |
| | check whether a css_class of given name already exists in a reachable css_library
|
| |
| std::string | get_body_part (const chemin &path, const request &req) |
| |
| void | ignore_body_changed_from_my_children (bool mode) |
| | ignore my_body_part_has_changed() invoked from adopted children and myself More...
|
| |
|
bool | get_ignore_body_changed_from_my_children () const |
| | get the current status of ignore_body_changed_from_my_children()
|
| |
| void | set_no_CR (bool no_cr=true) |
| | ask for the implementation not to add a new line after this control More...
|
| |
| void | assign_anchor (bool mode) |
| | assign an anchor to this object (the object's inherited_get_body_part() will be wrapped into an HTML anchor: ) More...
|
| |
| std::string | get_assigned_anchor () const |
| | return the anchor value that has been assiged to this object (without the leading #) More...
|
| |
| virtual void | bind_to_anchor (const std::string &val) |
| | ask inherited components to use this anchor in case they redirect to an new URL or generate new URLs within their body part. More...
|
| |
| | events (const events &ref) |
| | copy constructor More...
|
| |
|
| events (events &&ref) noexcept(false)=default |
| |
|
events & | operator= (const events &ref)=default |
| |
|
events & | operator= (events &&ref) noexcept(false) |
| |
|
void | record_actor_on_event (actor *ptr, const std::string &name) |
| | record an actor for an given event
|
| |
|
| reference () |
| | usual constructor
|
| |
| | reference (const reference &ref) |
| | copy constructor More...
|
| |
| | reference (reference &&ref) noexcept(false) |
| | move constructor (only operational for objects without peering) More...
|
| |
| reference & | operator= (const reference &ref) |
| | assignment operator (only operational for objects without peering) More...
|
| |
| reference & | operator= (reference &&ref) noexcept(false) |
| | move assigment operator More...
|
| |
|
virtual | ~reference () |
| | destructor
|
| |
| void | peer_with (reference *obj) |
| | method used to create a relation between two objects More...
|
| |
|
void | break_peer_with (reference *obj) |
| | break the peering with the object given as argument
|
| |
|
bool | is_peer (reference *obj) const |
| | whether a peering exists with that object
|
| |
|
bool | is_empty () const |
| | whether the current object has peering
|
| |
|
unsigned int | size () const |
| | the number of peers
|
| |
|
| jsoner (const jsoner &ref)=default |
| |
|
| jsoner (jsoner &&ref) noexcept(false)=default |
| |
|
jsoner & | operator= (const jsoner &ref)=default |
| |
|
jsoner & | operator= (jsoner &&ref) noexcept(false)=default |
| |
| virtual void | load_json (const json &source)=0 |
| | setup the components from the json provided information More...
|
| |
| virtual json | save_json () const =0 |
| | produce a json structure from the component configuration More...
|
| |
| virtual void | clear_json ()=0 |
| | instruct the object to get to its default/initial configuration More...
|
| |
class html_form_input implements HTML input feature
it is expected to be adopted by an html_form directory or through an html_form_fieldset, to provide a mean for user to provide information. Depdending on the type set in the constructor argument, this object is visually a text window, a check box or let the user select a file on his local directory (local from browser point of view).
- Examples
- /home/denis/Webdar/webdar/src/html_form_input_file.hpp.