Package com.ribs

Class RBListBinder.BinderListModel

  • All Implemented Interfaces:
    java.io.Serializable, javax.swing.ListModel
    Enclosing class:
    RBListBinder

    public static class RBListBinder.BinderListModel
    extends javax.swing.AbstractListModel
    List Model implementation for lists using bind key.
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class javax.swing.AbstractListModel

        listenerList
    • Constructor Summary

      Constructors 
      Constructor Description
      BinderListModel​(RBListBinder aBinder, javax.swing.JList aList)
      Creates a new binder list model for given list.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void fireContentsChanged​(java.lang.Object aSource, int index0, int index1)
      Overrides AbstractListModel implementation to make public.
      java.lang.Object getElementAt​(int anIndex)
      List model method - returns the key value for the list object at given index.
      int getSize()
      List model method - returns size of binder's list.
      • Methods inherited from class javax.swing.AbstractListModel

        addListDataListener, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BinderListModel

        public BinderListModel​(RBListBinder aBinder,
                               javax.swing.JList aList)
        Creates a new binder list model for given list.
    • Method Detail

      • fireContentsChanged

        public void fireContentsChanged​(java.lang.Object aSource,
                                        int index0,
                                        int index1)
        Overrides AbstractListModel implementation to make public.
        Overrides:
        fireContentsChanged in class javax.swing.AbstractListModel
      • getSize

        public int getSize()
        List model method - returns size of binder's list.
      • getElementAt

        public java.lang.Object getElementAt​(int anIndex)
        List model method - returns the key value for the list object at given index.