Class ItemNavigatorLabelWrapperFactory


  • public class ItemNavigatorLabelWrapperFactory
    extends java.lang.Object
    Factory class to create a label wrapper list from a normal list.
    Author:
    Andi Hotz, (c) Sahits GmbH, 2016 Created on Nov 20, 2016
    • 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 include ICitizens as well as IPlayers.
      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 include ICitizens as well as IPlayers.
      • Methods inherited from class java.lang.Object

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

      • ItemNavigatorLabelWrapperFactory

        public ItemNavigatorLabelWrapperFactory()
    • 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 type IShip.
      • 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 include ICitizens as well as IPlayers.
        Parameters:
        persons - list of players
        Returns:
        List of IItemNavigatorLabelWrappers of type IPlayer.
      • 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 include ICitizens as well as IPlayers. The name of the player is not displayed.
        Parameters:
        persons - list of players
        Returns:
        List of IItemNavigatorLabelWrappers of type IShip.