|
Class ConfigDialog.HostPortPanel
|
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--java.awt.Panel
|
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:
- A checkbox with annotation to enable/disable the control.
- A label for the address.
| 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 |
{@inheritDoc} |
public void |
{@inheritDoc} |
public void |
{@inheritDoc} |
private Label addressLabel = null
private final TextField host
private final TextField port
private final Checkbox useMe
HostPortPanel(String checkLabel, String addrLabel, String defaultHost, String defaultPort, boolean defaultState)
public String getHost()
Returns the value of the host field
public String getPort()
Returns the value of the port field
public boolean getState()
{@inheritDoc}
public void itemStateChanged(ItemEvent e)
{@inheritDoc}
public void setEnabled(boolean enabling)
{@inheritDoc}
public void setState(boolean state)
{@inheritDoc}