|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.pivot.wtk.content.CalendarDateSpinnerData
public class CalendarDateSpinnerData
Spinner data model that presents a bounded list of calendar dates.
This is a lightweight class that spoofs the actual list data by using an internal calendar instance from which CalendarDate instances are created on demand.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.apache.pivot.collections.List |
|---|
org.apache.pivot.collections.List.ItemIterator<T>, org.apache.pivot.collections.List.ListListenerList<T> |
| Nested classes/interfaces inherited from interface org.apache.pivot.collections.Sequence |
|---|
org.apache.pivot.collections.Sequence.Tree<T> |
| Constructor Summary | |
|---|---|
CalendarDateSpinnerData()
Creates a new CalendarDateSpinnerData bounded from 1900-01-01 to 2099-12-31. |
|
CalendarDateSpinnerData(org.apache.pivot.util.CalendarDate lowerBound,
org.apache.pivot.util.CalendarDate upperBound)
Creates a new CalendarDateSpinnerData bounded by the specified calendar dates (inclusive). |
|
| Method Summary | |
|---|---|
int |
add(org.apache.pivot.util.CalendarDate item)
Throws UnsupportedOperationException. |
void |
clear()
Throws UnsupportedOperationException. |
org.apache.pivot.util.CalendarDate |
get(int index)
Gets the calendar date at the specified index. |
Comparator<org.apache.pivot.util.CalendarDate> |
getComparator()
Gets the comparator for this list, which is guaranteed to always be null. |
int |
getLength()
Gets the number of entries in this list. |
org.apache.pivot.util.ListenerList<org.apache.pivot.collections.ListListener<org.apache.pivot.util.CalendarDate>> |
getListListeners()
|
int |
indexOf(org.apache.pivot.util.CalendarDate item)
|
void |
insert(org.apache.pivot.util.CalendarDate item,
int index)
Throws UnsupportedOperationException. |
boolean |
isEmpty()
|
Iterator<org.apache.pivot.util.CalendarDate> |
iterator()
|
int |
remove(org.apache.pivot.util.CalendarDate item)
Throws UnsupportedOperationException. |
org.apache.pivot.collections.Sequence<org.apache.pivot.util.CalendarDate> |
remove(int index,
int count)
Throws UnsupportedOperationException. |
void |
setComparator(Comparator<org.apache.pivot.util.CalendarDate> comparator)
Throws UnsupportedOperationException. |
org.apache.pivot.util.CalendarDate |
update(int index,
org.apache.pivot.util.CalendarDate item)
Throws UnsupportedOperationException. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CalendarDateSpinnerData()
public CalendarDateSpinnerData(org.apache.pivot.util.CalendarDate lowerBound,
org.apache.pivot.util.CalendarDate upperBound)
lowerBound - The earliest date to include in this spinner data.upperBound - The latest date to include in this spinner data.| Method Detail |
|---|
public int add(org.apache.pivot.util.CalendarDate item)
add in interface org.apache.pivot.collections.List<org.apache.pivot.util.CalendarDate>add in interface org.apache.pivot.collections.Sequence<org.apache.pivot.util.CalendarDate>
public void insert(org.apache.pivot.util.CalendarDate item,
int index)
insert in interface org.apache.pivot.collections.List<org.apache.pivot.util.CalendarDate>insert in interface org.apache.pivot.collections.Sequence<org.apache.pivot.util.CalendarDate>
public org.apache.pivot.util.CalendarDate update(int index,
org.apache.pivot.util.CalendarDate item)
update in interface org.apache.pivot.collections.List<org.apache.pivot.util.CalendarDate>update in interface org.apache.pivot.collections.Sequence<org.apache.pivot.util.CalendarDate>public int remove(org.apache.pivot.util.CalendarDate item)
remove in interface org.apache.pivot.collections.Sequence<org.apache.pivot.util.CalendarDate>
public org.apache.pivot.collections.Sequence<org.apache.pivot.util.CalendarDate> remove(int index,
int count)
remove in interface org.apache.pivot.collections.List<org.apache.pivot.util.CalendarDate>remove in interface org.apache.pivot.collections.Sequence<org.apache.pivot.util.CalendarDate>public org.apache.pivot.util.CalendarDate get(int index)
get in interface org.apache.pivot.collections.Sequence<org.apache.pivot.util.CalendarDate>index - The index of the calendar date to retrieve.public int indexOf(org.apache.pivot.util.CalendarDate item)
indexOf in interface org.apache.pivot.collections.Sequence<org.apache.pivot.util.CalendarDate>public void clear()
clear in interface org.apache.pivot.collections.Collection<org.apache.pivot.util.CalendarDate>clear in interface org.apache.pivot.collections.List<org.apache.pivot.util.CalendarDate>public boolean isEmpty()
isEmpty in interface org.apache.pivot.collections.Collection<org.apache.pivot.util.CalendarDate>public int getLength()
getLength in interface org.apache.pivot.collections.List<org.apache.pivot.util.CalendarDate>getLength in interface org.apache.pivot.collections.Sequence<org.apache.pivot.util.CalendarDate>public Comparator<org.apache.pivot.util.CalendarDate> getComparator()
getComparator in interface org.apache.pivot.collections.Collection<org.apache.pivot.util.CalendarDate>public void setComparator(Comparator<org.apache.pivot.util.CalendarDate> comparator)
setComparator in interface org.apache.pivot.collections.Collection<org.apache.pivot.util.CalendarDate>setComparator in interface org.apache.pivot.collections.List<org.apache.pivot.util.CalendarDate>public Iterator<org.apache.pivot.util.CalendarDate> iterator()
iterator in interface Iterable<org.apache.pivot.util.CalendarDate>public org.apache.pivot.util.ListenerList<org.apache.pivot.collections.ListListener<org.apache.pivot.util.CalendarDate>> getListListeners()
getListListeners in interface org.apache.pivot.collections.List<org.apache.pivot.util.CalendarDate>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||