public final class Trigger<OWNER extends PoshElement> extends AbstractList<Sense>
modCount| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
Sense newSense)
Insert sense at specified index and owner will emit new child.
|
boolean |
add(Sense sense)
Add sense to this trigger and emit news about addition.
|
Sense |
get(int index)
Get sense stored at indexed position in the trigger.
|
void |
moveSense(int newIndex,
Sense movedSense)
Move sense so that after move, it is at newIndex + emit event.
|
Sense |
remove(int index)
Remove sense from specified position and the removed sense will emit node
deleted.
|
int |
size()
How many senses are there in the trigger
|
String |
toString()
Serialize the trigger as serialization of its senses surrounded by
braces.
|
addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, set, subListaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArraypublic String toString()
toString in class AbstractCollection<Sense>public boolean add(Sense sense)
add in interface Collection<Sense>add in interface List<Sense>add in class AbstractList<Sense>sense - sense to be added.public Sense get(int index)
public void add(int index,
Sense newSense)
public Sense remove(int index)
public int size()
size in interface Collection<Sense>size in interface List<Sense>size in class AbstractCollection<Sense>public void moveSense(int newIndex,
Sense movedSense)
newIndex - New index of the sense. Once move is done, sense will be
at this index and the rest will somehow manage.movedSense - Sense that is being moved from its original position to
the @index. The sense must be part of this trigger.Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.