public class DisplayAlarm extends VCalAlarmProperty
VAlarm component be used to created alarms.VAlarm.display(biweekly.property.Trigger, java.lang.String)repeat, snooze, startparameters| Constructor and Description |
|---|
DisplayAlarm(DisplayAlarm original)
Copy constructor.
|
DisplayAlarm(String text) |
| Modifier and Type | Method and Description |
|---|---|
DisplayAlarm |
copy()
Creates a copy of this property object.
|
boolean |
equals(Object obj) |
String |
getText()
Gets the text to display when the alarm is triggered.
|
int |
hashCode() |
void |
setText(String text)
Sets the text to display when the alarm is triggered.
|
protected Map<String,Object> |
toStringValues()
Gets string representations of the class's fields for the
ICalProperty.toString() method. |
getRepeat, getSnooze, getStart, setRepeat, setSnooze, setStartaddParameter, getParameter, getParameters, getParameters, removeParameter, setParameter, setParameter, setParameters, toString, validate, validatepublic DisplayAlarm(String text)
public DisplayAlarm(DisplayAlarm original)
original - the property to make a copy ofpublic String getText()
public void setText(String text)
text - the display textprotected Map<String,Object> toStringValues()
ICalProperty
Gets string representations of the class's fields for the
ICalProperty.toString() method.
Meant to be overridden by child classes. The default implementation returns an empty map.
toStringValues in class VCalAlarmPropertypublic DisplayAlarm copy()
ICalPropertyCreates a copy of this property object.
The default implementation of this method uses reflection to look for a copy constructor. Child classes SHOULD override this method to avoid the performance overhead involved in using reflection.
The child class's copy constructor, if present, MUST invoke the
ICalProperty.ICalProperty(ICalProperty) super constructor to ensure that the
parameters are also copied.
This method MUST be overridden by the child class if the child class does
not have a copy constructor. Otherwise, an
UnsupportedOperationException will be thrown when an attempt is
made to copy the property (such as in the
ICalendar class's copy constructor
).
copy in class ICalPropertypublic int hashCode()
hashCode in class VCalAlarmPropertypublic boolean equals(Object obj)
equals in class VCalAlarmPropertyCopyright © 2013-2016 Michael Angstadt. All Rights Reserved.