Wtx ~ Wt Extension Library
WtxLib
|
Single-line Editor. More...
#include <FieldDefLineEdit.h>
Public Member Functions | |
FieldDefLineEdit (TableDef &td, const char *fn, int w=-1, int h=-1, Flags f=Flags::None, std::string lb="", std::string ph="", std::string inf="", std::string tt="", int ht=-1) | |
ctor More... | |
FieldDefLineEdit (TableDef &td, const char *fn, std::string lb, std::string ph="", std::string inf="", std::string tt="", int ht=-1) | |
ctor More... | |
virtual std::unique_ptr< Wt::WWidget > | createEditWidget (int sid, Wtx::Dbo::Session &session) const |
Public Member Functions inherited from Wtx::Dbo::FieldDefBase | |
FieldDefBase (TableDef &td, const char *fn, int w=-1, int h=-1, Flags f=Flags::None, std::string lb="", std::string ph="", std::string inf="", std::string tt="", int ht=-1) | |
ctor field definition object More... | |
FieldDefBase (TableDef &td, const char *fn, std::string lb="", std::string ph="", std::string inf="", std::string tt="", int ht=-1) | |
ctor field definition object More... | |
virtual Wtx::Dbo::TableDef & | tableDef () const |
virtual const char * | fieldName () const |
virtual const std::string & | aliasName () const |
virtual int | width () const |
virtual void | setWidth (int value) |
virtual int | height () const |
virtual void | setHeight (int value) |
virtual bool | isVisible () const |
virtual void | setIsVisible (bool value=true) |
virtual bool | isReadOnly () const |
virtual void | setIsReadOnly (bool value=true) |
virtual bool | isUnique () const |
virtual void | setIsUnique (bool value=true) |
virtual const std::string & | label () const |
virtual void | setLabel (const std::string &value) |
virtual const std::string & | placeholderText () const |
virtual void | setPlaceholderText (const std::string &value) |
virtual const std::string & | info () const |
virtual void | setInfo (const std::string &value) |
virtual const std::string & | toolTip () const |
virtual void | setToolTip (const std::string &value) |
virtual int | helpTopic () const |
virtual void | setHelpTopic (int value) |
virtual const Flags & | flags () const |
virtual void | setFlags (const Flags value) |
virtual const std::string & | defaultValue () const |
virtual void | setDefaultValue (const std::string &value) |
virtual bool | forceUppercase () const |
virtual void | setForceUppercase (bool value=true) |
virtual const std::string & | inputMask () const |
virtual void | setInputMask (const std::string &mask="", Wt::WFlags< Wt::InputMaskFlag > flags=Wt::None) |
virtual std::unique_ptr< Wt::WItemDelegate > | createItemDelegate (int sid, Wtx::Dbo::Session &session) const |
virtual std::unique_ptr< Wt::WWidget > | createLabelWidget (int sid, Wtx::Dbo::Session &session) const |
virtual std::unique_ptr< Wt::WWidget > | createDisplayWidget (int sid, Wtx::Dbo::Session &session) const |
virtual std::string | toJson () const |
virtual void | fromJson (const std::string &valud) |
Additional Inherited Members | |
Public Types inherited from Wtx::Dbo::FieldDefBase | |
enum | Flags { None = 0x0000, Required = 0x0001, ReadOnly = 0x0002, Password = 0x0004, ShowOnly = 0x0008, NoUi = 0x0010, Unique = 0x0020, Search = 0x0040 } |
Field Definition Flags. More... | |
Single-line Editor.
Definition at line 59 of file FieldDefLineEdit.h.
Wtx::Dbo::FieldDefLineEdit::FieldDefLineEdit | ( | TableDef & | td, |
const char * | fn, | ||
int | w = -1 , |
||
int | h = -1 , |
||
Flags | f = Flags::None , |
||
std::string | lb = "" , |
||
std::string | ph = "" , |
||
std::string | inf = "" , |
||
std::string | tt = "" , |
||
int | ht = -1 |
||
) |
ctor
fn | owning table definition (ro required) |
w | field name (ro required) |
h | width |
f | height |
lb | flags |
ph | label |
inf | placeholder text |
tt | info |
ht | tooltipText help topic |
Definition at line 54 of file FieldDefLineEdit.cpp.
Wtx::Dbo::FieldDefLineEdit::FieldDefLineEdit | ( | TableDef & | td, |
const char * | fn, | ||
std::string | lb, | ||
std::string | ph = "" , |
||
std::string | inf = "" , |
||
std::string | tt = "" , |
||
int | ht = -1 |
||
) |
ctor
fn | owning table definition (ro required) |
lb | field name (ro required) |
ph | label |
inf | placeholder text |
tt | info |
ht | tooltipText help topic |
Definition at line 71 of file FieldDefLineEdit.cpp.