- java.lang.Object
-
- javax.swing.AbstractListModel<Action>
-
- com.iamsoft.util.ui.swing.RecentItemListModel
-
- All Implemented Interfaces:
Serializable
,ListModel<Action>
public abstract class RecentItemListModel extends AbstractListModel<Action>
List model of actions. Decorates some manually added actions with names.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class javax.swing.AbstractListModel
listenerList
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
RecentItemListModel(ListModel pListModel)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
executeItem(int pIdx)
protected Map<String,?>
getActionProperties(Object pListModelItem, int pIdx)
Set new action properties or reset existing action's properties after a change in index or something else.Action
getElementAt(int pIdx)
int
getSize()
protected String
getText(Object pListModelItem)
-
Methods inherited from class javax.swing.AbstractListModel
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
-
-
-
-
Constructor Detail
-
RecentItemListModel
protected RecentItemListModel(ListModel pListModel)
-
-
Method Detail
-
getElementAt
public Action getElementAt(int pIdx)
-
getSize
public int getSize()
-
getActionProperties
protected Map<String,?> getActionProperties(Object pListModelItem, int pIdx)
Set new action properties or reset existing action's properties after a change in index or something else.- Parameters:
pListModelItem
- Item from decorated list model.pIdx
- Index of item in decorated list model.
-
executeItem
protected abstract void executeItem(int pIdx)
- Parameters:
pIdx
- Index of item within decorated list.
-
-