Class NoticeBoardContentProvider
- java.lang.Object
-
- ch.sahits.game.openpatrician.display.notice.NoticeBoardContentProvider
-
public class NoticeBoardContentProvider extends java.lang.ObjectService to provide content for the noticeboard in the form of nodes.- Author:
- Andi Hotz, (c) Sahits GmbH, 2018 Created on Jul 17, 2018
-
-
Constructor Summary
Constructors Constructor Description NoticeBoardContentProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javafx.scene.layout.RegioncreateContent(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.RegioncreateHeader(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.
-
-
-
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 contentproxy- 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 contentproxy- of the current state- Returns:
- Observable
-
-