org.pm4j.core.pm
Class PmMessage.SubMessageList

java.lang.Object
  extended by org.pm4j.core.pm.PmMessage.SubMessageList
Enclosing class:
PmMessage

public static class PmMessage.SubMessageList
extends java.lang.Object

A list that can be used to pass a set of submessages as message argument. All items of the PmMessage.SubMessageList are rendered at the render position specified in the resource string of the enclosing message.


Constructor Summary
PmMessage.SubMessageList()
          Conctructor for message lists without item termination string.
PmMessage.SubMessageList(java.lang.String termStringKey)
          Constructor for message lists with item termination string.
 
Method Summary
 void add(java.lang.String msgKey, java.lang.Object... msgArgs)
          Add as message subitem.
 java.lang.String getTitle()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PmMessage.SubMessageList

public PmMessage.SubMessageList()
Conctructor for message lists without item termination string.

Parameters:
parentMessage - Parent of this list. Used to get context information (language etc.)

PmMessage.SubMessageList

public PmMessage.SubMessageList(java.lang.String termStringKey)
Constructor for message lists with item termination string.

Parameters:
termStringKey - Key of a string termination character sequence to be placed between the items.
parentMessage - Parent of this list. Used to get context information (language etc.)
Method Detail

add

public void add(java.lang.String msgKey,
                java.lang.Object... msgArgs)
Add as message subitem.

Parameters:
msgKey - Resource key of the message item.
msgArgs - Resource string arguments for the message item.

getTitle

public java.lang.String getTitle()
Returns:
The language specific string for the complete list.