com.redhat.rhn.frontend.taglibs
Class AddressTag

java.lang.Object
  extended by TagSupport
      extended by com.redhat.rhn.frontend.taglibs.AddressTag

public class AddressTag
extends TagSupport

AddressTag Displays a User's address information.

     <rhn:address type=MAILING>
 
This outputs a table row tag containing a Header column, address info and a link to edit the address.
      Mailing:   444 Castro
                 Mountain View, CA 94043

                 Phone: 650-555-1212
                 Fax: 650-555-1212
                 Edit This Address (this is a link)
 


Field Summary
static java.lang.String ACTION_MY
          defines the action the address tag should forward to
static java.lang.String ACTION_USER
          public string representing the forward action type
 
Constructor Summary
AddressTag()
          Constructor for Address tag.
 
Method Summary
 int doStartTag()
          
 java.lang.String getAction()
          Returns the action used to determine where to forward the call too.
 Address getAddress()
          Get the Address to be rendered
 java.lang.String getType()
          Get the type of this address: MAILING, BILLING, SHIPPING
 User getUser()
          Get the User associated with this Address
 void release()
          
 void setAction(java.lang.String actionIn)
          Sets the action used to determine where to forward the call too.
 void setAddress(Address addrIn)
          Set the Address to be rendered
 void setType(java.lang.String typeIn)
          Set the type of this address: MAILING, BILLING, SHIPPING
 void setUser(User userIn)
          Set the User associated with this Address
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ACTION_MY

public static final java.lang.String ACTION_MY
defines the action the address tag should forward to

See Also:
Constant Field Values

ACTION_USER

public static final java.lang.String ACTION_USER
public string representing the forward action type

See Also:
Constant Field Values
Constructor Detail

AddressTag

public AddressTag()
Constructor for Address tag.

Method Detail

setType

public void setType(java.lang.String typeIn)
Set the type of this address: MAILING, BILLING, SHIPPING

Parameters:
typeIn - the type of this address: MAILING, BILLING, SHIPPING

getType

public java.lang.String getType()
Get the type of this address: MAILING, BILLING, SHIPPING

Returns:
The type of this address

setUser

public void setUser(User userIn)
Set the User associated with this Address

Parameters:
userIn - the User

getUser

public User getUser()
Get the User associated with this Address

Returns:
User that is set

setAddress

public void setAddress(Address addrIn)
Set the Address to be rendered

Parameters:
addrIn - the Address to render

getAddress

public Address getAddress()
Get the Address to be rendered

Returns:
Address that is set

setAction

public void setAction(java.lang.String actionIn)
Sets the action used to determine where to forward the call too.

Parameters:
actionIn - the action used to determine where to forward the call too.

getAction

public java.lang.String getAction()
Returns the action used to determine where to forward the call too.

Returns:
the action used to determine where to forward the call too.

doStartTag

public int doStartTag()
               throws JspException

Throws:
JspException

release

public void release()