Beispiel #1
0
        internal static int makeTextContentType(android.text.method.TextKeyListener.Capitalize
                                                caps, bool autoText)
        {
            int contentType = android.text.InputTypeClass.TYPE_CLASS_TEXT;

            switch (caps)
            {
            case android.text.method.TextKeyListener.Capitalize.CHARACTERS:
            {
                contentType |= android.text.InputTypeClass.TYPE_TEXT_FLAG_CAP_CHARACTERS;
                break;
            }

            case android.text.method.TextKeyListener.Capitalize.WORDS:
            {
                contentType |= android.text.InputTypeClass.TYPE_TEXT_FLAG_CAP_WORDS;
                break;
            }

            case android.text.method.TextKeyListener.Capitalize.SENTENCES:
            {
                contentType |= android.text.InputTypeClass.TYPE_TEXT_FLAG_CAP_SENTENCES;
                break;
            }
            }
            if (autoText)
            {
                contentType |= android.text.InputTypeClass.TYPE_TEXT_FLAG_AUTO_CORRECT;
            }
            return(contentType);
        }
Beispiel #2
0
 private QwertyKeyListener(android.text.method.TextKeyListener.Capitalize cap, bool
                           autoText, bool fullKeyboard)
 {
     mAutoCap      = cap;
     mAutoText     = autoText;
     mFullKeyboard = fullKeyboard;
 }
Beispiel #3
0
		private QwertyKeyListener(android.text.method.TextKeyListener.Capitalize cap, bool
			 autoText, bool fullKeyboard)
		{
			mAutoCap = cap;
			mAutoText = autoText;
			mFullKeyboard = fullKeyboard;
		}
Beispiel #4
0
        /// <summary>
        /// Returns a new or existing instance with the specified capitalization
        /// and correction properties.
        /// </summary>
        /// <remarks>
        /// Returns a new or existing instance with the specified capitalization
        /// and correction properties.
        /// </remarks>
        /// <param name="cap">when, if ever, to automatically capitalize.</param>
        /// <param name="autotext">whether to automatically do spelling corrections.</param>
        public static android.text.method.TextKeyListener getInstance(bool autotext, android.text.method.TextKeyListener
                                                                      .Capitalize cap)
        {
            int off = (int)(cap) * 2 + (autotext ? 1 : 0);

            if (sInstance[off] == null)
            {
                sInstance[off] = new android.text.method.TextKeyListener(cap, autotext);
            }
            return(sInstance[off]);
        }
Beispiel #5
0
        /// <summary>
        /// Returns whether it makes sense to automatically capitalize at the
        /// specified position in the specified text, with the specified rules.
        /// </summary>
        /// <remarks>
        /// Returns whether it makes sense to automatically capitalize at the
        /// specified position in the specified text, with the specified rules.
        /// </remarks>
        /// <param name="cap">the capitalization rules to consider.</param>
        /// <param name="cs">the text in which an insertion is being made.</param>
        /// <param name="off">the offset into that text where the insertion is being made.</param>
        /// <returns>whether the character being inserted should be capitalized.</returns>
        public static bool shouldCap(android.text.method.TextKeyListener.Capitalize cap,
                                     java.lang.CharSequence cs, int off)
        {
            int  i;
            char c;

            if (cap == android.text.method.TextKeyListener.Capitalize.NONE)
            {
                return(false);
            }
            if (cap == android.text.method.TextKeyListener.Capitalize.CHARACTERS)
            {
                return(true);
            }
            return(android.text.TextUtils.getCapsMode(cs, off, cap == android.text.method.TextKeyListener
                                                      .Capitalize.WORDS ? android.text.TextUtils.CAP_MODE_WORDS : android.text.TextUtils
                                                      .CAP_MODE_SENTENCES) != 0);
        }
Beispiel #6
0
 /// <summary>
 /// Creates a new TextKeyListener with the specified capitalization
 /// and correction properties.
 /// </summary>
 /// <remarks>
 /// Creates a new TextKeyListener with the specified capitalization
 /// and correction properties.
 /// </remarks>
 /// <param name="cap">when, if ever, to automatically capitalize.</param>
 /// <param name="autotext">whether to automatically do spelling corrections.</param>
 public TextKeyListener(android.text.method.TextKeyListener.Capitalize cap, bool autotext
                        )
 {
     mAutoCap  = cap;
     mAutoText = autotext;
 }
 public static android.text.method.MultiTapKeyListener getInstance(bool autotext,
                                                                   android.text.method.TextKeyListener.Capitalize cap)
 {
     throw new System.NotImplementedException();
 }
 public MultiTapKeyListener(android.text.method.TextKeyListener.Capitalize cap, bool
                            autotext)
 {
     throw new System.NotImplementedException();
 }
Beispiel #9
0
 public MultiTapKeyListener(android.text.method.TextKeyListener.Capitalize arg0, bool arg1)  : base(global::MonoJavaBridge.JNIEnv.ThreadEnv)
 {
     global::MonoJavaBridge.JNIEnv         @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;
     global::MonoJavaBridge.JniLocalHandle handle = @__env.NewObject(android.text.method.MultiTapKeyListener.staticClass, global::android.text.method.MultiTapKeyListener._MultiTapKeyListener8124, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg1));
     Init(@__env, handle);
 }
Beispiel #10
0
 public static global::android.text.method.MultiTapKeyListener getInstance(bool arg0, android.text.method.TextKeyListener.Capitalize arg1)
 {
     global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;
     return(global::MonoJavaBridge.JavaBridge.WrapJavaObject(@__env.CallStaticObjectMethod(android.text.method.MultiTapKeyListener.staticClass, global::android.text.method.MultiTapKeyListener._getInstance8118, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg1))) as android.text.method.MultiTapKeyListener);
 }
Beispiel #11
0
 public QwertyKeyListener(android.text.method.TextKeyListener.Capitalize cap, bool
                          autoText) : this(cap, autoText, false)
 {
 }
Beispiel #12
0
		/// <summary>
		/// Creates a new TextKeyListener with the specified capitalization
		/// and correction properties.
		/// </summary>
		/// <remarks>
		/// Creates a new TextKeyListener with the specified capitalization
		/// and correction properties.
		/// </remarks>
		/// <param name="cap">when, if ever, to automatically capitalize.</param>
		/// <param name="autotext">whether to automatically do spelling corrections.</param>
		public TextKeyListener(android.text.method.TextKeyListener.Capitalize cap, bool autotext
			)
		{
			mAutoCap = cap;
			mAutoText = autotext;
		}
Beispiel #13
0
 public static bool shouldCap(android.text.method.TextKeyListener.Capitalize arg0, java.lang.CharSequence arg1, int arg2)
 {
     global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;
     return(@__env.CallStaticBooleanMethod(android.text.method.TextKeyListener.staticClass, global::android.text.method.TextKeyListener._shouldCap8187, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg1), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg2)));
 }