|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gishur.core.BasicList | +--gishur.core.SimpleList | +--gishur.core.List | +--gishur.core.ClipList
A list type supporting clipping features. These features allow the list to be bounded temporarily into specified intervals.
List
,
ListItem
,
SimpleListItem
, Serialized FormFields inherited from class gishur.core.BasicList |
ANY_ACCESS, KEY, LISTITEM, NO_ACCESS, VALUE |
Fields inherited from interface gishur.core.ControlledCloneable |
DEEP, FLAT |
Constructor Summary | |
ClipList()
Empty constructor. |
|
ClipList(BasicList L)
Conversion constructor. |
|
ClipList(ListItem start,
int count)
Copy-constructor. |
|
ClipList(ListItem start,
ListItem end)
Copy-constructor. |
|
ClipList(java.lang.Object[] array,
int startindex,
int length)
Constructor receiving its arguments in an array. |
Method Summary | |
void |
clip(ListItem start,
ListItem end)
Bounds the list into the interval from start to end .
|
java.lang.Object |
clone(java.util.Hashtable h,
int level)
clones the entire list according to ControlledCloneable . |
void |
removeClip()
Removes the bounds created by clip() and restores the list's
former state. |
java.lang.String |
toString()
Overrides java.lang.Object.toString() . |
Methods inherited from class gishur.core.List |
add, findForValue, findForValue, insert |
Methods inherited from class gishur.core.SimpleList |
add, add, add, add, add, add, add, at, bottom, clear, clone, concat, contains, contains, convertKeysToArray, convertValuesToArray, copy, copy, cut, cut, cycle, cycle, cyclicRelative, cyclicRelativeValue, empty, find, find, find, findBigger, findBigger, findClass, findClass, findClass, findSmaller, findSmaller, first, firstKey, firstValue, getDistance, getIndex, getKeyAt, getListView, getValueAt, insert, insert, insert, insert, insert, insert, insert, insert, key, keys, last, lastKey, lastValue, length, max, min, move, move, move, next, next, paste, paste, peek, Peek, pop, Pop, popBoolean, PopBoolean, popDouble, PopDouble, popFloat, PopFloat, popInt, PopInt, popLong, PopLong, prev, prev, push, push, push, push, push, push, Push, relative, remove, remove, reverse, sort, sort, top, value, values |
Methods inherited from class gishur.core.BasicList |
add, add, allowAccess, copy, copy, copy, cut, enumerate, equals, find, findClass, findClosest, getIndex, getListItem, getListItemArray, getListString, move, reconnect, reconnect, remove, requestAccess, reverse, storeInArray, toString, unconnect |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ClipList()
public ClipList(BasicList L)
BasicList
L
into this ClipList
.L
- BasicList
to be converted into a ClipList
public ClipList(ListItem start, ListItem end)
start
- starting element of the sequence to be copiedend
- last element of the copied (partial) listpublic ClipList(ListItem start, int count)
start
- starting element of the partial list to be copiedcount
- length of the sequence to be copiedpublic ClipList(java.lang.Object[] array, int startindex, int length)
length
elements of array
following
startindex
.array
- an array containing the Objects to be stored in the liststartindex
- the index of the first element which shall be storedlength
- the number of elements to be storedMethod Detail |
public java.lang.String toString()
java.lang.Object.toString()
.toString
in class List
Object.toString()
public java.lang.Object clone(java.util.Hashtable h, int level)
ControlledCloneable
. That means,
all ListItems
are cloned and connected proper.clone
in class SimpleList
h
- Hashtable to indicate which objects are already clonedlevel
- indicates how deep the objects should be clonedInternalError
- - if the Object could not be cloned properlyControlledCloneable
public void clip(ListItem start, ListItem end)
start
to end
.
If start
or end
are not members of this list, a
ListException
will occur.start
- starting element of the clipping zoneend
- last element of the clipping zonepublic void removeClip()
clip()
and restores the list's
former state. If several clip()
-operations were performed, the
state before the first clipping is restored.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |