Class ConfigDialog.HostPortPanel
package: src.net.jxta.impl.peergroup
java.lang.Object
  |
  +--java.awt.Component
       |
       +--java.awt.Container
            |
            +--java.awt.Panel
                 |
                 +--net.jxta.impl.peergroup.ConfigDialog.HostPortPanel
static class ConfigDialog.HostPortPanel
Extends:
java.awt.Panel
Implements:
java.awt.event.ItemListener
Allows for entry of a host address and port number. Besides the host address and port number text fields there are two optional features:

Field Summary
private Label
private final TextField
private final TextField
private final Checkbox
Constructor Summary
 
HostPortPanel(String checkLabel, String addrLabel, String defaultHost, String defaultPort, boolean defaultState)
Method Summary
public String
   Returns the value of the host field
 
public String
   Returns the value of the port field
 
public boolean
   {@inheritDoc}
 
public void
itemStateChanged(ItemEvent e)
   {@inheritDoc}
 
public void
setEnabled(boolean enabling)
   {@inheritDoc}
 
public void
setState(boolean state)
   {@inheritDoc}
 
Field Detail
addressLabel
private Label addressLabel = null

host
private final TextField host

port
private final TextField port

useMe
private final Checkbox useMe
Constructor Detail
HostPortPanel
HostPortPanel(String checkLabel, String addrLabel, String defaultHost, String defaultPort, boolean defaultState)
Method Detail
getHost
public String getHost()
Returns the value of the host field

getPort
public String getPort()
Returns the value of the port field

getState
public boolean getState()
{@inheritDoc}

itemStateChanged
public void itemStateChanged(ItemEvent e)
{@inheritDoc}

setEnabled
public void setEnabled(boolean enabling)
{@inheritDoc}

setState
public void setState(boolean state)
{@inheritDoc}