com.vaadin.server
Interface SystemMessagesProvider
- All Superinterfaces:
- java.io.Serializable
- All Known Implementing Classes:
- DefaultSystemMessagesProvider
public interface SystemMessagesProvider
- extends java.io.Serializable
Gives out system messages based on Locale. Registered using
VaadinService.setSystemMessagesProvider(SystemMessagesProvider).
- Since:
- 7.0.0
- Author:
- Vaadin Ltd
getSystemMessages
SystemMessages getSystemMessages(java.util.Locale locale)
- Gets the system messages to use in the given context. Locale is the only
piece of information guaranteed to be available, but in most cases some
or all of
VaadinService.getCurrent(),
VaadinService.getCurrentRequest(),
VaadinServiceSession.getCurrent() and UI.getCurrent() can
also be used to find more information to help the decision.
- Parameters:
locale - the desired locale of the system messages
- Returns:
- a system messages object
Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.