summaryrefslogtreecommitdiff
path: root/fxjs/xfa/cjx_field.h
blob: 524a6afdaa2adb2597adc873e6730c3a2420a8ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// Copyright 2017 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com

#ifndef FXJS_XFA_CJX_FIELD_H_
#define FXJS_XFA_CJX_FIELD_H_

#include "fxjs/CJX_Define.h"
#include "fxjs/xfa/cjx_container.h"

class CXFA_Field;

class CJX_Field : public CJX_Container {
 public:
  explicit CJX_Field(CXFA_Field* field);
  ~CJX_Field() override;

  JS_METHOD(addItem, CJX_Field);
  JS_METHOD(boundItem, CJX_Field);
  JS_METHOD(clearItems, CJX_Field);
  JS_METHOD(deleteItem, CJX_Field);
  JS_METHOD(execCalculate, CJX_Field);
  JS_METHOD(execEvent, CJX_Field);
  JS_METHOD(execInitialize, CJX_Field);
  JS_METHOD(execValidate, CJX_Field);
  JS_METHOD(getDisplayItem, CJX_Field);
  JS_METHOD(getItemState, CJX_Field);
  JS_METHOD(getSaveItem, CJX_Field);
  JS_METHOD(setItemState, CJX_Field);

 private:
  static const CJX_MethodSpec MethodSpecs[];
};

#endif  // FXJS_XFA_CJX_FIELD_H_