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

java.lang.Object
  extended by com.centrasite.control.adapters.detailview.dynamicprofile.BaseAttributeLine
      extended by com.centrasite.control.adapters.detailview.dynamicprofile.SlotTypeAttributeLine
All Implemented Interfaces:
DynamicLine
Direct Known Subclasses:
BooleanLine, DateAttributeLine, DateTimeAttributeLine, DurationAttributeLine, IPv4AttributeLine, RichTextAttributeLine, StringAttributeLine, TimeAttributeLine

public abstract class SlotTypeAttributeLine
extends BaseAttributeLine

Attribute line handling attributes represented as slots.


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
SlotTypeAttributeLine(AttributeLineContext context)
           
SlotTypeAttributeLine(AttributeLineContext context, javax.xml.registry.infomodel.Slot slot)
           
 
Method Summary
 void buildUI(java.lang.StringBuffer layout)
          Adds the corresponding layout text for this line.
 javax.xml.registry.infomodel.Slot getSlot()
          Retrieves the underlying slot for this attribute line.
 java.lang.String getStringValue()
           
 java.lang.Object getValue()
          Retrieves the slot value contained by this line.
 boolean hasAction()
          Indicate whether there is an Action or not.
 void passivate()
          Sets all slot value contained by this attribute line.
 void setSlot(javax.xml.registry.infomodel.Slot slot)
           
 void setValue(java.lang.Object value)
           
 
Methods inherited from class com.centrasite.control.adapters.detailview.dynamicprofile.BaseAttributeLine
getActionContext, getAsset, getAttribute, getAttributeContext, getDescription, getIndex, getLineAddVisible, getLineRemoveVisible, getName, getNCName, getSelected, getShowAttributeName, getUnitLabel, getValues, isModified, isMultiValue, isPrefix, isReadOnly, isRequired, modified, onLineAdd, onLineRemove, revert, setAttributeContext, setModified, setNCName, setReadOnly, setValues
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SlotTypeAttributeLine

public SlotTypeAttributeLine(AttributeLineContext context)
Parameters:
context -

SlotTypeAttributeLine

public SlotTypeAttributeLine(AttributeLineContext context,
                             javax.xml.registry.infomodel.Slot slot)
Parameters:
context -
slot -
Method Detail

hasAction

public boolean hasAction()
Description copied from class: BaseAttributeLine
Indicate whether there is an Action or not.

Overrides:
hasAction in class BaseAttributeLine
Returns:
true/false

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.

passivate

public void passivate()
Sets all slot value contained by this attribute line.

Specified by:
passivate in interface DynamicLine
Overrides:
passivate in class BaseAttributeLine

getValue

public java.lang.Object getValue()
Retrieves the slot value contained by this line.

Returns:
the value

getStringValue

public java.lang.String getStringValue()

setValue

public void setValue(java.lang.Object value)
Parameters:
value - the value to set

getSlot

public javax.xml.registry.infomodel.Slot getSlot()
Retrieves the underlying slot for this attribute line.

Returns:
the slot

setSlot

public void setSlot(javax.xml.registry.infomodel.Slot slot)
Parameters:
slot - the slot to set