Class JDPValuePostalAddress

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----JDPValueComponent
                                   |
                                   +----JDPValuePostalAddress

public class JDPValuePostalAddress
extends JDPValueComponent
Class JDPValuePostalAddress represents a set of textfields that display an address.


Variable Index

 o address1
 o address2
 o city
 o country
 o state
 o zip

Constructor Index

 o JDPValuePostalAddress()
 o JDPValuePostalAddress(JDPTextGrid)

Method Index

 o clear()
Clear the component
 o getAddressLine1()
Get the value of Address Line 1
 o getAddressLine2()
Get the value of Address Line 2
 o getCity()
Get the value of City
 o getCountry()
Get the value of Country
 o getEditable()
Get the editable setting of the component
 o getEnabled()
Get the enabled setting of the component
 o getStateRegion()
Get the value of State/Region
 o getText()
Get the value of the component
 o getZipPostalCode()
Get the value of the Zip/Postal code
 o handleEvent(Event)
 o isValid()
Check whether the component value is valid
 o setAddressLine1(String)
Set the value of Address Line 1
 o setAddressLine2(String)
Set the value of Address Line 2
 o setBackground(Color)
 o setCity(String)
Set the value of City
 o setCountry(String)
Set the value of Country
 o setEditable(boolean)
Set the editable setting of the component
 o setEnabled(boolean)
Set the enabled setting of the component
 o setFont(Font)
 o setForeground(Color)
 o setStateRegion(String)
Set the value of State/Region
 o setText(String)
Set the value of the component
 o setZipPostalCode(String)
Get the value of the Zip/Postal code

Variables

 o address1
 public TextField address1
 o address2
 public TextField address2
 o city
 public TextField city
 o state
 public TextField state
 o zip
 public TextField zip
 o country
 public TextField country

Constructors

 o JDPValuePostalAddress
 public JDPValuePostalAddress()
 o JDPValuePostalAddress
 public JDPValuePostalAddress(JDPTextGrid thisGrid)

Methods

 o setAddressLine1
 public void setAddressLine1(String value)
Set the value of Address Line 1

Parameters:
the - value of Address Line 1
 o getAddressLine1
 public String getAddressLine1()
Get the value of Address Line 1

Returns:
the value of Address Line 1
 o setAddressLine2
 public void setAddressLine2(String value)
Set the value of Address Line 2

Parameters:
the - value of Address Line 2
 o getAddressLine2
 public String getAddressLine2()
Get the value of Address Line 2

Returns:
the value of Address Line 2
 o setCity
 public void setCity(String value)
Set the value of City

Parameters:
the - value of City
 o getCity
 public String getCity()
Get the value of City

Returns:
the value of City
 o setStateRegion
 public void setStateRegion(String value)
Set the value of State/Region

Parameters:
the - value of State/Region
 o getStateRegion
 public String getStateRegion()
Get the value of State/Region

Returns:
the value of State/Region
 o setZipPostalCode
 public void setZipPostalCode(String value)
Get the value of the Zip/Postal code

Parameters:
the - value of the Zip/Postal code
 o getZipPostalCode
 public String getZipPostalCode()
Get the value of the Zip/Postal code

Returns:
the value of the Zip/Postal code
 o setCountry
 public void setCountry(String value)
Set the value of Country

Parameters:
the - value of Country
 o getCountry
 public String getCountry()
Get the value of Country

Returns:
the value of Country
 o setFont
 public void setFont(Font thisFont)
Overrides:
setFont in class Component
 o setBackground
 public void setBackground(Color thisColor)
Overrides:
setBackground in class JDPValueComponent
 o setForeground
 public void setForeground(Color thisColor)
Overrides:
setForeground in class JDPValueComponent
 o clear
 public void clear()
Clear the component

Overrides:
clear in class JDPValueComponent
 o setText
 public void setText(String newValue)
Set the value of the component

Parameters:
newValue - the new value for the component
Overrides:
setText in class JDPValueComponent
 o getText
 public String getText()
Get the value of the component

Returns:
newValue the new value for the component
Overrides:
getText in class JDPValueComponent
 o setEditable
 public void setEditable(boolean editable)
Set the editable setting of the component

Parameters:
editable - the editable setting for the component
Overrides:
setEditable in class JDPValueComponent
 o getEditable
 public boolean getEditable()
Get the editable setting of the component

Returns:
the editable setting for the component
Overrides:
getEditable in class JDPValueComponent
 o setEnabled
 public void setEnabled(boolean enabled)
Set the enabled setting of the component

Parameters:
enabled - the enabled setting for the component
Overrides:
setEnabled in class JDPValueComponent
 o getEnabled
 public boolean getEnabled()
Get the enabled setting of the component

Returns:
the enabled setting for the component
Overrides:
getEnabled in class JDPValueComponent
 o isValid
 public boolean isValid()
Check whether the component value is valid

Returns:
whether the component value is valid
Overrides:
isValid in class JDPValueComponent
 o handleEvent
 public boolean handleEvent(Event e)
Overrides:
handleEvent in class JDPValueComponent