|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.miginfocom.calendar.activity.ActivityDateRangeConstraint
public class ActivityDateRangeConstraint
Constrains the target activity's start or end date/time to the source's start or end date/time.
| Constructor Summary | |
|---|---|
ActivityDateRangeConstraint(boolean sourceStart,
boolean targetStart)
Constructor. |
|
| Method Summary | |
|---|---|
void |
enforce(Activity[] sources,
Activity[] targets)
Do something to the target with the source as a reference. |
boolean |
getSourceStart()
Returns true if the source's start date/time is linked. |
boolean |
getTargetStart()
Returns true the target's start date/time is linked. |
boolean |
isValid(Activity[] sources,
Activity[] targets)
If the current constraint is vaild and thus don't need to be enforced. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ActivityDateRangeConstraint(boolean sourceStart,
boolean targetStart)
sourceStart - If true the source's start date/time is linked. If many sources the ealiest one
will be used if start and latest for end.targetStart - If true the target's start date/time is linked.| Method Detail |
|---|
public void enforce(Activity[] sources,
Activity[] targets)
throws java.beans.PropertyVetoException
ActivityConstrainttarget with the source as a reference.
enforce in interface ActivityConstraintsources - The sources. NOTE! Might be null to accomodate for contraints that doesn't
need a source.targets - The target. Never null.
java.beans.PropertyVetoException - If the property couldn't be set on target for some reason.
public boolean isValid(Activity[] sources,
Activity[] targets)
ActivityConstraintActivityConstraint.enforce(Activity[], Activity[])
does not have to put the constraint in a valid mode since the enforcement could be vetoed due to a number of reasons.
isValid in interface ActivityConstraintsources - The sources. NOTE! Might be null to accomodate for contraints that doesn't
need a source.targets - The target. Never null.
public boolean getSourceStart()
true if the source's start date/time is linked. If many sources the ealiest one
will be used if start and latest for end.
true if the source's start date/time is linked.public boolean getTargetStart()
true the target's start date/time is linked.
true the target's start date/time is linked.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||