Пример #1
0
            public override void Init(VisualElement ve, IUxmlAttributes bag, CreationContext cc)
            {
                base.Init(ve, bag, cc);

                TextInputFieldBase <T> field = ((TextInputFieldBase <T>)ve);

                field.maxLength       = m_MaxLength.GetValueFromBag(bag);
                field.isPasswordField = m_Password.GetValueFromBag(bag);
                string maskCharacter = m_MaskCharacter.GetValueFromBag(bag);

                if (maskCharacter != null && maskCharacter.Length > 0)
                {
                    field.maskChar = maskCharacter[0];
                }
            }
Пример #2
0
 protected TextEditorEventHandler(TextEditorEngine editorEngine, TextInputFieldBase textInputField)
 {
     this.editorEngine   = editorEngine;
     this.textInputField = textInputField;
     this.textInputField.SyncTextEngine();
 }
Пример #3
0
 public TouchScreenTextEditorEventHandler(TextEditorEngine editorEngine, TextInputFieldBase textInputField) : base(editorEngine, textInputField)
 {
     this.secureText = string.Empty;
 }
Пример #4
0
 public KeyboardTextEditorEventHandler(TextEditorEngine editorEngine, TextInputFieldBase textInputField) : base(editorEngine, textInputField)
 {
 }
Пример #5
0
 public TextEditorEngine(TextInputFieldBase field)
 {
     this.textInputField = field;
 }