|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbiweekly.property.ICalProperty
biweekly.property.Trigger
public class Trigger
Defines when an alarm will be triggered.
Examples:
//15 minutes before the start time Duration duration = Duration.builder().prior(true).minutes(15).build(); Trigger trigger = new Trigger(duration, Related.START); VAlarm alarm = VAlarm.display(trigger, "Meeting in 15 minutes");
Field Summary |
---|
Fields inherited from class biweekly.property.ICalProperty |
---|
parameters |
Constructor Summary | |
---|---|
Trigger(Date date)
Creates a trigger property. |
|
Trigger(Duration duration,
Related related)
Creates a trigger property. |
Method Summary | |
---|---|
Date |
getDate()
Gets the date-time that the alarm will trigger. |
Duration |
getDuration()
Gets the relative time at which the alarm will trigger. |
Related |
getRelated()
Gets the date-time field that the duration is relative to. |
void |
setDate(Date date)
Sets the date-time that the alarm will trigger. |
void |
setDuration(Duration duration,
Related related)
Sets a relative time at which the alarm will trigger. |
void |
setRelated(Related related)
Sets the date-time field that the duration is relative to. |
protected void |
validate(List<ICalComponent> components,
List<String> warnings)
Checks the property for data consistency problems or deviations from the spec. |
Methods inherited from class biweekly.property.ICalProperty |
---|
addParameter, getParameter, getParameters, getParameters, removeParameter, setParameter, setParameter, setParameters, validate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Trigger(Duration duration, Related related)
duration
- the relative timerelated
- the date-time field that the duration is relative topublic Trigger(Date date)
date
- the date-time the alarm will trigger.Method Detail |
---|
public Duration getDuration()
public void setDuration(Duration duration, Related related)
duration
- the relative timerelated
- the date-time field that the duration is relative topublic Date getDate()
public void setDate(Date date)
date
- the date-time the alarm will trigger.public Related getRelated()
public void setRelated(Related related)
related
- the field or null to removeprotected void validate(List<ICalComponent> components, List<String> warnings)
ICalProperty
validate
in class ICalProperty
components
- the hierarchy of components that the property belongs
towarnings
- the list to add the warnings to
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |