Class JListHpr.SampleModel

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

    public static class JListHpr.SampleModel
    extends javax.swing.AbstractListModel
    A simple sample table model so Ribs app can show sample table data.
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class javax.swing.AbstractListModel

        listenerList
    • Constructor Summary

      Constructors 
      Constructor Description
      SampleModel()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object getElementAt​(int anIndex)
      Returns the object for given index.
      int getSize()
      Returns the number of items.
      • Methods inherited from class javax.swing.AbstractListModel

        addListDataListener, fireContentsChanged, 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

      • SampleModel

        public SampleModel()
    • Method Detail

      • getSize

        public int getSize()
        Returns the number of items.
      • getElementAt

        public java.lang.Object getElementAt​(int anIndex)
        Returns the object for given index.