Abstract base class for anything shown on an EmbAJAXPage.
More...
#include <EmbAJAX.h>
|
enum | Property {
Visibility
, Enabledness
, Value
, FirstElementSpecificProperty
,
HTMLAllowed
} |
|
|
virtual void | setBasicProperty (uint8_t num, bool status) |
|
void | printChildren (EmbAJAXBase **children, size_t num) const |
|
bool | sendUpdates (EmbAJAXBase **children, size_t num, uint16_t since, bool first) |
|
EmbAJAXElement * | findChild (EmbAJAXBase **children, size_t num, const char *id) const |
|
void | printPage (EmbAJAXBase **children, size_t num, const char *_title, const char *_header, uint16_t _min_interval) const |
|
void | handleRequest (EmbAJAXBase **children, size_t num, void(*change_callback)()) |
|
|
template<size_t NUM> |
class | EmbAJAXContainer |
|
Abstract base class for anything shown on an EmbAJAXPage.
Anything that can be displayed on an EmbAJAXPage will have to inherit from this class (or be wrapped in something inherited from this class
- See also
- EmbAJAXStatic).
◆ findChild() [1/2]
virtual EmbAJAXElement* EmbAJAXBase::findChild |
( |
const char * |
id | ) |
const |
|
inlinevirtual |
◆ findChild() [2/2]
◆ handleRequest()
void EmbAJAXBase::handleRequest |
( |
EmbAJAXBase ** |
children, |
|
|
size_t |
num, |
|
|
void(*)() |
change_callback |
|
) |
| |
|
protected |
◆ printChildren()
void EmbAJAXBase::printChildren |
( |
EmbAJAXBase ** |
children, |
|
|
size_t |
num |
|
) |
| const |
|
protected |
◆ printPage()
void EmbAJAXBase::printPage |
( |
EmbAJAXBase ** |
children, |
|
|
size_t |
num, |
|
|
const char * |
_title, |
|
|
const char * |
_header, |
|
|
uint16_t |
_min_interval |
|
) |
| const |
|
protected |
◆ sendUpdates() [1/2]
bool EmbAJAXBase::sendUpdates |
( |
EmbAJAXBase ** |
children, |
|
|
size_t |
num, |
|
|
uint16_t |
since, |
|
|
bool |
first |
|
) |
| |
|
protected |
◆ sendUpdates() [2/2]
virtual bool EmbAJAXBase::sendUpdates |
( |
uint16_t |
since, |
|
|
bool |
first |
|
) |
| |
|
inlinevirtual |
serialize pending changes for the client. Virtual so you could customize it, completely, but instead you probably want to override EmbAJAXElement::valueProperty(), only, instead.
- Parameters
-
since | revision number last sent to the server. Send only changes that occured since this revision. |
first | if false, and this object writes any update, it should write a ',', first. |
- Returns
- true if anything has been written, false otherwise.
Reimplemented in EmbAJAXHideableContainer< NUM >, EmbAJAXContainer< NUM >, and EmbAJAXElement.
◆ setDriver()
Set the driver. You do not have to call this, except if you actually want to switch between several drivers at runtime.
◆ setEnabled()
void EmbAJAXBase::setEnabled |
( |
bool |
enabled | ) |
|
|
inline |
Set enabledness state of this element. Note not all EmbAJAXBase-objects support this. Importantly, EmbAJAXStatic does not. Provided in the base class for efficiency.
◆ setVisible()
void EmbAJAXBase::setVisible |
( |
bool |
visible | ) |
|
|
inline |
Set visibility of this element. Note not all EmbAJAXBase-objects support this. Importantly, EmbAJAXStatic does not. Provided in the base class for efficiency.
◆ toElement()
Cast this object to EmbAJAXElement if it is a controllable element.
- Returns
- 0, if this is not a controllable element.
Reimplemented in EmbAJAXElement.
The documentation for this class was generated from the following files: