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

  • Method Details

    • getElementAt

      public T getElementAt(int pIdx)
    • getSize

      public int getSize()