com.jp.protection.pub
Class ProductInfo.ProductInfoLink

java.lang.Object
  extended by com.jp.protection.pub.ProductInfo.ProductInfoLink
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
ProductInfo

public static class ProductInfo.ProductInfoLink
extends java.lang.Object
implements java.io.Serializable

Class that holds the properties of a product information links such as text, tooltip text and URL.

See Also:
Serialized Form

Field Summary
protected  java.lang.String fID
           
protected  ProductInfo fProductInfo
           
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
ProductInfo.ProductInfoLink()
          Creates a new instance of the ProductInfoLink
ProductInfo.ProductInfoLink(java.lang.String aID)
          Creates a new instance of the ProductInfoLink and assigns identifier
ProductInfo.ProductInfoLink(java.lang.String aID, java.lang.String aText, java.lang.String aURL, java.lang.String aTooltip)
          Creates a new instance of the ProductInfoLink and initializes all major attributes
 
Method Summary
 java.lang.String getID()
          Returns product link's identifier
 ProductInfo getProductInfo()
          Returns product information that belongs to the product link
 java.lang.String getText()
          Returns product link's text
 java.lang.String getTooltip()
          Returns product link's tooltip text
 java.lang.String getURL()
          Returns product link's tooltip URL
 void setID(java.lang.String aID)
          Specifies product link's identifier
 void setProductInfo(ProductInfo aProductInfo)
          Associate product link with the product information
 void setText(java.lang.String aText)
          Specifies product link's text
 void setTooltip(java.lang.String aTooltip)
          Specifies product link's tooltip text
 void setURL(java.lang.String aURL)
          Specifies product link's URL
 void update(ProductInfo.ProductInfoLink aProductInfoLink)
          Copies values of text, tooltip text and URL from the 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

fProductInfo

protected ProductInfo fProductInfo
Constructor Detail

ProductInfo.ProductInfoLink

public ProductInfo.ProductInfoLink()
Creates a new instance of the ProductInfoLink


ProductInfo.ProductInfoLink

public ProductInfo.ProductInfoLink(java.lang.String aID)
Creates a new instance of the ProductInfoLink and assigns identifier

Parameters:
aID - identifier to assign

ProductInfo.ProductInfoLink

public ProductInfo.ProductInfoLink(java.lang.String aID,
                                   java.lang.String aText,
                                   java.lang.String aURL,
                                   java.lang.String aTooltip)
Creates a new instance of the ProductInfoLink and initializes all major attributes

Parameters:
aID - String
aText - String
aURL - String
aTooltip - String
Method Detail

getID

public java.lang.String getID()
Returns product link's identifier

Returns:
product link's identifier

setID

public void setID(java.lang.String aID)
Specifies product link's identifier

Parameters:
aID - product link's identifier

getText

public java.lang.String getText()
Returns product link's text

Returns:
product link's text

setText

public void setText(java.lang.String aText)
Specifies product link's text

Parameters:
aText - product link's text

getTooltip

public java.lang.String getTooltip()
Returns product link's tooltip text

Returns:
product link's tooltip text

setTooltip

public void setTooltip(java.lang.String aTooltip)
Specifies product link's tooltip text

Parameters:
aTooltip - product link's tooltip text

getURL

public java.lang.String getURL()
Returns product link's tooltip URL

Returns:
product link's tooltip URL

setURL

public void setURL(java.lang.String aURL)
Specifies product link's URL

Parameters:
aURL - product link's URL

update

public void update(ProductInfo.ProductInfoLink aProductInfoLink)
Copies values of text, tooltip text and URL from the specified product link

Parameters:
aProductInfoLink - product link to copy attributes from

getProductInfo

public ProductInfo getProductInfo()
Returns product information that belongs to the product link

Returns:
a ProductInfo instance

setProductInfo

public void setProductInfo(ProductInfo aProductInfo)
Associate product link with the product information

Parameters:
aProductInfo - a ProductInfo instance to associate