public class TreeGridUtil
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
TreeGridUtil.ITGSerializationHelper
Abastraction for supplying a TimeZone
|
Modifier and Type | Method and Description | ||
---|---|---|---|
static void |
addCommonLangCFG(com.ibm.json.java.JSONObject root,
UserInfo userInfo)
Adds the default Formats based on the user's SKD locale object.
|
||
static java.util.Date |
fromTreeGridDate(long ms,
java.util.TimeZone tz)
Convert a GMT-0 TreeGrid time into a Maximo Time
|
||
static com.ibm.json.java.JSONObject |
loadLocaleResource(java.util.Locale loc,
MiniAppControl miniapp) |
||
static java.lang.String |
loadLocaleResource(java.lang.String loc,
boolean failonerror,
MiniAppControl miniapp) |
||
static com.ibm.json.java.JSONObject |
loadTreeGridLocalizedText(WebClientSession sess,
MiniAppControl miniapp) |
||
static java.util.Date |
toMaximoDate(long utcMillis)
Converts the long to a UTC date without accounting for TZ.
|
||
static java.lang.Object |
toSerializedValue(java.lang.Object o,
TreeGridUtil.ITGSerializationHelper helper) |
||
static java.lang.Object |
toStringArray(java.lang.String[] items) |
||
static long |
toTreeGridDate(java.util.Date d,
java.util.TimeZone tz)
Used to convert from "Maximo" time to "TreeGrid" time where TreeGrid time
does not use seconds, and it uses GMT-0
|
||
static long |
toTreeGridUTCDate(java.util.Date d)
Converts the date to UTC without accounting for TZ
|
||
static void |
updateTreeGridLangFormatForLocale(com.ibm.json.java.JSONObject format,
UserInfo userInfo)
static void write(TGJsonWriter jsonWriter,
java.lang.String name,
java.lang.Object value,
TreeGridUtil.ITGSerializationHelper helper) |
public static void write(TGJsonWriter jsonWriter, java.lang.String name, java.lang.Object value, TreeGridUtil.ITGSerializationHelper helper) throws java.io.IOException
java.io.IOException
public static java.lang.Object toSerializedValue(java.lang.Object o, TreeGridUtil.ITGSerializationHelper helper) throws java.io.IOException
java.io.IOException
public static long toTreeGridDate(java.util.Date d, java.util.TimeZone tz)
d
- Date using TimeZone specifiedtz
- User's TimeZonepublic static long toTreeGridUTCDate(java.util.Date d)
d
- Datepublic static java.util.Date toMaximoDate(long utcMillis)
d
- Datepublic static java.util.Date fromTreeGridDate(long ms, java.util.TimeZone tz)
ms
- TreeGrid's Time in MStz
- User's TimeZonepublic static com.ibm.json.java.JSONObject loadTreeGridLocalizedText(WebClientSession sess, MiniAppControl miniapp)
public static com.ibm.json.java.JSONObject loadLocaleResource(java.util.Locale loc, MiniAppControl miniapp) throws java.io.IOException, MXException
java.io.IOException
MXException
public static java.lang.String loadLocaleResource(java.lang.String loc, boolean failonerror, MiniAppControl miniapp) throws java.io.IOException, MXException
java.io.IOException
MXException
public static void addCommonLangCFG(com.ibm.json.java.JSONObject root, UserInfo userInfo)
root
- userInfo
- skdUIInfo
- public static void updateTreeGridLangFormatForLocale(com.ibm.json.java.JSONObject format, UserInfo userInfo)
format
- locale
- public static java.lang.Object toStringArray(java.lang.String[] items)