Class GroupPanelController

java.lang.Object
games.stendhal.client.gui.group.GroupPanelController
All Implemented Interfaces:
GameObjects.GameObjectListener

public class GroupPanelController extends Object implements GameObjects.GameObjectListener
Controller for the group information data.
  • Method Details

    • getComponent

      public JComponent getComponent()
      Get the component showing the group information.
      Returns:
      group information component
    • update

      public void update(List<String> members, String leader, String lootMode)
      Update group information data.
      Parameters:
      members - members of the group the player belongs to, or null if the player does not belong to any group
      leader - name of the leader of the group
      lootMode - looting mode of the group
    • receiveInvite

      public void receiveInvite(String group)
      Called when the user receives a group invite.
      Parameters:
      group - name of the group
    • expireInvite

      public void expireInvite(String group)
      Called when a group invite expires.
      Parameters:
      group - name of the group
    • addEntity

      public void addEntity(IEntity entity)
      Description copied from interface: GameObjects.GameObjectListener
      Called when a top level entity is added to the user's zone.
      Specified by:
      addEntity in interface GameObjects.GameObjectListener
    • removeEntity

      public void removeEntity(IEntity entity)
      Description copied from interface: GameObjects.GameObjectListener
      Called when a top level entity is removed from the user's zone.
      Specified by:
      removeEntity in interface GameObjects.GameObjectListener
    • get

      public static GroupPanelController get()
      Get the GroupPaneController instance.
      Returns:
      instance