- All Superinterfaces:
VElement
- All Known Subinterfaces:
PropAlarmTrigger<T>
,PropAltText<T>
,PropAttachment<T>
,PropAttendee<U>
,PropCalendarUser<T>
,PropDateTime<T>
,PropFreeBusy<T>
,PropLanguage<T>
,PropRecurrenceID<T>
,PropRelationship<T>
,VAttendee<T>
,VComponent
,VDateTimeEnd<T>
,VDescribable<T>
,VDescribable2<T>
,VDuration<T>
,VLastModified<T>
,VProperty<T>
,VRepeatable<T>
- All Known Implementing Classes:
Action
,Attachment
,Attendee
,CalendarScale
,Categories
,Classification
,Comment
,Contact
,DateTimeCompleted
,DateTimeCreated
,DateTimeDue
,DateTimeEnd
,DateTimeStamp
,DateTimeStart
,DaylightSavingTime
,Description
,DurationProp
,ExceptionDates
,FreeBusyTime
,GeographicPosition
,LastModified
,Location
,Method
,NonStandardComponent
,NonStandardProperty
,Organizer
,PercentComplete
,Priority
,ProductIdentifier
,PropBaseAltText
,PropBaseDateTime
,PropBaseLanguage
,PropBaseUTC
,PropertyBaseAttendee
,PropertyBaseCalendarUser
,PropertyBaseRecurrence
,PropertyBaseZoneOffset
,RecurrenceDates
,RecurrenceId
,RecurrenceRule
,RecurrenceRuleValue
,RelatedTo
,RepeatCount
,RequestStatus
,Resources
,Sequence
,StandardOrDaylight
,StandardTime
,Status
,Summary
,TimeTransparency
,TimeZoneIdentifier
,TimeZoneName
,TimeZoneOffsetFrom
,TimeZoneOffsetTo
,TimeZoneURL
,Trigger
,UniformResourceLocator
,UniqueIdentifier
,UnknownProperty
,VAlarm
,VCalendar
,VCommon
,VComponentBase
,VDescribableBase
,VDisplayable
,Version
,VEvent
,VFreeBusy
,VJournal
,VLocatable
,VParentBase
,VPersonal
,VPrimary
,VPropertyBase
,VRepeatableBase
,VTimeZone
,VTodo
Parent calendar components (e.g. VCALENDAR, VEVENT, SUMMARY, RRULE value). Parent components can have children.
Note: Implementation of adding children for different parent types is not exposed, but rather handled internally when a calendar element is set or changed.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
Deprecated.void
Add child element to parent.Returns unmodifiable list ofVChild
elements.void
orderChild
(int index, VChild child) Insert the child at the index in the ordered listvoid
orderChild
(VChild child) Add the child to the end of the ordered list Should only be used for list-based children that are added by accessing the list.void
orderChild
(VChild oldChild, VChild newChild) Replace the oldChild with the newChild in the ordered listboolean
removeChild
(int index) boolean
removeChild
(VChild child) Remove child from parent.boolean
replaceChild
(int index, VChild child) boolean
replaceChild
(VChild oldChild, VChild newChild)
-
Method Details
-
childrenUnmodifiable
Returns unmodifiable list of
VChild
elements.- Returns:
- unmodifiable list of children
-
addChild
Deprecated.Add child element to parent by parsing content text- Parameters:
child
- element to add to ordered list
-
addChild
Add child element to parent.- Parameters:
child
- element to add to ordered list
-
addChild
- Parameters:
index
- index where child element is to be putchild
- element to add to ordered list
-
removeChild
Remove child from parent.- Parameters:
child
- element to add to ordered list- Returns:
- true is success, false if failure
-
replaceChild
- Parameters:
index
- index of old child element to be removedchild
- new child element to put at index- Returns:
-
replaceChild
- Parameters:
oldChild
- old child element to be removednewChild
- new child element to put at index where oldChild was- Returns:
-
removeChild
boolean removeChild(int index) - Parameters:
index
- index of child element to be removed- Returns:
- true is success, false if failure
-
orderChild
Add the child to the end of the ordered list Should only be used for list-based children that are added by accessing the list. A better alternative would be to use theaddChild(java.lang.String)
method which automatically adds a child and orders it. -
orderChild
Insert the child at the index in the ordered list -
orderChild
Replace the oldChild with the newChild in the ordered list
-