class EE::UI::Models::StringModelEditingDelegate

#include <modeleditingdelegate.hpp>

class StringModelEditingDelegate: public EE::UI::Models::ModelEditingDelegate {
public:
    // construction

    virtual ~StringModelEditingDelegate();

    // methods

    static StringModelEditingDelegate* New();
    virtual Variant getValue() const;
    virtual void setValue(const Variant& val);
    virtual void willBeginEditing();
};

Inherited Members

public:
    // enums

    enum SelectionBehavior;

    // fields

    std::function<void()> onCommit;
    std::function<void()> onRollback;
    std::function<void()> onChange;
    std::function<void()> onWillBeginEditing;
    std::function<void()> onValueSet;

    // methods

    void bind(std::shared_ptr<Model> model, const ModelIndex& index);
    UIWidget* getWidget();
    UIWidget* getWidget() const;
    virtual Variant getValue() const = 0;
    virtual void setValue(const Variant&) = 0;
    virtual void willBeginEditing();
    ModelIndex const& index() const;
    ModelEditingDelegate::SelectionBehavior getSelectionBehavior() const;
    void setSelectionBehavior(SelectionBehavior selectionBehavior);
    ModelRole pullDataFrom() const;
    void setPullDataFrom(ModelRole newPullDataFrom);