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()
Gets the list of acceptable values for this property.
|
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.
|
is, validate
getValue, setValue
addParameter, getParameter, getParameters, getParameters, removeParameter, setParameter, setParameter, setParameters, validate
public boolean isAudio()
public boolean isDisplay()
public boolean isEmail()
protected Collection<String> getStandardValues()
EnumProperty
getStandardValues
in class EnumProperty
Copyright © 2013-2014 Michael Angstadt. All Rights Reserved.