|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.rice.cs.drjava.model.ClipboardHistoryModel
public class ClipboardHistoryModel
Model class for clipboard history.
| Field Summary | |
|---|---|
private java.util.LinkedList<java.lang.String> |
_history
The history of strings. |
private int |
_maxSize
Maximum size of the history. |
private static ClipboardHistoryModel |
ONLY
Singleton instance. |
| Constructor Summary | |
|---|---|
private |
ClipboardHistoryModel(int maxSize)
Create a new clipboard history model. |
| Method Summary | |
|---|---|
java.lang.String |
getMostRecent()
Return the most recent string, or null if nothing is in the history. |
java.util.List<java.lang.String> |
getStrings()
Return a copy of the history of strings. |
void |
put(java.lang.String s)
Add a string to the history. |
void |
resize(int maxSize)
Sets the maximum size. |
static ClipboardHistoryModel |
singleton()
Singleton accessor. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private int _maxSize
private java.util.LinkedList<java.lang.String> _history
private static ClipboardHistoryModel ONLY
| Constructor Detail |
|---|
private ClipboardHistoryModel(int maxSize)
maxSize - maximum size of history| Method Detail |
|---|
public static ClipboardHistoryModel singleton()
public void resize(int maxSize)
public void put(java.lang.String s)
public java.util.List<java.lang.String> getStrings()
public java.lang.String getMostRecent()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||