|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.stratelia.silverpeas.util.ResourcesWrapper
public class ResourcesWrapper
Class declaration
Constructor Summary | |
---|---|
ResourcesWrapper(ResourceLocator specificMultilang,
ResourceLocator specificIcons,
ResourceLocator specificSettings,
String language)
|
|
ResourcesWrapper(ResourceLocator specificMultilang,
ResourceLocator specificIcons,
String language)
|
|
ResourcesWrapper(ResourceLocator specificMultilang,
String language)
|
Method Summary | |
---|---|
Date |
getDate(String date)
|
String |
getDBDate(Date date)
|
String |
getDBDate(String date)
|
String |
getIcon(String key)
|
ResourceBundle |
getIconsBundle()
Return the icons ResourceBundle for usage in JSTL. |
String |
getInputDate(Date date)
|
String |
getInputDate(String dateDB)
|
String |
getLanguage()
|
ResourceBundle |
getMultilangBundle()
Return the ResourceBundle for usage in JSTL. |
String |
getOutputDate(Date date)
|
String |
getOutputDate(String dateDB)
|
String |
getOutputDateAndHour(Date date)
|
String |
getOutputDateAndHour(Date date,
Date defaultDate)
Display first not null date |
String |
getSetting(String key)
We look at the key in the specific settings file. |
boolean |
getSetting(String key,
boolean defaultValue)
|
int |
getSetting(String key,
int defaultValue)
|
String |
getSetting(String key,
String defaultValue)
|
String |
getString(String key)
|
String |
getStringWithParam(String key,
String param)
|
String |
getStringWithParams(String key,
String[] params)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResourcesWrapper(ResourceLocator specificMultilang, ResourceLocator specificIcons, String language)
specificMultilang
- - Multilang of componentspecificIcons
- - Icons of componentlanguage
- - user's languagepublic ResourcesWrapper(ResourceLocator specificMultilang, ResourceLocator specificIcons, ResourceLocator specificSettings, String language)
specificMultilang
- - Multilang of componentspecificIcons
- - Icons of componentspecificSettings
- - Settings of componentlanguage
- - user's languagepublic ResourcesWrapper(ResourceLocator specificMultilang, String language)
specificMultilang
- - Multilang of componentlanguage
- - user's languageMethod Detail |
---|
public ResourceBundle getMultilangBundle()
public ResourceBundle getIconsBundle()
public String getString(String key)
key
- - key in the multilang file
public String getStringWithParam(String key, String param)
public String getStringWithParams(String key, String[] params)
public String getIcon(String key)
public String getLanguage()
public String getSetting(String key)
key
- - key in the settings file
public String getSetting(String key, String defaultValue)
public boolean getSetting(String key, boolean defaultValue)
public int getSetting(String key, int defaultValue)
public String getOutputDate(Date date)
public String getOutputDate(String dateDB) throws ParseException
ParseException
public String getOutputDateAndHour(Date date)
public String getOutputDateAndHour(Date date, Date defaultDate)
date
- date to displaydefaultDate
- extra date to display if date1 is empty (or null)
public String getInputDate(Date date)
public String getInputDate(String dateDB) throws ParseException
ParseException
public String getDBDate(String date) throws ParseException
ParseException
public String getDBDate(Date date)
public Date getDate(String date) throws ParseException
ParseException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |