|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.norvelle.textcite.model.Clipboard
public class Clipboard
The Clipboard holds objects that have been cut from one or another data structure (the Category tree or the Book Outline tree) and have not yet been pasted into another location. Acts as a Stack (i.e. last-in. first-out)
Constructor Summary | |
---|---|
Clipboard()
|
Method Summary | |
---|---|
void |
addAdapter(ListModelChangeListener adapter)
|
void |
deleteItem(ClipboardHostable item)
Deletes the item from the stack, calling its "destroy" method in the process. |
void |
empty()
Deletes all items from the stack, destroying each one as it does so. |
java.lang.Object |
getElementAt(int pos)
Returns the ClipboardHostable item at the given position in the sorted list. |
int |
getPosInList(java.lang.Object item)
|
int |
getSize()
|
boolean |
hasMoreItems(java.lang.Class itemClass)
|
void |
moveDown(ClipboardHostable item)
Move the given item down in the stack, so that it will be available later for pasting |
void |
moveUp(ClipboardHostable item)
Move the given item up in the stack, so that it will be available earlier for pasting |
ClipboardHostable |
pop(java.lang.Class itemClass)
|
void |
push(ClipboardHostable item)
Put the given item on the top of the stack |
void |
recreateAdapterCollection()
After loading a new file, the AdapterCollection (which is marked as transient) will not be recreated during the deserialization process. |
void |
removeAdapter(ListModelChangeListener adapter)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Clipboard()
Method Detail |
---|
public void push(ClipboardHostable item)
public boolean hasMoreItems(java.lang.Class itemClass)
itemClass
- The Class to search for
public ClipboardHostable pop(java.lang.Class itemClass)
public void deleteItem(ClipboardHostable item)
public void empty()
public void moveUp(ClipboardHostable item)
public void moveDown(ClipboardHostable item)
public int getSize()
getSize
in interface ListModelAdaptee
public java.lang.Object getElementAt(int pos)
getElementAt
in interface ListModelAdaptee
ListModel.getElementAt(int)
public int getPosInList(java.lang.Object item)
getPosInList
in interface ListModelAdaptee
public void addAdapter(ListModelChangeListener adapter)
addAdapter
in interface ListModelAdaptee
public void removeAdapter(ListModelChangeListener adapter)
removeAdapter
in interface ListModelAdaptee
public void recreateAdapterCollection()
recreateAdapterCollection
in interface ListModelAdaptee
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |