org.equanda.t5gui.services
Class EquandaMessagesImpl

java.lang.Object
  extended by org.equanda.t5gui.services.EquandaMessagesImpl
All Implemented Interfaces:
org.apache.tapestry5.ioc.Messages, EquandaMessages

public class EquandaMessagesImpl
extends Object
implements EquandaMessages

Equanda Message implementation

Author:
Vladimir Tkachenko

Constructor Summary
EquandaMessagesImpl(EquandaMessagesTranslator equandaMessageTranslator)
          Creates Equanda Messages
 
Method Summary
 boolean contains(String key)
          Returns true if the translation bundle contains the named key
 String format(String key, Object... args)
          Returns translated message for the key
 String get(String key)
          Returns translated message for the key
 org.apache.tapestry5.ioc.MessageFormatter getFormatter(String key)
           
 void setLanguage(String language)
          Sets language for translation
 void setMessagesGroups(String[] messagesGroups)
          Sets message groups
 void setPage(String page)
          Sets page name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EquandaMessagesImpl

public EquandaMessagesImpl(EquandaMessagesTranslator equandaMessageTranslator)
Creates Equanda Messages

Parameters:
equandaMessageTranslator - equanda message translator
Method Detail

contains

public boolean contains(String key)
Returns true if the translation bundle contains the named key

Specified by:
contains in interface org.apache.tapestry5.ioc.Messages

format

public String format(String key,
                     Object... args)
Returns translated message for the key

Specified by:
format in interface org.apache.tapestry5.ioc.Messages

get

public String get(String key)
Returns translated message for the key

Specified by:
get in interface org.apache.tapestry5.ioc.Messages

getFormatter

public org.apache.tapestry5.ioc.MessageFormatter getFormatter(String key)
Specified by:
getFormatter in interface org.apache.tapestry5.ioc.Messages

setLanguage

public void setLanguage(String language)
Description copied from interface: EquandaMessages
Sets language for translation

Specified by:
setLanguage in interface EquandaMessages
Parameters:
language - language

setPage

public void setPage(String page)
Description copied from interface: EquandaMessages
Sets page name

Specified by:
setPage in interface EquandaMessages
Parameters:
page - page name

setMessagesGroups

public void setMessagesGroups(String[] messagesGroups)
Description copied from interface: EquandaMessages
Sets message groups

Specified by:
setMessagesGroups in interface EquandaMessages
Parameters:
messagesGroups - message groups


Copyright © 2007-2009. All Rights Reserved.