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.
-
address1
-
-
address2
-
-
city
-
-
country
-
-
state
-
-
zip
-
-
JDPValuePostalAddress()
-
-
JDPValuePostalAddress(JDPTextGrid)
-
-
clear()
- Clear the component
-
getAddressLine1()
- Get the value of Address Line 1
-
getAddressLine2()
- Get the value of Address Line 2
-
getCity()
- Get the value of City
-
getCountry()
- Get the value of Country
-
getEditable()
- Get the editable setting of the component
-
getEnabled()
- Get the enabled setting of the component
-
getStateRegion()
- Get the value of State/Region
-
getText()
- Get the value of the component
-
getZipPostalCode()
- Get the value of the Zip/Postal code
-
handleEvent(Event)
-
-
isValid()
- Check whether the component value is valid
-
setAddressLine1(String)
- Set the value of Address Line 1
-
setAddressLine2(String)
- Set the value of Address Line 2
-
setBackground(Color)
-
-
setCity(String)
- Set the value of City
-
setCountry(String)
- Set the value of Country
-
setEditable(boolean)
- Set the editable setting of the component
-
setEnabled(boolean)
- Set the enabled setting of the component
-
setFont(Font)
-
-
setForeground(Color)
-
-
setStateRegion(String)
- Set the value of State/Region
-
setText(String)
- Set the value of the component
-
setZipPostalCode(String)
- Get the value of the Zip/Postal code
address1
public TextField address1
address2
public TextField address2
city
public TextField city
state
public TextField state
zip
public TextField zip
country
public TextField country
JDPValuePostalAddress
public JDPValuePostalAddress()
JDPValuePostalAddress
public JDPValuePostalAddress(JDPTextGrid thisGrid)
setAddressLine1
public void setAddressLine1(String value)
- Set the value of Address Line 1
- Parameters:
- the - value of Address Line 1
getAddressLine1
public String getAddressLine1()
- Get the value of Address Line 1
- Returns:
- the value of Address Line 1
setAddressLine2
public void setAddressLine2(String value)
- Set the value of Address Line 2
- Parameters:
- the - value of Address Line 2
getAddressLine2
public String getAddressLine2()
- Get the value of Address Line 2
- Returns:
- the value of Address Line 2
setCity
public void setCity(String value)
- Set the value of City
- Parameters:
- the - value of City
getCity
public String getCity()
- Get the value of City
- Returns:
- the value of City
setStateRegion
public void setStateRegion(String value)
- Set the value of State/Region
- Parameters:
- the - value of State/Region
getStateRegion
public String getStateRegion()
- Get the value of State/Region
- Returns:
- the value of State/Region
setZipPostalCode
public void setZipPostalCode(String value)
- Get the value of the Zip/Postal code
- Parameters:
- the - value of the Zip/Postal code
getZipPostalCode
public String getZipPostalCode()
- Get the value of the Zip/Postal code
- Returns:
- the value of the Zip/Postal code
setCountry
public void setCountry(String value)
- Set the value of Country
- Parameters:
- the - value of Country
getCountry
public String getCountry()
- Get the value of Country
- Returns:
- the value of Country
setFont
public void setFont(Font thisFont)
- Overrides:
- setFont in class Component
setBackground
public void setBackground(Color thisColor)
- Overrides:
- setBackground in class JDPValueComponent
setForeground
public void setForeground(Color thisColor)
- Overrides:
- setForeground in class JDPValueComponent
clear
public void clear()
- Clear the component
- Overrides:
- clear in class JDPValueComponent
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
getText
public String getText()
- Get the value of the component
- Returns:
- newValue the new value for the component
- Overrides:
- getText in class JDPValueComponent
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
getEditable
public boolean getEditable()
- Get the editable setting of the component
- Returns:
- the editable setting for the component
- Overrides:
- getEditable in class JDPValueComponent
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
getEnabled
public boolean getEnabled()
- Get the enabled setting of the component
- Returns:
- the enabled setting for the component
- Overrides:
- getEnabled in class JDPValueComponent
isValid
public boolean isValid()
- Check whether the component value is valid
- Returns:
- whether the component value is valid
- Overrides:
- isValid in class JDPValueComponent
handleEvent
public boolean handleEvent(Event e)
- Overrides:
- handleEvent in class JDPValueComponent