public class NoticeBoardShipSelectionMenuProvider extends Object implements INoticeBoardMenuProvider
| Modifier and Type | Field and Description |
|---|---|
private org.springframework.context.ApplicationContext |
context |
private ch.sahits.game.openpatrician.util.l10n.Locale |
locale |
private org.springframework.context.MessageSource |
messageSource |
private ch.sahits.game.openpatrician.clientserverinterface.service.ShipService |
shipService |
protected DecoratedTextFactory |
textFactory |
| Constructor and Description |
|---|
NoticeBoardShipSelectionMenuProvider() |
| Modifier and Type | Method and Description |
|---|---|
LinkedHashSet<NoticeBoardMenuEntry> |
createMenuEntries(ch.sahits.game.openpatrician.client.ICityPlayerProxyJFX proxy,
ENoticeBoardType type)
Create a list of menu entries approypriate forthe type based on the city player proxy object.
|
private NoticeBoardMenuEntry |
createMenuEntry(ch.sahits.game.openpatrician.client.ICityPlayerProxyJFX proxy,
ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel,
String loadedText,
boolean disabled,
int wrappingWidth) |
private NoticeBoardMenuEntry |
createNoticeBoardEntry(ch.sahits.game.openpatrician.client.ICityPlayerProxyJFX proxy,
ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel,
boolean disabled,
String key,
boolean inset,
int wrappingWidth) |
@Autowired private ch.sahits.game.openpatrician.util.l10n.Locale locale
@Autowired private org.springframework.context.MessageSource messageSource
@Autowired private ch.sahits.game.openpatrician.clientserverinterface.service.ShipService shipService
@Autowired protected DecoratedTextFactory textFactory
@Autowired private org.springframework.context.ApplicationContext context
public NoticeBoardShipSelectionMenuProvider()
public LinkedHashSet<NoticeBoardMenuEntry> createMenuEntries(ch.sahits.game.openpatrician.client.ICityPlayerProxyJFX proxy, ENoticeBoardType type)
INoticeBoardMenuProvidercreateMenuEntries in interface INoticeBoardMenuProvidertype - of the dialog in cas further distintion is needed.private NoticeBoardMenuEntry createNoticeBoardEntry(ch.sahits.game.openpatrician.client.ICityPlayerProxyJFX proxy, ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel, boolean disabled, String key, boolean inset, int wrappingWidth)
private NoticeBoardMenuEntry createMenuEntry(ch.sahits.game.openpatrician.client.ICityPlayerProxyJFX proxy, ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel, String loadedText, boolean disabled, int wrappingWidth)
Copyright © 2011-2017 Sahits GmbH. All Rights Reserved.