* [ 1661548 ] WAN: tab loading should be improved

- Improve loading of field meta data for wan profile
- Added optional background loading of field meta data ( default to off )
This commit is contained in:
Heng Sin Low 2007-02-20 13:40:55 +00:00
parent 1f6d8cbd0d
commit f623fa4a85
1 changed files with 8 additions and 2 deletions

View File

@ -157,6 +157,12 @@ public final class Ini implements Serializable
/** Charser Default Value */
private static final String DEFAULT_CHARSET = Charset.defaultCharset().name();
/** Load tab fields meta data using backgrond thread **/
public static final String P_LOAD_TAB_META_DATA_BG = "LoadTabMetaDataBackground";
public static final String DEFAULT_LOAD_TAB_META_DATA_BG
= Boolean.toString("Y".equalsIgnoreCase(System.getProperty(P_LOAD_TAB_META_DATA_BG)));
/** Ini Properties */
private static final String[] PROPERTIES = new String[] {
P_UID, P_PWD, P_TRACELEVEL, P_TRACEFILE,
@ -173,7 +179,7 @@ public final class Ini implements Serializable
P_SINGLE_INSTANCE_PER_WINDOW,
P_OPEN_WINDOW_MAXIMIZED,
P_WARNING, P_WARNING_de,
P_CHARSET
P_CHARSET, P_LOAD_TAB_META_DATA_BG
};
/** Ini Property Values */
private static final String[] VALUES = new String[] {
@ -191,7 +197,7 @@ public final class Ini implements Serializable
DEFAULT_SINGLE_INSTANCE_PER_WINDOW?"Y":"N",
DEFAULT_OPEN_WINDOW_MAXIMIZED?"Y":"N",
DEFAULT_WARNING, DEFAULT_WARNING_de,
DEFAULT_CHARSET
DEFAULT_CHARSET, DEFAULT_LOAD_TAB_META_DATA_BG
};
/** Container for Properties */