- remember the last collapsed state of menu
This commit is contained in:
Heng Sin Low 2009-10-28 09:49:01 +00:00
parent e628941eb5
commit 98c13ad7c0
1 changed files with 10 additions and 4 deletions

View File

@ -31,7 +31,7 @@ import org.compiere.util.Language;
*/ */
public final class UserPreference implements Serializable { public final class UserPreference implements Serializable {
private static final long serialVersionUID = 4965009332046125297L; private static final long serialVersionUID = -5334572174003341079L;
/** Language */ /** Language */
public static final String P_LANGUAGE = "Language"; public static final String P_LANGUAGE = "Language";
private static final String DEFAULT_LANGUAGE = Language.getName private static final String DEFAULT_LANGUAGE = Language.getName
@ -68,6 +68,10 @@ public final class UserPreference implements Serializable {
public static final String P_AUTO_NEW = "AutoNew"; public static final String P_AUTO_NEW = "AutoNew";
public static final String DEFAULT_AUTO_NEW = "Y"; public static final String DEFAULT_AUTO_NEW = "Y";
/** Menu Collapsed **/
public static final String P_MENU_COLLAPSED = "MenuCollapsed";
public static final String DEFAULT_MENU_COLLAPSED = "N";
/** Ini Properties */ /** Ini Properties */
private static final String[] PROPERTIES = new String[] { private static final String[] PROPERTIES = new String[] {
P_LANGUAGE, P_LANGUAGE,
@ -78,7 +82,8 @@ public final class UserPreference implements Serializable {
P_AUTO_COMMIT, P_AUTO_COMMIT,
P_AUTO_NEW, P_AUTO_NEW,
P_WINDOW_TAB_PLACEMENT, P_WINDOW_TAB_PLACEMENT,
P_WINDOW_TAB_COLLAPSIBLE}; P_WINDOW_TAB_COLLAPSIBLE,
P_MENU_COLLAPSED};
/** Ini Property Values */ /** Ini Property Values */
private static final String[] VALUES = new String[] { private static final String[] VALUES = new String[] {
DEFAULT_LANGUAGE, DEFAULT_LANGUAGE,
@ -89,7 +94,8 @@ public final class UserPreference implements Serializable {
DEFAULT_AUTO_COMMIT, DEFAULT_AUTO_COMMIT,
DEFAULT_AUTO_NEW, DEFAULT_AUTO_NEW,
DEFAULT_WINDOW_TAB_PLACEMENT, DEFAULT_WINDOW_TAB_PLACEMENT,
DEFAULT_WINDOW_TAB_COLLAPSIBLE}; DEFAULT_WINDOW_TAB_COLLAPSIBLE,
DEFAULT_MENU_COLLAPSED};
/** Container for Properties */ /** Container for Properties */
private Properties props = new Properties(); private Properties props = new Properties();