|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.Vector<Item>
com.frinika.sequencer.gui.selection.DragList
public class DragList
The drag list is a copy of the multiEventSelection. The copy is created by calling startDrag The after calling startDrag the caller can modifying the items in the drag list (e.g. the pith start tick etc). use the notification methods in this class to inform the GUI of changes. There are two types of observer. DragEventListener is interested in changes to the drag list. FeedbackItemListener is interested in a single representive item. Tpically an element of the drag list (defined as a parameter to start drag) Calling endDrag(false) will cause the original selected events to be replaced by the dragList. endDrag(true) will leave the originals and add the dragList to the part. You can call directly invoke notifyFeedbackListeners(Item it) if you wish to update the single item view listening to the DragList. (Any cleaner way to do this ?)
Field Summary |
---|
Fields inherited from class java.util.Vector |
---|
capacityIncrement, elementCount, elementData |
Fields inherited from class java.util.AbstractList |
---|
modCount |
Constructor Summary | |
---|---|
DragList(ProjectContainer project)
|
Method Summary | |
---|---|
void |
addDragEventListener(DragEventListener o)
|
void |
addFeedbackItemListener(FeedbackEventListener o)
|
void |
endDrag(boolean copy)
|
void |
endDragController()
|
void |
notifyDragEventListeners()
|
void |
notifyFeedbackItemListeners()
|
void |
notifyFeedbackItemListeners(Item ev)
|
void |
removeDragEventListener(DragEventListener o)
|
void |
removeFeedbackItemListener(FeedbackEventListener o)
|
void |
startDrag(Item dragItemRef)
Start a drag. |
Methods inherited from class java.util.Vector |
---|
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, iterator, lastElement, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DragList(ProjectContainer project)
Method Detail |
---|
public void endDrag(boolean copy)
public void endDragController()
public void startDrag(Item dragItemRef)
dragItem
- reference item for displaying feedback (the copy of this item in the draglist can be observered as it is being draged)
getDragReferenceItem();public void addDragEventListener(DragEventListener o)
public void removeDragEventListener(DragEventListener o)
public void notifyDragEventListeners()
public void addFeedbackItemListener(FeedbackEventListener o)
public void removeFeedbackItemListener(FeedbackEventListener o)
public void notifyFeedbackItemListeners(Item ev)
public void notifyFeedbackItemListeners()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |