com.centrasite.control.adapters.detailview.dynamicprofile
Class RelationAttributeLine

java.lang.Object
  extended by com.centrasite.control.adapters.detailview.dynamicprofile.BaseAttributeLine
      extended by com.centrasite.control.adapters.detailview.dynamicprofile.AssociationAttributeLine
          extended by com.centrasite.control.adapters.detailview.dynamicprofile.RelationAttributeLine
All Implemented Interfaces:
DynamicLine, com.centrasite.control.discovery.AddAssociationListener

public class RelationAttributeLine
extends AssociationAttributeLine
implements com.centrasite.control.discovery.AddAssociationListener

Attribute line handling relationship attributes.


Field Summary
 
Fields inherited from class com.centrasite.control.adapters.detailview.dynamicprofile.BaseAttributeLine
COLUMN_WIDTH_ACTION, COLUMN_WIDTH_ATTRIBUTE, COLUMN_WIDTH_VALUE, isBrowserChrome, isBrowserFire, TOTAL_WIDTH
 
Constructor Summary
RelationAttributeLine(AttributeLineContext context)
           
 
Method Summary
 void buildUI(java.lang.StringBuffer layout)
          Adds the corresponding layout text for this line.
 java.lang.String changeStatusProp()
           
 boolean getLineRemoveVisible()
          Checks if the remove line icon should be visible.
 java.lang.String getLinkStatusProp()
          If the targetAssetName is equal to INMCS_LBL_INSUFF_PRIV do not render the link.
 com.centrasite.jaxr.assettype.RelationshipAttribute getRelationAttribute()
           
 com.centrasite.control.Item getTargetAsset()
           
 java.lang.String getTargetAssetName()
           
 void onAddAssociation()
          Executes the AddClassificationCommand by passing the specified in the attribute classification scheme.
 void onClickOk(com.centrasite.control.ActionContext actionContext, com.centrasite.control.registry.items.RegistryObjectItem source, java.util.Collection targetObjects, java.lang.String associationType)
           
 void onLineRemove()
          Removes this line from the collection of values.
 void setTargetObject(javax.xml.registry.infomodel.RegistryObject ro)
           
 void showDetails()
          This method is executed when click on the link of the Asset
 
Methods inherited from class com.centrasite.control.adapters.detailview.dynamicprofile.AssociationAttributeLine
getAssociationAttribute, onClickCancel, onClickCancel
 
Methods inherited from class com.centrasite.control.adapters.detailview.dynamicprofile.BaseAttributeLine
getActionContext, getAsset, getAttribute, getAttributeContext, getDescription, getIndex, getLineAddVisible, getName, getNCName, getSelected, getShowAttributeName, getUnitLabel, getValues, hasAction, isModified, isMultiValue, isPrefix, isReadOnly, isRequired, modified, onLineAdd, passivate, revert, setAttributeContext, setModified, setNCName, setReadOnly, setValues
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.centrasite.control.discovery.AddAssociationListener
onClickCancel
 

Constructor Detail

RelationAttributeLine

public RelationAttributeLine(AttributeLineContext context)
Parameters:
context -
Method Detail

getRelationAttribute

public com.centrasite.jaxr.assettype.RelationshipAttribute getRelationAttribute()

buildUI

public void buildUI(java.lang.StringBuffer layout)
Description copied from interface: DynamicLine
Adds the corresponding layout text for this line.

Specified by:
buildUI in interface DynamicLine
Overrides:
buildUI in class BaseAttributeLine
Parameters:
layout - The layout string used for adding the contents of this line.

getLinkStatusProp

public java.lang.String getLinkStatusProp()
If the targetAssetName is equal to INMCS_LBL_INSUFF_PRIV do not render the link.


showDetails

public void showDetails()
This method is executed when click on the link of the Asset


getTargetAsset

public com.centrasite.control.Item getTargetAsset()

getTargetAssetName

public java.lang.String getTargetAssetName()

changeStatusProp

public java.lang.String changeStatusProp()

onLineRemove

public void onLineRemove()
Description copied from class: BaseAttributeLine
Removes this line from the collection of values.

Overrides:
onLineRemove in class BaseAttributeLine

getLineRemoveVisible

public boolean getLineRemoveVisible()
Description copied from class: BaseAttributeLine
Checks if the remove line icon should be visible.

Overrides:
getLineRemoveVisible in class BaseAttributeLine

onAddAssociation

public void onAddAssociation()
Executes the AddClassificationCommand by passing the specified in the attribute classification scheme.


setTargetObject

public void setTargetObject(javax.xml.registry.infomodel.RegistryObject ro)
Parameters:
association - the classification to set

onClickOk

public void onClickOk(com.centrasite.control.ActionContext actionContext,
                      com.centrasite.control.registry.items.RegistryObjectItem source,
                      java.util.Collection targetObjects,
                      java.lang.String associationType)
Specified by:
onClickOk in interface com.centrasite.control.discovery.AddAssociationListener