#include <esve/ui/extra/File_Selector.hxx>
Public Member Functions | |
| virtual const std::string & | value () const =0 |
| Query the current value. | |
| virtual File_Selector & | value (const std::string &)=0 |
| Assign a new value. | |
Keep in mind that modifying the value in code has a side-effect: it will send a handle_*() message as if the user changed it.
Setting the value within handle() itself is OK; the recursion is detected and consequently ignored.
This side-effect of emitting handle() in response to changing the value may seem surprising at first, but in the end it is the right thing. One should not depend upon the kindness of programmers to manually call update() every time they change something in code.
The facilities of Caching_Server and Caching_Emitter solve the issue of handle() being emitted before an object is fully constructed. As of this writing, all front-ends use Simple_Kernel which caches handle() messages during startup/construction phase.
|
|
Assign a new value.
|
1.3.4