|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jgoodies.binding.beans.Model
com.jgoodies.uifextras.history.History<E>
E
- the type of the elements in this historypublic class History<E>
A class that provides the state and behavior for a back-next navigation.
Field Summary | |
---|---|
static String |
ACTION_GO_BACK
|
static String |
ACTION_GO_HOME
|
static String |
ACTION_GO_NEXT
|
static String |
PROPERTYNAME_HOME
|
static String |
PROPERTYNAME_SELECTION
|
Constructor Summary | |
---|---|
History(int capacity)
Constructs a History with the given maximum capacity. |
|
History(int capacity,
String goBackActionName,
String goNextActionName,
String goHomeActionName)
Constructs a History with the given maximum capacity. |
Method Summary | |
---|---|
protected String |
createToolTip(E element)
Creates and returns a tool tip for the given object; clips the string's center, if it exceeds a maximum length. |
JPopupMenu |
getBackPopupMenu()
|
Action |
getGoBackAction()
|
Action |
getGoHomeAction()
|
Action |
getGoNextAction()
|
E |
getHome()
|
JPopupMenu |
getNextPopupMenu()
|
E |
getSelection()
|
void |
goBack()
|
void |
goHome()
|
void |
goNext()
|
void |
removeAll(E element)
Removes all occurrences of element in this history. |
void |
removeAndGoBack(E element)
Removes all occurrences of element and goes back
to the previous element. |
void |
reset()
Resets the history: clears the list, and disables all actions. |
void |
setHome(E newHome)
Sets the given element as new home element. |
void |
setSelection(E newSelection)
Sets the given element as new selection. |
Methods inherited from class com.jgoodies.binding.beans.Model |
---|
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, equals, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, fireMultiplePropertiesChanged, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String PROPERTYNAME_HOME
public static final String PROPERTYNAME_SELECTION
public static final String ACTION_GO_BACK
public static final String ACTION_GO_NEXT
public static final String ACTION_GO_HOME
Constructor Detail |
---|
public History(int capacity)
capacity
- the maximum number of elements in the List.public History(int capacity, String goBackActionName, String goNextActionName, String goHomeActionName)
capacity
- the maximum number of elements in the List.goBackActionName
- the resource key for the go-back ActiongoNextActionName
- the resource key for the go-next ActiongoHomeActionName
- the resource key for the go-home ActionMethod Detail |
---|
public E getHome()
setHome(Object)
public void setHome(E newHome)
newHome
- the element to become the new home elementpublic E getSelection()
public void setSelection(E newSelection)
newSelection
- the object to be set as new selectionpublic void removeAll(E element)
element
in this history.
element
- the element to be removedpublic void removeAndGoBack(E element)
element
and goes back
to the previous element.
element
- the element to be removedpublic void reset()
@Action(name="history.goBack") public void goBack()
@Action(name="history.goNext") public void goNext()
@Action(name="history.goHome") public void goHome()
public Action getGoBackAction()
goBack()
operationpublic Action getGoNextAction()
goNext()
operationpublic Action getGoHomeAction()
goHome()
operationpublic JPopupMenu getBackPopupMenu()
public JPopupMenu getNextPopupMenu()
protected String createToolTip(E element)
element
- the object to extract the tooltip text from
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |