public final enum

CapitalizeMode

extends Enum<E extends Enum<E>>
java.lang.Object
   ↳ java.lang.Enum<E extends java.lang.Enum<E>>
     ↳ com.neomades.ui.CapitalizeMode

Class Overview

Enumeration that holds constants to customize the capitalize mode used on text fields. See the list of constants below for more details.

The capitalize mode changes the way the keyboard automatically capitalize fragments of the text to facilitate user input. A common example is a field in which the user is expected to type a person full name. In this case the WORDS can help the user by automatically capitalizing the first letter of each word.

The capitalize mode does not enforce users to use the specified case, it is just a hint. The user can still change the mode explicitly on the keyboard.

On some platforms, the capitalize mode can be set directly in the System settings. The System setting is in general prioritary on the mode set on each individual text field.

By default only the first letter of a sentence is capitalized.

Summary

Enum Values
CapitalizeMode  CHARACTERS  Capitalize all the characters. 
CapitalizeMode  NONE  Disable capitalization. 
CapitalizeMode  SENTENCES  Capitalize the first character of each sentence (default mode). 
CapitalizeMode  WORDS  Capitalize the first character of each word. 
Public Methods
static CapitalizeMode valueOf(String name)
final static CapitalizeMode[] values()
[Expand]
Inherited Methods
From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Enum Values

public static final CapitalizeMode CHARACTERS

Capitalize all the characters.

Cross Platform Considerations

Works only on Android and iOS.

public static final CapitalizeMode NONE

Disable capitalization.

Cross Platform Considerations

Works only on Android and iOS.

public static final CapitalizeMode SENTENCES

Capitalize the first character of each sentence (default mode).

Cross Platform Considerations

Works only on Android and iOS.

public static final CapitalizeMode WORDS

Capitalize the first character of each word.

Cross Platform Considerations

Works only on Android and iOS.

Public Methods

public static CapitalizeMode valueOf (String name)

public static final CapitalizeMode[] values ()