Class DisplayMessages
- java.lang.Object
-
- ch.sahits.game.openpatrician.javafx.model.DisplayMessages
-
@Component @Lazy @DependentInitialisation(ch.sahits.game.openpatrician.model.initialisation.StartNewGameBean.class) public class DisplayMessages extends java.lang.ObjectThis container holds at max 50 DisplayMessages. The new ones are inserted at index 0.- Author:
- Andi Hotz, (c) Sahits GmbH, 2015 Created on Mar 04, 2015
-
-
Field Summary
Fields Modifier and Type Field Description static intMESSAGE_STORE_SIZE
-
Constructor Summary
Constructors Constructor Description DisplayMessages()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidensureMessagePoolSize()Ensure that not more messages are stored than configured.voidhandleMessage(ch.sahits.game.openpatrician.model.DisplayMessage message)javafx.collections.ObservableList<ch.sahits.game.openpatrician.model.DisplayMessage>officialMessagesProperty()javafx.collections.ObservableList<ch.sahits.game.openpatrician.model.DisplayMessage>personalMessagesProperty()javafx.collections.ObservableList<ch.sahits.game.openpatrician.model.DisplayMessage>tradeMessagesProperty()
-
-
-
Field Detail
-
MESSAGE_STORE_SIZE
public static final int MESSAGE_STORE_SIZE
- See Also:
- Constant Field Values
-
-
Method Detail
-
handleMessage
public void handleMessage(ch.sahits.game.openpatrician.model.DisplayMessage message)
-
tradeMessagesProperty
public javafx.collections.ObservableList<ch.sahits.game.openpatrician.model.DisplayMessage> tradeMessagesProperty()
-
personalMessagesProperty
public javafx.collections.ObservableList<ch.sahits.game.openpatrician.model.DisplayMessage> personalMessagesProperty()
-
officialMessagesProperty
public javafx.collections.ObservableList<ch.sahits.game.openpatrician.model.DisplayMessage> officialMessagesProperty()
-
ensureMessagePoolSize
public void ensureMessagePoolSize()
Ensure that not more messages are stored than configured.
-
-