public class Action extends EnumProperty
Defines the type of action to invoke when an alarm is triggered.
Code sample (creating):
Action action = Action.audio();
Code sample (retrieving):
ICalendar ical = ... for (VAlarm alarm : ical.getAlarms()){ Action action = alarm.getAction(); if (action.isAudio()) { ... } else if (action.isEmail()){ ... } else if (action.isDisplay()){ ... } }
value
parameters
Constructor and Description |
---|
Action(String value)
Creates an action property.
|
Modifier and Type | Method and Description |
---|---|
static Action |
audio()
Creates an "audio" action property.
|
static Action |
display()
Creates an "display" action property.
|
static Action |
email()
Creates an "email" action property.
|
protected Collection<String> |
getStandardValues(ICalVersion version)
Gets the list of acceptable values for this property.
|
protected Collection<ICalVersion> |
getValueSupportedVersions()
Gets the iCalendar versions that this property's value is supported in.
|
boolean |
isAudio()
Determines if this property is an "audio" action.
|
boolean |
isDisplay()
Determines if this property is an "display" action.
|
boolean |
isEmail()
Determines if this property is an "email" action.
|
boolean |
isProcedure()
Determines if this property is a "procedure" action (vCal 1.0 only).
|
static Action |
procedure()
Creates a "procedure" action property (vCal 1.0 only).
|
is, validate
getValue, getValue, setValue
addParameter, getParameter, getParameters, getParameters, removeParameter, setParameter, setParameter, setParameters, validate
public boolean isAudio()
public boolean isDisplay()
public boolean isEmail()
public static Action procedure()
public boolean isProcedure()
protected Collection<String> getStandardValues(ICalVersion version)
EnumProperty
getStandardValues
in class EnumProperty
version
- the versionprotected Collection<ICalVersion> getValueSupportedVersions()
EnumProperty
getValueSupportedVersions
in class EnumProperty
Copyright © 2013-2015 Michael Angstadt. All Rights Reserved.