|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweka.gui.GenericObjectEditorHistory
public class GenericObjectEditorHistory
A helper class for maintaining a history of objects selected in the GOE.
Nested Class Summary | |
---|---|
static class |
GenericObjectEditorHistory.HistorySelectionEvent
Event that gets sent when a history item gets selected. |
static interface |
GenericObjectEditorHistory.HistorySelectionListener
Interface for classes that listen to selections of history items. |
Field Summary | |
---|---|
static int |
MAX_HISTORY_COUNT
the maximum entries in the history. |
static int |
MAX_HISTORY_LENGTH
the maximum length of a caption in the history. |
static int |
MAX_LINE_LENGTH
the menu max line length. |
Constructor Summary | |
---|---|
GenericObjectEditorHistory()
Initializes the history. |
Method Summary | |
---|---|
void |
add(Object obj)
Adds the object to the history. |
void |
clear()
Clears the history. |
void |
customizePopupMenu(JPopupMenu menu,
Object current,
GenericObjectEditorHistory.HistorySelectionListener listener)
Adds a menu item with the history to the popup menu. |
Vector |
getHistory()
Returns the current history. |
int |
size()
Returns the number of entries in the history. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int MAX_HISTORY_COUNT
public static final int MAX_HISTORY_LENGTH
public static final int MAX_LINE_LENGTH
Constructor Detail |
---|
public GenericObjectEditorHistory()
Method Detail |
---|
public void clear()
public void add(Object obj)
obj
- the object to addpublic int size()
public Vector getHistory()
public void customizePopupMenu(JPopupMenu menu, Object current, GenericObjectEditorHistory.HistorySelectionListener listener)
menu
- the menu to add the history tocurrent
- the current objectlistener
- the listener to attach to the menu items' ActionListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |