Class RecentItemListModel

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:
  • Constructor Details

    • RecentItemListModel

      protected RecentItemListModel(ListModel pListModel)
  • Method Details

    • 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.
    • getText

      protected String getText(Object pListModelItem)
    • executeItem

      protected abstract void executeItem(int pIdx)
      Parameters:
      pIdx - Index of item within decorated list.