org.jtheque.core.managers.view.impl.models
Class MessageModel

java.lang.Object
  extended by org.jtheque.core.managers.view.impl.models.MessageModel

public final class MessageModel
extends java.lang.Object

A model for the messages view.

Author:
Baptiste Wicht

Constructor Summary
MessageModel()
          Construct a new MessageModel.
 
Method Summary
 Message getCurrentMessage()
          Return the current message.
 Message getNextMessage()
          Return the next message to display.
 Message getPreviousMessage()
          Return the previous message.
 boolean isDefaultMessage()
          Indicate if the model is currently displaying the default message or a real message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageModel

public MessageModel()
Construct a new MessageModel.

Method Detail

getNextMessage

public Message getNextMessage()
Return the next message to display.

Returns:
The next message to display.

getCurrentMessage

public Message getCurrentMessage()
Return the current message.

Returns:
The current message.

getPreviousMessage

public Message getPreviousMessage()
Return the previous message.

Returns:
The previous message.

isDefaultMessage

public boolean isDefaultMessage()
Indicate if the model is currently displaying the default message or a real message.

Returns:
true if the current message is the default message else false.


Copyright © 2009 JTheque. All Rights Reserved.