mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-09 05:24:44 +01:00
add capitalize()
This commit is contained in:
parent
f48ed0cd9c
commit
827b24b0ee
1 changed files with 8 additions and 0 deletions
|
@ -273,6 +273,14 @@ public class Utils {
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static String capitalize( String str )
|
||||||
|
{
|
||||||
|
if ( null != str && 0 < str.length() ) {
|
||||||
|
str = str.substring( 0, 1 ).toUpperCase() + str.substring( 1 );
|
||||||
|
}
|
||||||
|
return str;
|
||||||
|
}
|
||||||
|
|
||||||
public static void setChecked( Dialog dialog, int id, boolean value )
|
public static void setChecked( Dialog dialog, int id, boolean value )
|
||||||
{
|
{
|
||||||
CheckBox cbx = (CheckBox)dialog.findViewById( id );
|
CheckBox cbx = (CheckBox)dialog.findViewById( id );
|
||||||
|
|
Loading…
Reference in a new issue