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

java.lang.Object
  extended by com.centrasite.control.adapters.detailview.dynamicprofile.BaseAttributeLine
All Implemented Interfaces:
DynamicLine
Direct Known Subclasses:
AssociationAttributeLine, JaxrExpirationAttributeLine, JaxrStabilityAttributeLine, JaxrStatusAttributeLine, JaxrVersionAttributeLine, KeyAttributeLine, ServiceLocalNameAttributeLine, ServiceNamespaceAttributeLine, SlotTypeAttributeLine, XMLSchemaNamespaceAttributeLine

public abstract class BaseAttributeLine
extends java.lang.Object
implements DynamicLine

Base abstract implementation of the DynamicLine interface suitable for wrapping CentraSiteAttribute instances. Provides default behavior for attribute lines (adding, removing etc.).


Field Summary
static java.lang.String COLUMN_WIDTH_ACTION
           
static java.lang.String COLUMN_WIDTH_ATTRIBUTE
          Constants for column widths used in multiple places.
static java.lang.String COLUMN_WIDTH_VALUE
           
 boolean isBrowserChrome
           
 boolean isBrowserFire
           
static java.lang.String TOTAL_WIDTH
           
 
Constructor Summary
BaseAttributeLine(AttributeLineContext context)
           
 
Method Summary
 void buildUI(java.lang.StringBuffer layout)
          Adds the corresponding layout text for this line.
 com.centrasite.control.ActionContext getActionContext()
           
 com.centrasite.control.registry.items.RegistryObjectItem getAsset()
           
 com.centrasite.jaxr.assettype.CentraSiteAttribute getAttribute()
           
 AttributeLineContext getAttributeContext()
           
 java.lang.String getDescription()
          Retrieves the attribute description.
 int getIndex()
           
 boolean getLineAddVisible()
          Checks if the add line icon should be visible.
 boolean getLineRemoveVisible()
          Checks if the remove line icon should be visible.
 java.lang.String getName()
          Retrieves the attribute name.
 java.lang.String getNCName()
           
 boolean getSelected()
           
 boolean getShowAttributeName()
          Checks if the attribute name should be visible.
 java.lang.String getUnitLabel()
           
 com.softwareag.cis.server.util.GRIDCollection getValues()
           
 boolean hasAction()
          Indicate whether there is an Action or not.
 boolean isModified()
          Checks if this line has been modified.
 boolean isMultiValue()
          Checks if the underlying attribute is multivalue (max occurs = MAXOCCURS_UNBOUNDED).
 boolean isPrefix()
           
 boolean isReadOnly()
          Checks if this line displays read-only data.
 boolean isRequired()
           
 void modified()
          Marks this instance as modified and refreshes the screen.
 void onLineAdd()
          Adds new line of the same type to the collection of values.
 void onLineRemove()
          Removes this line from the collection of values.
 void passivate()
          Applies any pending changes.
 void revert()
          Reverts any changes.
 void setAttributeContext(AttributeLineContext context)
           
 void setModified(boolean modified)
           
 void setNCName(java.lang.String ncName)
           
 void setReadOnly(boolean readonly)
          Sets the read-only flag.
 void setValues(com.softwareag.cis.server.util.GRIDCollection col)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COLUMN_WIDTH_ATTRIBUTE

public static final java.lang.String COLUMN_WIDTH_ATTRIBUTE
Constants for column widths used in multiple places.

See Also:
Constant Field Values

COLUMN_WIDTH_VALUE

public static final java.lang.String COLUMN_WIDTH_VALUE
See Also:
Constant Field Values

COLUMN_WIDTH_ACTION

public static final java.lang.String COLUMN_WIDTH_ACTION
See Also:
Constant Field Values

TOTAL_WIDTH

public static final java.lang.String TOTAL_WIDTH
See Also:
Constant Field Values

isBrowserFire

public boolean isBrowserFire

isBrowserChrome

public boolean isBrowserChrome
Constructor Detail

BaseAttributeLine

public BaseAttributeLine(AttributeLineContext context)
Method Detail

hasAction

public boolean hasAction()
Indicate whether there is an Action or not.

Returns:
true/false

getNCName

public java.lang.String getNCName()
Specified by:
getNCName in interface DynamicLine

setNCName

public void setNCName(java.lang.String ncName)
Specified by:
setNCName in interface DynamicLine

isPrefix

public boolean isPrefix()

getUnitLabel

public java.lang.String getUnitLabel()

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
Parameters:
layout - The layout string used for adding the contents of this line.

isModified

public boolean isModified()
Description copied from interface: DynamicLine
Checks if this line has been modified.

Specified by:
isModified in interface DynamicLine
Returns:
boolean

isRequired

public boolean isRequired()
Returns:
true if the attribute is required false if the attribute is not required

isReadOnly

public boolean isReadOnly()
Description copied from interface: DynamicLine
Checks if this line displays read-only data.

Specified by:
isReadOnly in interface DynamicLine
Returns:
boolean

setReadOnly

public void setReadOnly(boolean readonly)
Description copied from interface: DynamicLine
Sets the read-only flag.

Specified by:
setReadOnly in interface DynamicLine

modified

public void modified()
Marks this instance as modified and refreshes the screen.


setModified

public void setModified(boolean modified)

getLineAddVisible

public boolean getLineAddVisible()
Checks if the add line icon should be visible.


getLineRemoveVisible

public boolean getLineRemoveVisible()
Checks if the remove line icon should be visible.


onLineAdd

public void onLineAdd()
Adds new line of the same type to the collection of values.


onLineRemove

public void onLineRemove()
Removes this line from the collection of values.


getShowAttributeName

public boolean getShowAttributeName()
Checks if the attribute name should be visible. It is visible only for the first line in the collection of values.


getName

public java.lang.String getName()
Retrieves the attribute name.

Returns:
attribute name

getDescription

public java.lang.String getDescription()
Retrieves the attribute description.

Returns:
attribute description

isMultiValue

public boolean isMultiValue()
Checks if the underlying attribute is multivalue (max occurs = MAXOCCURS_UNBOUNDED).

Returns:
boolean

passivate

public void passivate()
Description copied from interface: DynamicLine
Applies any pending changes.

Specified by:
passivate in interface DynamicLine

revert

public void revert()
Description copied from interface: DynamicLine
Reverts any changes.

Specified by:
revert in interface DynamicLine

getValues

public com.softwareag.cis.server.util.GRIDCollection getValues()

setValues

public void setValues(com.softwareag.cis.server.util.GRIDCollection col)

getAttributeContext

public AttributeLineContext getAttributeContext()

setAttributeContext

public void setAttributeContext(AttributeLineContext context)

getIndex

public int getIndex()

getSelected

public boolean getSelected()

getActionContext

public com.centrasite.control.ActionContext getActionContext()

getAsset

public com.centrasite.control.registry.items.RegistryObjectItem getAsset()

getAttribute

public com.centrasite.jaxr.assettype.CentraSiteAttribute getAttribute()