- 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 protectedRecentItemListModel(ListModel pListModel)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voidexecuteItem(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.ActiongetElementAt(int pIdx)intgetSize()protected StringgetText(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.
-
-