Class NoticeBoardContentProvider


  • public class NoticeBoardContentProvider
    extends java.lang.Object
    Service to provide content for the noticeboard in the form of nodes.
    Author:
    Andi Hotz, (c) Sahits GmbH, 2018 Created on Jul 17, 2018
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javafx.scene.layout.Region createContent​(ch.sahits.game.openpatrician.javafx.model.ENoticeBoardType type, ViewChangeCityPlayerProxyJFX proxy)
      Create the content to be placed in the notice boards scroll pane.
      javafx.scene.layout.Region createHeader​(ch.sahits.game.openpatrician.javafx.model.ENoticeBoardType type, ViewChangeCityPlayerProxyJFX proxy)
      Create the header node for to be placed in the notice boards head.
      javafx.beans.value.ObservableValue<?> createObservable​(ch.sahits.game.openpatrician.javafx.model.ENoticeBoardType type, ViewChangeCityPlayerProxyJFX proxy)
      Create an observable to which an change listener can be subscribed that indicates, that the header and content need updating.
      • Methods inherited from class java.lang.Object

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

      • NoticeBoardContentProvider

        public NoticeBoardContentProvider()
    • Method Detail

      • createHeader

        public javafx.scene.layout.Region createHeader​(ch.sahits.game.openpatrician.javafx.model.ENoticeBoardType type,
                                                       ViewChangeCityPlayerProxyJFX proxy)
        Create the header node for to be placed in the notice boards head.
        Parameters:
        type - for which to create the header.
        proxy - of the current state.
        Returns:
        Node representing the header.
      • createContent

        public javafx.scene.layout.Region createContent​(ch.sahits.game.openpatrician.javafx.model.ENoticeBoardType type,
                                                        ViewChangeCityPlayerProxyJFX proxy)
        Create the content to be placed in the notice boards scroll pane.
        Parameters:
        type - for which to create the content
        proxy - of the current state
        Returns:
        Node representing the content.
      • createObservable

        public javafx.beans.value.ObservableValue<?> createObservable​(ch.sahits.game.openpatrician.javafx.model.ENoticeBoardType type,
                                                                      ViewChangeCityPlayerProxyJFX proxy)
        Create an observable to which an change listener can be subscribed that indicates, that the header and content need updating.
        Parameters:
        type - for which to create the content
        proxy - of the current state
        Returns:
        Observable