Class DisplayMessages


  • @Component
    @Lazy
    @DependentInitialisation(ch.sahits.game.openpatrician.model.initialisation.StartNewGameBean.class)
    public class DisplayMessages
    extends java.lang.Object
    This 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
    • Constructor Summary

      Constructors 
      Constructor Description
      DisplayMessages()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void ensureMessagePoolSize()
      Ensure that not more messages are stored than configured.
      void handleMessage​(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()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DisplayMessages

        public DisplayMessages()
    • 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.