com.jp.protection.priv.products
Class Product.ProductLink

java.lang.Object
  extended by com.jp.protection.priv.products.Product.ProductLink
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
Product

public static class Product.ProductLink
extends java.lang.Object
implements java.io.Serializable

This class defines properties of a product's link

See Also:
Serialized Form

Field Summary
protected  java.lang.String fID
           
protected  java.lang.String fText
           
protected  java.lang.String fTooltip
           
protected  java.lang.String fURL
           
static java.lang.String PROPERTY_ID
           
static java.lang.String PROPERTY_TEXT
           
static java.lang.String PROPERTY_TOOLTIP
           
static java.lang.String PROPERTY_URL
           
static long serialVersionUID
           
 
Constructor Summary
Product.ProductLink()
          Creates a new instance of the ProductLink
Product.ProductLink(java.lang.String aID)
          Creates a new instance of the ProductLink
 
Method Summary
 java.lang.String getID()
          Returns identifier
 java.lang.String getText()
          Returns text that represents a link
 java.lang.String getTooltip()
          Returns tooltip text
 java.lang.String getURL()
          Returns string representation of URL
 void setID(java.lang.String aID)
          Specifies identifier
 void setText(java.lang.String aText)
          Specifies text that represents a link e.g.
 void setTooltip(java.lang.String aTooltip)
          Specifies tooltip text e.g.
 void setURL(java.lang.String aURL)
          Specifies string representation of URL e.g.
 void update(Product.ProductLink aProductLink)
          Updates specified product link
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values

PROPERTY_ID

public static final java.lang.String PROPERTY_ID
See Also:
Constant Field Values

PROPERTY_TEXT

public static final java.lang.String PROPERTY_TEXT
See Also:
Constant Field Values

PROPERTY_URL

public static final java.lang.String PROPERTY_URL
See Also:
Constant Field Values

PROPERTY_TOOLTIP

public static final java.lang.String PROPERTY_TOOLTIP
See Also:
Constant Field Values

fID

protected java.lang.String fID

fText

protected java.lang.String fText

fURL

protected java.lang.String fURL

fTooltip

protected java.lang.String fTooltip
Constructor Detail

Product.ProductLink

public Product.ProductLink()
Creates a new instance of the ProductLink


Product.ProductLink

public Product.ProductLink(java.lang.String aID)
Creates a new instance of the ProductLink

Parameters:
aID - identifier to assign
Method Detail

getID

public java.lang.String getID()
Returns identifier

Returns:
identifier

setID

public void setID(java.lang.String aID)
Specifies identifier

Parameters:
aID - identifier

getText

public java.lang.String getText()
Returns text that represents a link

Returns:
text that represents a link

setText

public void setText(java.lang.String aText)
Specifies text that represents a link e.g. www.jproductivity.com

Parameters:
aText - text that represents a link

getTooltip

public java.lang.String getTooltip()
Returns tooltip text

Returns:
tooltip text

setTooltip

public void setTooltip(java.lang.String aTooltip)
Specifies tooltip text e.g. "Please visit our site to learn more about us"

Parameters:
aTooltip - tooltip text

getURL

public java.lang.String getURL()
Returns string representation of URL

Returns:
string representation of URL

setURL

public void setURL(java.lang.String aURL)
Specifies string representation of URL e.g. http://www.jproductivity.com

Parameters:
aURL - string representation of URL

update

public void update(Product.ProductLink aProductLink)
Updates specified product link

Parameters:
aProductLink - product link to update