public class PercentComplete extends IntegerProperty
Defines a to-do task's level of completion.
Code sample:
VTodo todo = new VTodo(); PercentComplete percentComplete = new PercentComplete(50); //50% todo.setPercentComplete(percentComplete);
valueparameters| Constructor and Description |
|---|
PercentComplete(Integer percent)
Creates a percent complete property.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
validate(List<ICalComponent> components,
List<Warning> warnings)
Checks the property for data consistency problems or deviations from the
spec.
|
getValue, setValueaddParameter, getParameter, getParameters, getParameters, removeParameter, setParameter, setParameter, setParameters, validatepublic PercentComplete(Integer percent)
percent - the percentage (e.g. "50" for 50%)protected void validate(List<ICalComponent> components, List<Warning> warnings)
ICalPropertyvalidate in class ValuedProperty<Integer>components - the hierarchy of components that the property belongs
towarnings - the list to add the warnings toCopyright © 2013-2014 Michael Angstadt. All Rights Reserved.