Class ClientPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class ClientPanel extends JPanel
Component which displays details about a Client.
Since:
16 Jul 2008
Author:
Mark Taylor
See Also:
  • Constructor Details

    • ClientPanel

      public ClientPanel(boolean hubLike)
      Constructor.
      Parameters:
      hubLike - true if this will be displaying clients implementing the HubClient interface
  • Method Details

    • setClient

      public void setClient(Client client)
      Updates this component to display the current state of a given client.
      Parameters:
      client - client, or null to clear display
    • getClient

      public Client getClient()
      Returns the most recently displayed client.
      Returns:
      client
    • setMetadata

      public void setMetadata(Metadata meta)
      Updates this component's metadata panel to display the current state of a given metadata object.
      Parameters:
      meta - metadata map, or null to clear metadata display
    • setSubscriptions

      public void setSubscriptions(Subscriptions subs)
      Updates this component's subscriptions panel to display the current state of a given subscriptions object.
      Parameters:
      subs - subscriptions map, or null to clear subscriptions display
    • openURL

      public void openURL(URL url) throws IOException
      Attempts to open a URL in some kind of external browser.
      Parameters:
      url - URL to view
      Throws:
      IOException