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

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.FileAttributeLine
All Implemented Interfaces:
DynamicLine, com.centrasite.control.discovery.PairInputListener

public class FileAttributeLine
extends AssociationAttributeLine
implements com.centrasite.control.discovery.PairInputListener

Attribute line handling file attributes (file).


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
FileAttributeLine(AttributeLineContext context)
           
 
Method Summary
 void buildUI(java.lang.StringBuffer layout)
          Adds the corresponding layout text for this line.
 java.lang.String getDocumentName()
           
 java.lang.String getDownloadButtonVisProp()
           
 java.lang.String getExistingFileURI()
           
 javax.xml.registry.infomodel.ExternalLink getExternalLink()
           
 com.centrasite.jaxr.assettype.FileAttribute getFileAttribute()
           
 java.lang.String getFileURI()
           
 java.lang.String getFullFileName()
           
 boolean getLineRemoveVisible()
          Checks if the remove line icon should be visible.
 java.lang.String getLinkStatusProp()
           
 boolean getVisibleProp()
           
 void onAddExternalLink()
          Executes the AddClassificationCommand by passing the specified in the attribute classification scheme.
 boolean onClickOK(java.util.Collection values)
           
 void onDocumentClick()
           
 void onDownload()
           
 void onLineRemove()
          Removes this line from the collection of values.
 void setExistingFileURI(java.lang.String existingFileURI)
           
 void setExternalLink(javax.xml.registry.infomodel.ExternalLink externalLink)
           
 void setFileURI(java.lang.String fileURI)
           
 
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.PairInputListener
onClickCancel
 

Constructor Detail

FileAttributeLine

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

getFileAttribute

public com.centrasite.jaxr.assettype.FileAttribute getFileAttribute()

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()

getDocumentName

public java.lang.String getDocumentName()

getFullFileName

public java.lang.String getFullFileName()

onDocumentClick

public void onDocumentClick()

getVisibleProp

public boolean getVisibleProp()

getDownloadButtonVisProp

public java.lang.String getDownloadButtonVisProp()

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

onAddExternalLink

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


onDownload

public void onDownload()

getExternalLink

public javax.xml.registry.infomodel.ExternalLink getExternalLink()
Returns:
the classification

getFileURI

public java.lang.String getFileURI()

getExistingFileURI

public java.lang.String getExistingFileURI()

setExternalLink

public void setExternalLink(javax.xml.registry.infomodel.ExternalLink externalLink)

setFileURI

public void setFileURI(java.lang.String fileURI)

setExistingFileURI

public void setExistingFileURI(java.lang.String existingFileURI)

onClickOK

public boolean onClickOK(java.util.Collection values)
Specified by:
onClickOK in interface com.centrasite.control.discovery.PairInputListener