public class CalendarTable extends Object implements Serializable
Constructor and Description |
---|
CalendarTable() |
Modifier and Type | Method and Description |
---|---|
void |
addWeek(int index,
Week vWeek) |
void |
addWeek(Week vWeek) |
Enumeration<Week> |
enumerateWeek()
Method enumerateWeek.
|
DaysOfWeek |
getDaysOfWeek()
Returns the value of field 'daysOfWeek'.
|
String |
getMonth()
Returns the value of field 'month'.
|
Week[] |
getWeek()
Method getWeek.Returns the contents of the collection in an Array.
|
Week |
getWeek(int index)
Method getWeek.
|
List<Week> |
getWeekCollection()
Method getWeekCollection.Returns a reference to 'weekList'.
|
int |
getWeekCount()
Method getWeekCount.
|
Iterator<Week> |
iterateWeek()
Method iterateWeek.
|
void |
removeAllWeek() |
boolean |
removeWeek(Week vWeek)
Method removeWeek.
|
Week |
removeWeekAt(int index)
Method removeWeekAt.
|
void |
setDaysOfWeek(DaysOfWeek daysOfWeek)
Sets the value of field 'daysOfWeek'.
|
void |
setMonth(String month)
Sets the value of field 'month'.
|
void |
setWeek(int index,
Week vWeek) |
void |
setWeek(List<Week> vWeekList)
Sets the value of 'weekList' by copying the given Vector.
|
void |
setWeek(Week[] vWeekArray) |
void |
setWeekCollection(List<Week> weekList)
Deprecated.
|
public void addWeek(Week vWeek) throws IndexOutOfBoundsException
vWeek
- IndexOutOfBoundsException
- if the index given is outside
the bounds of the collectionpublic void addWeek(int index, Week vWeek) throws IndexOutOfBoundsException
index
- vWeek
- IndexOutOfBoundsException
- if the index given is outside
the bounds of the collectionpublic Enumeration<Week> enumerateWeek()
public DaysOfWeek getDaysOfWeek()
public String getMonth()
public Week getWeek(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index given is outside
the bounds of the collectionpublic Week[] getWeek()
Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
public List<Week> getWeekCollection()
public int getWeekCount()
public Iterator<Week> iterateWeek()
public void removeAllWeek()
public boolean removeWeek(Week vWeek)
vWeek
- public Week removeWeekAt(int index)
index
- public void setDaysOfWeek(DaysOfWeek daysOfWeek)
daysOfWeek
- the value of field 'daysOfWeek'.public void setMonth(String month)
month
- the value of field 'month'.public void setWeek(int index, Week vWeek) throws IndexOutOfBoundsException
index
- vWeek
- IndexOutOfBoundsException
- if the index given is outside
the bounds of the collectionpublic void setWeek(Week[] vWeekArray)
vWeekArray
- public void setWeek(List<Week> vWeekList)
vWeekList
- the Vector to copy.Copyright © 2021. All rights reserved.