public class IlvTableActivity extends IlvAbstractActivity implements IlvPropertyHolderActivity, IlvUserPropertyHolder
IlvAbstractActivity implementation that
works with an IlvTableGanttModel.IlvTableGanttModel.configureHierarchyChart(IlvHierarchyChart),
Serialized Form| Modifier and Type | Field and Description |
|---|---|
static String |
DURATION_PROPERTY
Identifies the duration property of the activity.
|
static String |
ID_PROPERTY
Identifies the ID property of the activity.
|
static String |
NAME_PROPERTY
Identifies the name property of the activity.
|
static String |
PARENT_ID_PROPERTY
Identifies the ID of the parent activity.
|
static String |
TIME_INTERVAL_PROPERTY
Identifies the time interval property of the activity.
|
END_TIME_PROPERTY, START_TIME_PROPERTY, TIME_PROPERTIES_PROPERTY| Constructor and Description |
|---|
IlvTableActivity(String id,
String name,
Date start,
Date end)
Creates a new
IlvTableActivity from the specified ID, name,
and time interval. |
IlvTableActivity(String id,
String name,
Date start,
IlvDuration duration)
Creates a new
IlvTableActivity from the specified ID, name,
start time, and duration. |
IlvTableActivity(String id,
String name,
IlvTimeInterval interval)
Creates a new
IlvTableActivity from the specified ID, name,
and time interval. |
| Modifier and Type | Method and Description |
|---|---|
protected ActivityUserPropertyEvent |
firePropertyAboutToChange(String property,
Object oldValue,
Object newValue)
Fires a user property aboutToChange event and returns the event
after dispatching it to all listeners.
|
protected void |
firePropertyChanged(String property,
Object oldValue,
Object newValue)
Fires a user property changed event.
|
String |
getID()
Returns the ID string of the activity.
|
String |
getName()
Returns the name of the activity.
|
Object |
getProperty(String property)
Returns the value of a user-defined property or
null if the
property does not exist. |
IlvTimeInterval |
getTimeInterval()
Returns the time span between the start time and end time of the activity
as an interval.
|
String[] |
getTimeProperties()
Returns the names of the properties that denote the specific time points
of this activity.
|
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.
|
void |
setID(String id)
Sets the ID string of the activity.
|
void |
setName(String name)
Sets the name of the activity.
|
Object |
setProperty(String property,
Object value)
Stores a user-defined property in the property table of this activity.
|
void |
setTimeInterval(IlvTimeInterval interval)
Sets the start time and end time of the activity.
|
void |
setTimeProperties(String[] timeProperties)
Changes the set of properties that are the specific time points of this activity and
from which the start time and the end time are computed.
|
fireEvent, fireIDAboutToChange, fireIDChanged, fireNameAboutToChange, fireNameChanged, fireTimeIntervalAboutToChange, fireTimeIntervalChanged, getChildEventFilter, getDuration, getEndTime, getGanttModel, getStartTime, paramString, processChildEvent, setDuration, setEndTime, setGanttModelImpl, setStartTime, setTimeInterval, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetChildEventFilter, getEndTime, getStartTime, processChildEvent, setEndTime, setGanttModelImpl, setStartTime, setTimeIntervalpublic static final String ID_PROPERTY
id.public static final String NAME_PROPERTY
name.public static final String DURATION_PROPERTY
duration.public static final String TIME_INTERVAL_PROPERTY
timeInterval.public static final String PARENT_ID_PROPERTY
public IlvTableActivity(String id, String name, IlvTimeInterval interval)
IlvTableActivity 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 IlvTableActivity(String id, String name, Date start, Date end)
IlvTableActivity 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 IlvTableActivity(String id, String name, Date start, IlvDuration duration)
IlvTableActivity 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.public String getID()
getID in interface IlvActivitypublic void setID(String id)
IlvTableActivity the ID must be set at
construction or initialization time or get from the database.setID in interface IlvActivityid - The ID string of the activity.IllegalStateException - if the activity is added to a modelpublic String getName()
getName in interface IlvActivitypublic void setName(String name)
setName in interface IlvActivityname - A descriptive name for this activity.public final String[] getTimeProperties()
getTimeProperties in interface IlvPropertyHolderActivitynull.public void setTimeProperties(String[] timeProperties)
setTimeProperties in interface IlvPropertyHolderActivitytimeProperties - A nonempty set of properties whose values are always of type
Date, excluding IlvPropertyHolderActivity.START_TIME_PROPERTY and IlvPropertyHolderActivity.END_TIME_PROPERTY, or null.public IlvTimeInterval getTimeInterval()
getTimeInterval in interface IlvActivitypublic void setTimeInterval(IlvTimeInterval interval)
setTimeInterval in interface IlvActivityinterval - The start and end times.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),
propertyNameIterator()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),
propertyNameIterator()public Iterator<String> propertyNameIterator()
propertyNameIterator in interface IlvUserPropertyHolderpublic boolean isUserProperty(String name)
isUserProperty in interface IlvUserPropertyHoldername - The name of the property.true if the property is a user-defined property,
false otherwise.protected ActivityUserPropertyEvent firePropertyAboutToChange(String property, Object oldValue, Object newValue)
property - The name of the property being changed.oldValue - The property's value before the change.newValue - The property's value after the change.ActivityUserPropertyEventprotected void firePropertyChanged(String property, Object oldValue, Object newValue)
property - The name of the property that has changed.oldValue - The property's value before the change.newValue - The property's value after the change.ActivityUserPropertyEvent© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.