public class Priority extends IntegerProperty
Defines the priority of an event or to-do task.
Code sample:
VEvent event = new VEvent(); event.setPriority(1); //highest event.setPriority(9); //lowest
value
parameters
Constructor and Description |
---|
Priority(Integer priority)
Creates a priority property.
|
Priority(Priority original)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
Priority |
copy()
Creates a copy of this property object.
|
boolean |
isHigh()
Determines if this priority is considered "high" priority.
|
boolean |
isLow()
Determines if this priority is considered "low" priority.
|
boolean |
isMedium()
Determines if this priority is considered "medium" priority.
|
boolean |
isUndefined()
Determines if this priority has an "undefined" value.
|
String |
toCuaPriority()
Converts this priority to its two-character CUA code.
|
equals, getValue, getValue, hashCode, setValue, toStringValues, validate, valueEquals, valueHashCode
addParameter, getParameter, getParameters, getParameters, removeParameter, setParameter, setParameter, setParameters, toString, validate
public Priority(Integer priority)
priority
- the priority ("0" is undefined, "1" is the highest, "9"
is the lowest)public boolean isHigh()
public boolean isMedium()
public boolean isLow()
public boolean isUndefined()
public String toCuaPriority()
public Priority copy()
ICalProperty
Creates 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 ICalProperty
Copyright © 2013–2024 Michael Angstadt. All rights reserved.