public class Transparency extends EnumProperty
Defines whether an event is visible to free/busy time searches or not. If an event does not have this property, the event should be considered opaque (visible) to searches.
Code sample (creating):
VEvent event = new VEvent(); Transparency transp = Transparency.opaque(); event.setTransparency(transp); event.setTransparency(true); //hidden from searches event.setTransparency(false); //visible to searches
Code sample (retrieving):
ICalendar ical = ...
for (VEvent event : ical.getEvents()){
Transparency transp = event.getTransparency();
if (transp.isOpaque()) {
...
} else if (transp.isTransparent()){
...
}
}
valueparameters| Constructor and Description |
|---|
Transparency(String value)
Creates a new transparency property.
|
| Modifier and Type | Method and Description |
|---|---|
protected Collection<String> |
getStandardValues(ICalVersion version)
Gets the list of acceptable values for this property.
|
boolean |
isOpaque()
Determines if the event is visible to free/busy time searches.
|
boolean |
isTransparent()
Determines if the event is hidden from free/busy time searches.
|
static Transparency |
opaque()
Creates a property that marks the event as being visible to free/busy
time searches.
|
static Transparency |
transparent()
Creates a property that marks the event as being hidden from free/busy
time searches.
|
getValueSupportedVersions, is, validategetValue, getValue, setValueaddParameter, getParameter, getParameters, getParameters, removeParameter, setParameter, setParameter, setParameters, validatepublic Transparency(String value)
value - the valuepublic static Transparency opaque()
public boolean isOpaque()
public static Transparency transparent()
public boolean isTransparent()
protected Collection<String> getStandardValues(ICalVersion version)
EnumPropertygetStandardValues in class EnumPropertyversion - the versionCopyright © 2013-2015 Michael Angstadt. All Rights Reserved.