com.ibm.commerce.pa.beans
Class GenericLinkDataBean

java.lang.Object
  |
  +--com.ibm.commerce.pa.beans.DynamicDataBeanImpl
        |
        +--com.ibm.commerce.pa.beans.ElementDataBean
              |
              +--com.ibm.commerce.pa.beans.GenericLinkDataBean
All Implemented Interfaces:
CommandDataBean, DataBean, DynamicDataBean, InputDataBean, java.io.Serializable

public class GenericLinkDataBean
extends ElementDataBean

The GenericLinkDataBean represents a link to a metaphor page. It is assigned a specific metaphor. It will be visible on the page only if its metaphor is defined for the current store, category, and language that the shopper is shopping in.

See Also:
Serialized Form

Field Summary
static java.lang.String COPYRIGHT
           
protected  java.lang.String image
           
protected  java.lang.String linkPage
           
protected  java.lang.String metaphor
           
protected  boolean passConstraints
           
protected  java.lang.String target
           
protected  java.lang.String text
           
 
Fields inherited from class com.ibm.commerce.pa.beans.ElementDataBean
dataElement
 
Fields inherited from class com.ibm.commerce.pa.beans.DynamicDataBeanImpl
constraintList, defaultWidget, errorCode, errorMessage, interfaceName, metaData, pageName, parent, parentName, requestProperties, scriptName
 
Fields inherited from interface com.ibm.commerce.beans.DataBean
emptyString
 
Constructor Summary
GenericLinkDataBean()
          GenericLinkDataBean constructor.
 
Method Summary
 java.lang.String getCommandInterfaceName()
          Returns the name of command which populates this bean.
 java.lang.String getImage()
          Returns the relative pathname of the image to use for the link.
 java.lang.String getLinkPage()
          Returns the relative url of the page to link to.
 java.lang.String getMetaphor()
          Returns the class name of the metaphor that this link represents.
 boolean getPassConstraints()
          Returns whether metaphor constraints passed into this page will be passed on to the page linked to.
 java.lang.String getTarget()
          Return the name of the target HTML frame.
 java.lang.String getText()
          Return the alternate text for this link.
 void setImage(java.lang.String newValue)
          Set the relative pathname of the image to use for this link.
 void setLinkPage(java.lang.String newValue)
          Set the relative url to link to.
 void setMetaphor(java.lang.String newValue)
          Set the name of the class for the metaphor that this link represents.
 void setPassConstraints(boolean newValue)
          Set whether metaphor constraints should be passed on to the page linked to.
 void setTarget(java.lang.String newValue)
          Set the name of the target HTML frame.
 void setText(java.lang.String newValue)
          Set the alternate text for the link.
 
Methods inherited from class com.ibm.commerce.pa.beans.ElementDataBean
copy, getDataElement, getRequestProperties, setDataElement, setRequestProperties
 
Methods inherited from class com.ibm.commerce.pa.beans.DynamicDataBeanImpl
addConstraint, getConstraintList, getDefaultWidget, getErrorCode, getErrorMessage, getMetaData, getPageName, getParent, getParentName, getScriptName, setCommandInterfaceName, setConstraintList, setDefaultWidget, setErrorCode, setErrorMessage, setMetaData, setPageName, setParent, setParentName, setScriptName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT

image

protected java.lang.String image

linkPage

protected java.lang.String linkPage

metaphor

protected java.lang.String metaphor

passConstraints

protected boolean passConstraints

target

protected java.lang.String target

text

protected java.lang.String text
Constructor Detail

GenericLinkDataBean

public GenericLinkDataBean()
GenericLinkDataBean constructor.
Method Detail

getCommandInterfaceName

public java.lang.String getCommandInterfaceName()
Returns the name of command which populates this bean.
Overrides:
getCommandInterfaceName in class ElementDataBean
Returns:
java.lang.String

getImage

public java.lang.String getImage()
Returns the relative pathname of the image to use for the link.
Returns:
java.lang.String

getLinkPage

public java.lang.String getLinkPage()
Returns the relative url of the page to link to.
Returns:
java.lang.String

getMetaphor

public java.lang.String getMetaphor()
Returns the class name of the metaphor that this link represents.
Returns:
java.lang.String

getPassConstraints

public boolean getPassConstraints()
Returns whether metaphor constraints passed into this page will be passed on to the page linked to.
Returns:
boolean

getTarget

public java.lang.String getTarget()
Return the name of the target HTML frame.
Returns:
java.lang.String

getText

public java.lang.String getText()
Return the alternate text for this link. If no image is defined then this text is used in its place.
Returns:
java.lang.String

setImage

public void setImage(java.lang.String newValue)
Set the relative pathname of the image to use for this link.
Parameters:
newValue - java.lang.String

setLinkPage

public void setLinkPage(java.lang.String newValue)
Set the relative url to link to.
Parameters:
newValue - java.lang.String

setMetaphor

public void setMetaphor(java.lang.String newValue)
Set the name of the class for the metaphor that this link represents.
Parameters:
newValue - java.lang.String

setPassConstraints

public void setPassConstraints(boolean newValue)
Set whether metaphor constraints should be passed on to the page linked to.
Parameters:
newValue - boolean

setTarget

public void setTarget(java.lang.String newValue)
Set the name of the target HTML frame.
Parameters:
newValue - java.lang.String

setText

public void setText(java.lang.String newValue)
Set the alternate text for the link. This text is used for the link if no image is defined.
Parameters:
newValue - java.lang.String