Class ItemNavigatorLabelWrapperFactory
- java.lang.Object
-
- ch.sahits.game.openpatrician.javafx.service.ItemNavigatorLabelWrapperFactory
-
public class ItemNavigatorLabelWrapperFactory extends java.lang.ObjectFactory class to create a label wrapper list from a normal list.- Author:
- Andi Hotz, (c) Sahits GmbH, 2016 Created on Nov 20, 2016
-
-
Constructor Summary
Constructors Constructor Description ItemNavigatorLabelWrapperFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<IItemNavigatorLabelWrapper<ch.sahits.game.openpatrician.model.IPlayer>>createListForPlayer(java.util.List<ch.sahits.game.openpatrician.model.IPlayer> persons)Create a list of label wrapper for citizens, which includeICitizens as well asIPlayers.java.util.List<IItemNavigatorLabelWrapper<ch.sahits.game.openpatrician.model.ship.IShip>>createListForVessels(java.util.List<ch.sahits.game.openpatrician.model.ship.IShip> ships)Create a list of label wrapper for ships.java.util.List<IItemNavigatorLabelWrapper<ch.sahits.game.openpatrician.model.IPlayer>>createNonLabeledListForPlayer(java.util.List<ch.sahits.game.openpatrician.model.IPlayer> persons)Create a list of label wrapper for players, which includeICitizens as well asIPlayers.
-
-
-
Method Detail
-
createListForVessels
public java.util.List<IItemNavigatorLabelWrapper<ch.sahits.game.openpatrician.model.ship.IShip>> createListForVessels(java.util.List<ch.sahits.game.openpatrician.model.ship.IShip> ships)
Create a list of label wrapper for ships.- Parameters:
ships- list of ships- Returns:
- List of
IItemNavigatorLabelWrappers of typeIShip.
-
createListForPlayer
public java.util.List<IItemNavigatorLabelWrapper<ch.sahits.game.openpatrician.model.IPlayer>> createListForPlayer(java.util.List<ch.sahits.game.openpatrician.model.IPlayer> persons)
Create a list of label wrapper for citizens, which includeICitizens as well asIPlayers.- Parameters:
persons- list of players- Returns:
- List of
IItemNavigatorLabelWrappers of typeIPlayer.
-
createNonLabeledListForPlayer
public java.util.List<IItemNavigatorLabelWrapper<ch.sahits.game.openpatrician.model.IPlayer>> createNonLabeledListForPlayer(java.util.List<ch.sahits.game.openpatrician.model.IPlayer> persons)
Create a list of label wrapper for players, which includeICitizens as well asIPlayers. The name of the player is not displayed.- Parameters:
persons- list of players- Returns:
- List of
IItemNavigatorLabelWrappers of typeIShip.
-
-