|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.miginfocom.calendar.activity.ActivityLink
public class ActivityLink
Links to one or many Activitys. Not that the link is to the Activity objects and not to the IDs. So the link have to be recreated
if the activity is recreated with the same ID.
| Constructor Summary | |
|---|---|
ActivityLink(Activity[] sources,
Activity[] targets,
ActivityConstraint constr)
Constructor. |
|
ActivityLink(Activity[] sources,
Activity target,
ActivityConstraint constr)
Constructor. |
|
ActivityLink(Activity source,
Activity[] targets,
ActivityConstraint constr)
Constructor. |
|
ActivityLink(Activity source,
Activity target,
ActivityConstraint constr)
Constructor. |
|
| Method Summary | |
|---|---|
ActivityLink |
enforce()
Manually triggers the line to run the ActivityConstraint's enforce method. |
ActivityConstraint |
getConstraint()
Returns the backing constraint. |
boolean |
getEnabled()
Returns if the link is enabled or not. |
Activity[] |
getSources()
Returns the sources. |
Activity[] |
getTargets()
Returns the targets. |
boolean |
isValid()
If the current link is vaild and thus don't need to be enforced. |
void |
propertyChange(java.beans.PropertyChangeEvent e)
|
void |
setEnabled(boolean b)
Activates or deactivates the constraints on the linked objects. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ActivityLink(Activity source,
Activity target,
ActivityConstraint constr)
source - The source activitity. Not null.target - The target activitity. Not null.constr - The constraint to enforce from source to target. Not null.
public ActivityLink(Activity source,
Activity[] targets,
ActivityConstraint constr)
source - The source activitity. Not null.targets - The target activities. Not null.constr - The constraint to enforce from source to target. Not null.
public ActivityLink(Activity[] sources,
Activity target,
ActivityConstraint constr)
sources - The source activities. Not null.target - The target activitity. Not null.constr - The constraint to enforce from source to target. Not null.
public ActivityLink(Activity[] sources,
Activity[] targets,
ActivityConstraint constr)
sources - The source activities. Not null. A property change listener will be installed on the source, as a weak reference.targets - The target activities. Not null.constr - The constraint to enforce from source to target.| Method Detail |
|---|
public Activity[] getSources()
null and lingth >= 1.
null and lingth >= 1. Must not be changed!public Activity[] getTargets()
null and lingth >= 1.
null and lingth >= 1. Must not be changed!public ActivityConstraint getConstraint()
null.public ActivityLink enforce()
ActivityConstraint's enforce method.
This is done even if the link is not enabled.
this for chaining.setEnabled(boolean)public boolean isValid()
enforce()
does not have to put the link in a valid mode since the enforcement could be vetoed due to a number of reasons.
public void setEnabled(boolean b)
Enabled is default.
b - If enabled.public boolean getEnabled()
public void propertyChange(java.beans.PropertyChangeEvent e)
propertyChange in interface java.beans.PropertyChangeListener
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||