summaryrefslogtreecommitdiff
path: root/libjava/javax/swing/text/MaskFormatter.h
blob: d8651afc9569942698d5b39ee83903904fb03f56 (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-

#ifndef __javax_swing_text_MaskFormatter__
#define __javax_swing_text_MaskFormatter__

#pragma interface

#include <javax/swing/text/DefaultFormatter.h>
extern "Java"
{
  namespace javax
  {
    namespace swing
    {
        class JFormattedTextField;
      namespace text
      {
          class MaskFormatter;
      }
    }
  }
}

class javax::swing::text::MaskFormatter : public ::javax::swing::text::DefaultFormatter
{

public:
  MaskFormatter();
  MaskFormatter(::java::lang::String *);
  virtual ::java::lang::String * getMask();
  virtual ::java::lang::String * getInvalidCharacters();
  virtual void setInvalidCharacters(::java::lang::String *);
  virtual ::java::lang::String * getValidCharacters();
  virtual void setValidCharacters(::java::lang::String *);
  virtual ::java::lang::String * getPlaceholder();
  virtual void setPlaceholder(::java::lang::String *);
  virtual jchar getPlaceholderCharacter();
  virtual void setPlaceholderCharacter(jchar);
  virtual jboolean getValueContainsLiteralCharacters();
  virtual void setValueContainsLiteralCharacters(jboolean);
  virtual void setMask(::java::lang::String *);
  virtual void install(::javax::swing::JFormattedTextField *);
  virtual ::java::lang::Object * stringToValue(::java::lang::String *);
private:
  ::java::lang::String * convertStringToValue(::java::lang::String *);
public:
  virtual ::java::lang::String * valueToString(::java::lang::Object *);
private:
  ::java::lang::String * convertValueToString(::java::lang::String *);
  static const jchar NUM_CHAR = 35;
  static const jchar ESCAPE_CHAR = 39;
  static const jchar UPPERCASE_CHAR = 85;
  static const jchar LOWERCASE_CHAR = 76;
  static const jchar ALPHANUM_CHAR = 65;
  static const jchar LETTER_CHAR = 63;
  static const jchar ANYTHING_CHAR = 42;
  static const jchar HEX_CHAR = 72;
  ::java::lang::String * __attribute__((aligned(__alignof__( ::javax::swing::text::DefaultFormatter)))) mask;
  ::java::lang::String * invalidChars;
  ::java::lang::String * validChars;
  ::java::lang::String * placeHolder;
  jchar placeHolderChar;
  jboolean valueContainsLiteralCharacters;
  static ::java::lang::String * hexString;
public: // actually package-private
  jint maskLength;
public:
  static ::java::lang::Class class$;
};

#endif // __javax_swing_text_MaskFormatter__