public class NoticeBoardMessageMenuProvider extends Object implements INoticeBoardMenuProvider
| Modifier and Type | Field and Description |
|---|---|
private org.springframework.context.ApplicationContext |
context |
private DisplayMessages |
displayMessages |
private TextEllipsisCalculator |
ellipsisCalculator |
private ch.sahits.game.openpatrician.utilities.l10n.Locale |
locale |
private org.springframework.context.MessageSource |
messageSource |
private TextSizingUtility |
sizeing |
private DecoratedTextFactory |
textFactory |
private ch.sahits.game.openpatrician.model.service.ModelTranslations |
translator |
| Constructor and Description |
|---|
NoticeBoardMessageMenuProvider() |
| Modifier and Type | Method and Description |
|---|---|
LinkedHashSet<NoticeBoardMenuEntry> |
createMenuEntries(ch.sahits.game.openpatrician.clientserverinterface.client.ICityPlayerProxyJFX proxy,
ENoticeBoardType type)
Create a list of menu entries approypriate forthe type based on the city player proxy object.
|
private javafx.event.EventHandler<javafx.scene.input.MouseEvent> |
getDisplaMessageMouseEnterFocusEventHandler(DecoratedText text,
String message) |
private javafx.event.EventHandler<javafx.scene.input.MouseEvent> |
getDisplayMessageMouseExitFocusEventHandler(DecoratedText text) |
@Autowired private DisplayMessages displayMessages
@Autowired private ch.sahits.game.openpatrician.model.service.ModelTranslations translator
@Autowired private ch.sahits.game.openpatrician.utilities.l10n.Locale locale
@Autowired private org.springframework.context.MessageSource messageSource
@Autowired private TextEllipsisCalculator ellipsisCalculator
@Autowired private DecoratedTextFactory textFactory
@Autowired private TextSizingUtility sizeing
@Autowired private org.springframework.context.ApplicationContext context
public LinkedHashSet<NoticeBoardMenuEntry> createMenuEntries(ch.sahits.game.openpatrician.clientserverinterface.client.ICityPlayerProxyJFX proxy, ENoticeBoardType type)
INoticeBoardMenuProvidercreateMenuEntries in interface INoticeBoardMenuProvidertype - of the dialog in cas further distintion is needed.private javafx.event.EventHandler<javafx.scene.input.MouseEvent> getDisplaMessageMouseEnterFocusEventHandler(DecoratedText text, String message)
private javafx.event.EventHandler<javafx.scene.input.MouseEvent> getDisplayMessageMouseExitFocusEventHandler(DecoratedText text)
Copyright © 2011-2018 Sahits GmbH. All Rights Reserved.