public class IlpDefaultTableRow extends Object implements IlpTableRow, ilog.cpl.css.internal.IlpCSSObject
IlpObject
which holds these values.VALUE_NOT_SET
Constructor and Description |
---|
IlpDefaultTableRow(IlpAttributeGroup model)
Creates a table representation object.
|
IlpDefaultTableRow(IlpObject object,
IlpExtendedAttributeGroup model)
Creates a table representation object from an
IlpObject . |
Modifier and Type | Method and Description |
---|---|
void |
addAttributeValueListener(AttributeValueListener l)
Adds a listener to attribute value changes.
|
void |
fireEvent(AttributeValueEvent ev)
Fires an event to the listeners.
|
IlpAttributeGroup |
getAttributeGroup()
Returns the model that defines which attributes are allowed
in this instance.
|
Object |
getAttributeValue(IlpAttribute a)
Retrieves the value of an attribute of this object.
|
Object |
getAttributeValue(String name)
Returns the value of an attribute of this object.
|
String |
getCSSClasses()
Returns the CSS classes of the object.
|
String |
getCSSID(IlpContext appc)
Returns the ID of the object.
|
String |
getCSSType()
Returns the type of the object.
|
ilog.cpl.model.edit.IlpRepresentationObjectEditor |
getEditor()
Get the editor for this object.
|
IlpObject |
getIlpObject()
Retrieves the
IlpObject of this representation. |
boolean |
hasAttributeValue(IlpAttribute a)
Returns
true if the requested attribute is part of the
attribute group of this instance and if a value has been set for this
attribute. |
void |
removeAttributeValueListener(AttributeValueListener l)
Removes the given listener from the attribute value changes
notifications.
|
void |
setAttributeValue(IlpAttribute attribute,
Object value)
Sets the value of an attribute of this object.
|
void |
setAttributeValue(String name,
Object value)
Sets the value of an attribute of this object.
|
public IlpDefaultTableRow(IlpObject object, IlpExtendedAttributeGroup model)
IlpObject
.object
- The business object which will be represented as a row
in the table.model
- The group of attributes managed by this table representation
object.public IlpDefaultTableRow(IlpAttributeGroup model)
model
- The group of attributes managed by this table representation
object.public IlpObject getIlpObject()
IlpObject
of this representation.getIlpObject
in interface IlpRepresentationObject
IlpObject
of this representation.public IlpAttributeGroup getAttributeGroup()
getAttributeGroup
in interface IlpAttributeValueHolder
public Object getAttributeValue(IlpAttribute a)
getAttributeValue
in interface IlpAttributeValueHolder
a
- The attribute whose value is to be retrieved.VALUE_NOT_SET
if no
value has been set.public boolean hasAttributeValue(IlpAttribute a)
true
if the requested attribute is part of the
attribute group of this instance and if a value has been set for this
attribute.hasAttributeValue
in interface IlpAttributeValueHolder
public void setAttributeValue(IlpAttribute attribute, Object value)
VALUE_NOT_SET
for the value
argument.setAttributeValue
in interface IlpAttributeValueHolder
attribute
- The attribute whose value is set.value
- The new value of the attribute or VALUE_NOT_SET
to remove the value of the attribute.IllegalArgumentException
- if the attribute cannot have
its value modified.public Object getAttributeValue(String name)
getAttributeValue
in interface IlpAttributeValueHolder
name
- The name of the attribute.public void setAttributeValue(String name, Object value)
setAttributeValue
in interface IlpAttributeValueHolder
name
- The name of the attribute.value
- The new value of the attribute.public void addAttributeValueListener(AttributeValueListener l)
addAttributeValueListener
in interface IlpAttributeValueHolder
public void removeAttributeValueListener(AttributeValueListener l)
removeAttributeValueListener
in interface IlpAttributeValueHolder
public void fireEvent(AttributeValueEvent ev)
fireEvent
in interface IlpAttributeValueHolder
public ilog.cpl.model.edit.IlpRepresentationObjectEditor getEditor()
IlpRepresentationObject
getAttributeValue
to the editor.
In this case it should also stop propagating attribute value
change events received from the BO.getEditor
in interface IlpRepresentationObject
public String getCSSType()
getCSSType
in interface ilog.cpl.css.internal.IlpCSSObject
public String getCSSID(IlpContext appc)
getCSSID
in interface ilog.cpl.css.internal.IlpCSSObject
appc
- The contextpublic String getCSSClasses()
getCSSClasses
in interface ilog.cpl.css.internal.IlpCSSObject
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.