Package com.jalios.jcms.shortcut
Class ShortcutInfo
- java.lang.Object
-
- com.jalios.jcms.shortcut.ShortcutInfo
-
public class ShortcutInfo extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
REVISION
-
Constructor Summary
Constructors Constructor Description ShortcutInfo()
ShortcutInfo(java.lang.String lang)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BadgeLevel
getBadgeLevel()
java.lang.String
getBadgeText()
java.lang.String
getBadgeText(java.lang.String lang)
java.lang.String
getBadgeTitle(java.lang.String lang)
java.lang.String
getBadgetTitle()
java.lang.String
getIcon()
java.lang.String
getTitle()
java.lang.String
getTitle(java.lang.String lang)
java.lang.String
getUrl()
boolean
hasBadge()
void
setBadgeLevel(BadgeLevel badgeLevel)
void
setBadgeText(java.lang.String badgeText, java.lang.Object... badgeTextParams)
void
setBadgeTitle(java.lang.String badgeTitle, java.lang.Object... badgeTitleParams)
void
setIcon(java.lang.String icon)
void
setTitle(java.lang.String title, java.lang.Object... titleParams)
void
setUrl(java.lang.String url)
-
-
-
Field Detail
-
REVISION
public static final java.lang.String REVISION
- See Also:
- Constant Field Values
-
-
Method Detail
-
hasBadge
public boolean hasBadge()
- Returns:
- true if current ShortcutInfo has a badge
-
getBadgeText
public java.lang.String getBadgeText()
-
getBadgeText
public java.lang.String getBadgeText(java.lang.String lang)
- Parameters:
lang
- the UserLang- Returns:
- the badge text based on given user lang
-
setBadgeText
public void setBadgeText(java.lang.String badgeText, java.lang.Object... badgeTextParams)
-
getBadgeLevel
public BadgeLevel getBadgeLevel()
-
setBadgeLevel
public void setBadgeLevel(BadgeLevel badgeLevel)
-
getBadgetTitle
public java.lang.String getBadgetTitle()
-
getBadgeTitle
public java.lang.String getBadgeTitle(java.lang.String lang)
- Parameters:
lang
- the given user lang- Returns:
- the badge title based on given userLang
-
setBadgeTitle
public void setBadgeTitle(java.lang.String badgeTitle, java.lang.Object... badgeTitleParams)
-
getUrl
public java.lang.String getUrl()
-
setUrl
public void setUrl(java.lang.String url)
-
getTitle
public java.lang.String getTitle()
-
getTitle
public java.lang.String getTitle(java.lang.String lang)
- Parameters:
lang
- the given user lang- Returns:
- the title of the shortcut based on given user lang
-
setTitle
public void setTitle(java.lang.String title, java.lang.Object... titleParams)
-
getIcon
public java.lang.String getIcon()
-
setIcon
public void setIcon(java.lang.String icon)
-
-