public class IlvTableConstraint extends IlvAbstractConstraint implements IlvUserPropertyHolder
IlvAbstractConstraint
implementation that
works with an IlvTableGanttModel
.IlvTableGanttModel.configureHierarchyChart(IlvHierarchyChart)
,
Serialized FormModifier and Type | Field and Description |
---|---|
static String |
FROM_ACTIVITY_ID_PROPERTY
Identifies the constraint's from-activity ID property.
|
static String |
FROM_ACTIVITY_PROPERTY
Identifies the from-activity property of the constraint.
|
static String |
TO_ACTIVITY_ID_PROPERTY
Identifies the to-activity ID property of the constraint.
|
static String |
TO_ACTIVITY_PROPERTY
Identifies the to-activity property of the constraint.
|
static String |
TYPE_PROPERTY
Identifies the type property of the constraint.
|
Constructor and Description |
---|
IlvTableConstraint(IlvActivity fromActivity,
IlvActivity toActivity,
IlvConstraintType type)
Creates a new
IlvTableConstraint from the specified
from-activity, to-activity, and type. |
Modifier and Type | Method and Description |
---|---|
IlvActivity |
getFromActivity()
Returns the source or
From activity for this constraint. |
Object |
getProperty(String property)
Returns the value of a user-defined property or
null if the
property does not exist. |
IlvActivity |
getToActivity()
Returns the target or
To activity for this constraint. |
IlvConstraintType |
getType()
Returns the type of this constraint.
|
boolean |
isUserProperty(String name)
Tells if the property is a user-defined property.
|
Iterator<String> |
propertyNameIterator()
Returns an iterator over all the property names of the object.
|
Object |
setProperty(String property,
Object value)
Stores a user-defined property in the property table of this resource.
|
void |
setType(IlvConstraintType type)
Sets the type of this constraint.
|
fireEvent, fireTypeAboutToChange, fireTypeChanged, getGanttModel, paramString, setGanttModelImpl, toString
public static final String TYPE_PROPERTY
constraintType
.public static final String FROM_ACTIVITY_PROPERTY
fromActivity
.public static final String TO_ACTIVITY_PROPERTY
toActivity
.public static final String FROM_ACTIVITY_ID_PROPERTY
public static final String TO_ACTIVITY_ID_PROPERTY
toActivityID
.public IlvTableConstraint(IlvActivity fromActivity, IlvActivity toActivity, IlvConstraintType type)
IlvTableConstraint
from the specified
from-activity, to-activity, and type.fromActivity
- The source activity of the constraint.toActivity
- The destination activity of the constraint.type
- The type of the constraint.public IlvActivity getFromActivity()
From
activity for this constraint.getFromActivity
in interface IlvConstraint
public IlvActivity getToActivity()
To
activity for this constraint.getToActivity
in interface IlvConstraint
public IlvConstraintType getType()
getType
in interface IlvConstraint
public void setType(IlvConstraintType type)
setType
in interface IlvConstraint
type
- The constraint type.public Object getProperty(String property)
null
if the
property does not exist.getProperty
in interface IlvUserPropertyHolder
property
- The name of the property.null
if the property
does not exist.setProperty(java.lang.String, java.lang.Object)
,
propertyNameIterator()
public Object setProperty(String property, Object value)
setProperty
in interface IlvUserPropertyHolder
property
- The name of the property.value
- The value of the property. If the value is
null
then the property is removed.getProperty(java.lang.String)
,
propertyNameIterator()
public Iterator<String> propertyNameIterator()
propertyNameIterator
in interface IlvUserPropertyHolder
public boolean isUserProperty(String name)
isUserProperty
in interface IlvUserPropertyHolder
name
- The name of the property.true
if the property is a user-defined property,
false
otherwise.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.