public class TopbarManager extends java.lang.Object implements JPropertiesListener
Modifier and Type | Class and Description |
---|---|
class |
TopbarManager.TopbarApplicationItemComparator
Compares TopbarApplicationItem based following order :
- Firstly, items from user preferences
- Secondly, items from ShortCut ordered by label
- Thirdly, items from properties ordered randomly since they have no label
|
class |
TopbarManager.TopbarItemIndexComparator
Compares TopbarItem based on their index
|
class |
TopbarManager.TopbarItemNameComparator
Compares TopbarItem based on their label and the userlang
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ORDER_PROP_SUFFIX |
static java.lang.String |
REVISION |
static java.lang.String |
TOPBAR_APPLICATION_MEMBERPREFS_KEY |
static java.lang.String |
TOPBAR_APPLICATION_PROP_PREFIX |
static java.lang.String |
TOPBAR_HANDLER_REQUEST_ATTR |
static java.lang.String |
TOPBAR_ITEM_PREFIX_PROP |
Modifier and Type | Method and Description |
---|---|
java.util.Set<TopbarApplicationItem> |
getFavoriteApplicationSet(Member mbr,
java.lang.String lang) |
java.util.Set<TopbarApplicationItem> |
getGlobalApplicationSet(Member mbr,
java.lang.String lang) |
static TopbarManager |
getInstance() |
java.util.Set<TopbarItem> |
getSortedTopbarItemSet(java.lang.String lang) |
void |
propertiesChange(JProperties properties)
Invoked after properties have been modified in JCMS and save on disk.
|
public static final java.lang.String REVISION
public static final java.lang.String TOPBAR_HANDLER_REQUEST_ATTR
public static final java.lang.String TOPBAR_APPLICATION_MEMBERPREFS_KEY
public static final java.lang.String TOPBAR_APPLICATION_PROP_PREFIX
public static final java.lang.String TOPBAR_ITEM_PREFIX_PROP
public static final java.lang.String ORDER_PROP_SUFFIX
public static TopbarManager getInstance()
public void propertiesChange(JProperties properties)
JPropertiesListener
You cannot alter the value received in parameters.
propertiesChange
in interface JPropertiesListener
properties
- the properties which have been modified (may not contain all JCMS properties)public java.util.Set<TopbarItem> getSortedTopbarItemSet(java.lang.String lang)
lang
- the languagepublic java.util.Set<TopbarApplicationItem> getFavoriteApplicationSet(Member mbr, java.lang.String lang)
mbr
- the Member
lang
- the languagepublic java.util.Set<TopbarApplicationItem> getGlobalApplicationSet(Member mbr, java.lang.String lang)
mbr
- the Member
lang
- the languageCopyright © 2001-2017 Jalios SA. All Rights Reserved.