|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.gantt.model.IlvAbstractActivity
ilog.views.gantt.model.IlvSimpleActivity
ilog.views.gantt.model.general.IlvGeneralActivity
public class IlvGeneralActivity
IlvGeneralActivity is an extension of IlvSimpleActivity
that adds support for user-defined properties.
IlvGeneralActivity fires an ActivityUserPropertyEvent
both before and after a user-defined property is modified. Immediately
before a property is modified, IlvGeneralActivity fires an
aboutToChange ActivityUserPropertyEvent to all
listeners
registered with the Gantt data model.
This gives the listeners an opportunity to constrain or veto the proposed
property change. If the property change is not vetoed, then the change
is applied and IlvGeneralActivity fires a changed
ActivityUserPropertyEvent to all listeners registered with the
Gantt data model.
IlvGeneralActivity predefines 6 properties that are
inherited from its IlvSimpleActivity superclass. These predefined
properties can be accessed through the getProperty(java.lang.String) and
setProperty(java.lang.String, java.lang.Object) methods in the same manner as user-defined properties.
However, the predefined properties fire specific event types. They
do not fire ActivityUserPropertyEvents as described
above for user-defined properties. The predefined events are shown in the
following table:
| Property | Value Type | Equivalent getXXX Method | Equivalent setXXX Method | Event Type |
id |
String |
|
|
ActivityIDEvent |
name |
String |
|
|
ActivityNameEvent |
startTime |
Date |
|
|
ActivityTimeIntervalEvent |
endTime |
Date |
|
|
ActivityTimeIntervalEvent |
duration |
IlvDuration |
|
|
ActivityTimeIntervalEvent |
timeInterval |
IlvTimeInterval |
|
|
ActivityTimeIntervalEvent |
| Nested Class Summary | |
|---|---|
static class |
IlvGeneralActivity.Factory
IlvGeneralActivity.Factory is a factory that creates
instances of IlvGeneralActivity. |
| Field Summary | |
|---|---|
static String |
DURATION_PROPERTY
Identifies the activity's duration property. |
static String |
END_TIME_PROPERTY
Identifies the activity's end time property. |
static String |
ID_PROPERTY
Identifies the activity's ID property. |
static String |
NAME_PROPERTY
Identifies the activity's name property. |
static String |
START_TIME_PROPERTY
Identifies the activity's start time property. |
static String |
TIME_INTERVAL_PROPERTY
Identifies the activity's time interval property. |
| Constructor Summary | |
|---|---|
IlvGeneralActivity(String id,
String name,
Date start,
Date end)
Creates a new IlvGeneralActivity from the specified ID,
name, and time interval. |
|
IlvGeneralActivity(String id,
String name,
Date start,
IlvDuration duration)
Creates a new IlvGeneralActivity from the specified ID,
name, start time, and duration. |
|
IlvGeneralActivity(String id,
String name,
IlvTimeInterval interval)
Creates a new IlvGeneralActivity from the specified ID,
name, and time interval. |
|
| Method Summary | |
|---|---|
Object |
getProperty(String property)
Returns the value of a user-defined property or null if
the property does not exist. |
Collection |
getPropertyNames()
Returns a collection that contains the names of all the properties of this activity. |
boolean |
isUserProperty(String name)
Returns true if the property is a user-defined property. |
protected String |
paramString()
Returns a parameter string that represents the state of this activity. |
Iterator |
propertyNameIterator()
Returns an iterator over all the property names of this activity. |
Object |
setProperty(String property,
Object value)
Stores a user-defined property in this activity's property table. |
| Methods inherited from class ilog.views.gantt.model.IlvSimpleActivity |
|---|
computeTimeIntervalFromChildren, getAutoCalcTimeIntervalFromChildren, getChildEventFilter, getID, getName, getTimeInterval, processChildEvent, setAutoCalcTimeIntervalFromChildren, setGanttModelImpl, setID, setName, setTimeInterval |
| Methods inherited from class ilog.views.gantt.model.IlvAbstractActivity |
|---|
fireEvent, fireIDAboutToChange, fireIDChanged, fireNameAboutToChange, fireNameChanged, fireTimeIntervalAboutToChange, fireTimeIntervalChanged, getDuration, getEndTime, getGanttModel, getStartTime, setDuration, setEndTime, setStartTime, setTimeInterval, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String ID_PROPERTY
public static final String NAME_PROPERTY
public static final String START_TIME_PROPERTY
public static final String END_TIME_PROPERTY
public static final String DURATION_PROPERTY
public static final String TIME_INTERVAL_PROPERTY
| Constructor Detail |
|---|
public IlvGeneralActivity(String id,
String name,
IlvTimeInterval interval)
IlvGeneralActivity from the specified ID,
name, and time interval.
id - The activity ID.name - The descriptive activity name.interval - The start and end time of the activity.
public IlvGeneralActivity(String id,
String name,
Date start,
Date end)
IlvGeneralActivity from the specified ID,
name, and time interval.
id - The activity ID.name - The descriptive activity name.start - The activity start time.end - The activity end time.
public IlvGeneralActivity(String id,
String name,
Date start,
IlvDuration duration)
IlvGeneralActivity from the specified ID,
name, start time, and duration.
id - The activity ID.name - The descriptive activity name.start - The activity start time.duration - The activity duration.| Method Detail |
|---|
public Object getProperty(String property)
null if
the property does not exist.
getProperty in interface IlvUserPropertyHolderproperty - The name of the property.
null if the property
does not exist.setProperty(java.lang.String, java.lang.Object),
getPropertyNames()
public Object setProperty(String property,
Object value)
setProperty in interface IlvUserPropertyHolderproperty - 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),
getPropertyNames()public Iterator propertyNameIterator()
propertyNameIterator in interface IlvUserPropertyHolderpublic Collection getPropertyNames()
public boolean isUserProperty(String name)
true if the property is a user-defined property.
isUserProperty in interface IlvUserPropertyHoldername - The name of the property.protected String paramString()
paramString in class IlvAbstractActivity
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||