Module com.iamsoft.util.ui
Package com.iamsoft.util.ui.swing
Class FocusListModel<T extends Component>
- java.lang.Object
-
- javax.swing.AbstractListModel<T>
-
- com.iamsoft.util.ui.swing.FocusListModel<T>
-
- Type Parameters:
T
- Type of element stored in this model.
- All Implemented Interfaces:
Serializable
,ListModel<T>
public class FocusListModel<T extends Component> extends AbstractListModel<T>
Maintains an ordered list of focused elements. List is ordered by last focus. When focus is transferred, a list data changed event is fired, spanning from 0 to the original index of the new focus owner. Thus all 'add' and 'remove' events correspond to a true addition/removal.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class javax.swing.AbstractListModel
listenerList
-
-
Constructor Summary
Constructors Constructor Description FocusListModel(Collection<Component> pComponents)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
getElementAt(int pIdx)
int
getSize()
-
Methods inherited from class javax.swing.AbstractListModel
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
-
-
-
-
Constructor Detail
-
FocusListModel
public FocusListModel(Collection<Component> pComponents)
-
-
Method Detail
-
getElementAt
public T getElementAt(int pIdx)
-
getSize
public int getSize()
-
-