Interface UnitContainerContextMenuProvider

  • All Known Implementing Classes:

    public interface UnitContainerContextMenuProvider
    PlugIns should implement this interface if the provide a JMenu as contextMenu after right-click on a Unit.
    • Method Detail

      • createContextMenu

        javax.swing.JMenuItem createContextMenu​(EventDispatcher dispatcher,
                                                GameData data,
                                                UnitContainer unitContainer,
                                                java.util.Collection<?> selectedObjects)
        Creates a JMenuItem. Will be called on right-clicking unit containers.
        dispatcher - EventDispatcher
        data - the actual GameData or World
        unitContainer - last selected unit - is not required to be in selected objects
        selectedObjects - null or Collection of selected objects which may be of different types