7#ifndef FXJS_XFA_CJX_FIELD_H_
8#define FXJS_XFA_CJX_FIELD_H_
10#include "fxjs/xfa/cjx_container.h"
11#include "fxjs/xfa/jse_define.h"
46 explicit CJX_Field(CXFA_Field* field);
48 using Type__ = CJX_Field;
friend class EventParamScope
static CJS_Result Success()
static CJS_Result Failure(JSMessage id)
bool DynamicTypeIs(TypeTag eType) const override
bool DynamicTypeIs(TypeTag eType) const override
XFA_EventError execSingleEventByName(WideStringView wsEventName, XFA_Element eType)
void DefineMethods(pdfium::span< const CJX_MethodSpec > methods)
WideString GetContent(bool bScriptModify) const
void ThrowInvalidPropertyException(v8::Isolate *pIsolate) const
CXFA_Document * GetDocument() const
CXFA_Node * GetXFANode() const
void SetContent(const WideString &wsContent, const WideString &wsXMLValue, bool bNotify, bool bScriptModify, bool bSyncData)
XFA_EventError ExecEventByDeepFirst(CXFA_Node *pFormNode, XFA_EVENTTYPE eEventType, bool bIsFormReady, bool bRecursive)
CXFA_Value * GetFormValueIfExists() const
WideString GetValue(XFA_ValuePicture eValueType)
bool SetValue(XFA_ValuePicture eValueType, const WideString &wsValue)
int32_t GetSelectedItem(int32_t nIndex)
void SetItemState(int32_t nIndex, bool bSelected, bool bNotify, bool bScriptModify)
WideString NumericLimit(const WideString &wsValue)
void InsertItem(const WideString &wsLabel, const WideString &wsValue, bool bNotify)
WideString GetFormatDataValue(const WideString &wsValue)
bool DeleteItem(int32_t nIndex, bool bNotify, bool bScriptModify)
void SetPreNull(bool val)
bool GetItemState(int32_t nIndex)
void ClearAllSelections()
CXFA_Node * GetContainerNode()
bool IsWidgetReady() const
CXFA_Node * GetUIChildNode()
WideString GetItemValue(WideStringView wsLabel)
XFA_Element GetElementType() const
ByteString ToUTF8() const
WideString & operator=(WideString &&that) noexcept
const wchar_t * c_str() const
WideString(const WideString &other)
bool EqualsASCII(ByteStringView that) const
int32_t FXSYS_wtoi(const wchar_t *str)
#define CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED
#define JSE_PROP(prop_name)
#define JSE_METHOD(method_name)
bool IsUndefined(v8::Local< v8::Value > value)
bool IsNull(v8::Local< v8::Value > value)