public abstract class BaseAttributeLine extends java.lang.Object implements DynamicLine
DynamicLine
interface suitable for wrapping CentraSiteAttribute instances.
Provides default behavior for attribute lines (adding, removing etc.).Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
BaseAttributeLine(AttributeLineContext context) |
Modifier and Type | Method and Description |
---|---|
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) |
public static final java.lang.String COLUMN_WIDTH_ATTRIBUTE
public static final java.lang.String COLUMN_WIDTH_VALUE
public static final java.lang.String COLUMN_WIDTH_ACTION
public static final java.lang.String TOTAL_WIDTH
public boolean isBrowserFire
public boolean isBrowserChrome
public BaseAttributeLine(AttributeLineContext context)
public boolean hasAction()
public java.lang.String getNCName()
getNCName
in interface DynamicLine
public void setNCName(java.lang.String ncName)
setNCName
in interface DynamicLine
public boolean isPrefix()
public java.lang.String getUnitLabel()
public void buildUI(java.lang.StringBuffer layout)
DynamicLine
buildUI
in interface DynamicLine
layout
- The layout string used for adding the contents of this line.public boolean isModified()
DynamicLine
isModified
in interface DynamicLine
public boolean isRequired()
public boolean isReadOnly()
DynamicLine
isReadOnly
in interface DynamicLine
public void setReadOnly(boolean readonly)
DynamicLine
setReadOnly
in interface DynamicLine
public void modified()
public void setModified(boolean modified)
public boolean getLineAddVisible()
public boolean getLineRemoveVisible()
public void onLineAdd()
public void onLineRemove()
public boolean getShowAttributeName()
public java.lang.String getName()
public java.lang.String getDescription()
public boolean isMultiValue()
public void passivate()
DynamicLine
passivate
in interface DynamicLine
public void revert()
DynamicLine
revert
in interface DynamicLine
public com.softwareag.cis.server.util.GRIDCollection getValues()
public void setValues(com.softwareag.cis.server.util.GRIDCollection col)
public AttributeLineContext getAttributeContext()
public void setAttributeContext(AttributeLineContext context)
public int getIndex()
public boolean getSelected()
public com.centrasite.control.ActionContext getActionContext()
public com.centrasite.control.registry.items.RegistryObjectItem getAsset()
public com.centrasite.jaxr.assettype.CentraSiteAttribute getAttribute()