public class UIUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static SimpleDateFormat |
UTC_DATE_FORMAT |
| Constructor and Description |
|---|
UIUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Calendar |
getCalendarFromCursor(android.database.Cursor cursor,
int columnIndex) |
static android.content.DialogInterface.OnClickListener |
getCancelClickListener() |
static String |
getDateFormat(android.content.Context context) |
static String |
getDateOrUndefined(Calendar cal,
android.content.Context context)
Method to get "undefined" if the one given is null
|
static String |
getFormattedSize(int size,
Mensuration.Precision precision) |
static String |
getSizeFormat(Mensuration.Precision precision) |
static String |
getStringOrDefault(String s,
int defaultId,
android.content.Context context)
Method to get a default string if the one given is null
|
static String |
getStringOrUndefined(BaseModel model,
android.content.Context context)
Method to get "undefined" if the one given is null
|
static String |
getStringOrUndefined(String s,
android.content.Context context)
Method to get "undefined" if the one given is null
|
public static final SimpleDateFormat UTC_DATE_FORMAT
public static android.content.DialogInterface.OnClickListener getCancelClickListener()
public static String getStringOrDefault(String s, int defaultId, android.content.Context context)
s - the string to checkdefaultId - the id of the string to return if s is nullcontext - the locationpublic static String getStringOrUndefined(BaseModel model, android.content.Context context)
model - the model to checkcontext - the locationpublic static String getStringOrUndefined(String s, android.content.Context context)
s - the string to checkcontext - the locationpublic static String getDateOrUndefined(Calendar cal, android.content.Context context)
cal - the calender to checkcontext - the locationpublic static String getDateFormat(android.content.Context context)
public static Calendar getCalendarFromCursor(android.database.Cursor cursor, int columnIndex)
public static String getSizeFormat(Mensuration.Precision precision)
public static String getFormattedSize(int size, Mensuration.Precision precision)
Copyright © 2013–2014 CodeLutin. All rights reserved.