public class DefaultMutableResourceBundleFamily extends Object implements MutableResourceBundleFamily
Constructor and Description |
---|
DefaultMutableResourceBundleFamily(String basename) |
Modifier and Type | Method and Description |
---|---|
String |
getBasename()
Returns the resource bundle base name.
|
ResourceBundle |
getDefaultBundle()
Returns the default resource bundle for live mode.
|
ResourceBundle |
getDefaultBundleForPreview()
Returns the default resource bundle for preview mode.
|
ResourceBundle |
getLocalizedBundle(Locale locale)
Returns a localized resource bundle for the specific locale for live mode.
|
ResourceBundle |
getLocalizedBundleForPreview(Locale locale)
Returns a localized resource bundle for the specific locale for preview mode.
|
void |
removeLocalizedBundle(Locale locale)
Removes the localized resource bundle specified by the locale for live mode.
|
void |
removeLocalizedBundleForPreview(Locale locale)
Removes the localized resource bundle specified by the locale for preview mode.
|
void |
setDefaultBundle(ResourceBundle defaultBundle)
Sets the default resource bundle for live mode.
|
void |
setDefaultBundleForPreview(ResourceBundle defaultBundleForPreview)
Sets the default resource bundle for preview mode.
|
void |
setLocalizedBundle(Locale locale,
ResourceBundle bundle)
Sets the localized resource bundle specified by the locale for live mode.
|
void |
setLocalizedBundleForPreview(Locale locale,
ResourceBundle bundle)
Sets the localized resource bundle specified by the locale for preview mode.
|
void |
setParentBundles() |
public DefaultMutableResourceBundleFamily(String basename)
public String getBasename()
ResourceBundleFamily
getBasename
in interface ResourceBundleFamily
public ResourceBundle getDefaultBundle()
ResourceBundleFamily
getDefaultBundle
in interface ResourceBundleFamily
public ResourceBundle getDefaultBundleForPreview()
ResourceBundleFamily
getDefaultBundleForPreview
in interface ResourceBundleFamily
public void setDefaultBundle(ResourceBundle defaultBundle)
MutableResourceBundleFamily
setDefaultBundle
in interface MutableResourceBundleFamily
public void setDefaultBundleForPreview(ResourceBundle defaultBundleForPreview)
MutableResourceBundleFamily
setDefaultBundleForPreview
in interface MutableResourceBundleFamily
public ResourceBundle getLocalizedBundle(Locale locale)
ResourceBundleFamily
getLocalizedBundle
in interface ResourceBundleFamily
public ResourceBundle getLocalizedBundleForPreview(Locale locale)
ResourceBundleFamily
getLocalizedBundleForPreview
in interface ResourceBundleFamily
public void setLocalizedBundle(Locale locale, ResourceBundle bundle)
MutableResourceBundleFamily
setLocalizedBundle
in interface MutableResourceBundleFamily
public void setLocalizedBundleForPreview(Locale locale, ResourceBundle bundle)
MutableResourceBundleFamily
setLocalizedBundleForPreview
in interface MutableResourceBundleFamily
public void removeLocalizedBundle(Locale locale)
MutableResourceBundleFamily
removeLocalizedBundle
in interface MutableResourceBundleFamily
public void removeLocalizedBundleForPreview(Locale locale)
MutableResourceBundleFamily
removeLocalizedBundleForPreview
in interface MutableResourceBundleFamily
public void setParentBundles()
Copyright © 2008–2016 Hippo B.V. (http://www.onehippo.com). All rights reserved.