JXTA

net.jxta.instantp2p.desktop.application
Class PeerInfoDisplay

java.lang.Object
  |
  +--net.jxta.instantp2p.desktop.TaskObject
        |
        +--net.jxta.instantp2p.desktop.application.PeerInfoDisplay

public class PeerInfoDisplay
extends TaskObject

A class that displays the information in the PeerGroupAdvertisment in a graphical form


Fields inherited from class net.jxta.instantp2p.desktop.TaskObject
toolbar
 
Constructor Summary
PeerInfoDisplay(ApplicationToolbar bar)
          Creates a new PeerDisplay panel.
 
Method Summary
 java.awt.Panel showData(net.jxta.peergroup.PeerGroup group, net.jxta.protocol.PeerGroupAdvertisement peer)
          The TaskObject should rerender itself showing information concerning the current peer and peer group.
 
Methods inherited from class net.jxta.instantp2p.desktop.TaskObject
actionPerformed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PeerInfoDisplay

public PeerInfoDisplay(ApplicationToolbar bar)
Creates a new PeerDisplay panel. All GUI elements are initialized and added to this panel. However, an actual advertisment and thus actual values are set in showPeer, which should be called before this panel is actually displayed
Parameters:
bar - the ApplicationToolbar to which to add the button
Method Detail

showData

public java.awt.Panel showData(net.jxta.peergroup.PeerGroup group,
                               net.jxta.protocol.PeerGroupAdvertisement peer)
The TaskObject should rerender itself showing information concerning the current peer and peer group. The information should be displayed in the returned Panel, which will be displayed in an OptionDialog
Overrides:
showData in class TaskObject
Parameters:
group - current peer group
peer - current peer
Returns:
a panel that displays the requested information

JXTA