|
|||||||||
| Home >> All >> com >> eireneh >> bible >> book >> [ swing overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.eireneh.bible.book.swing
Class DriversListModel

java.lang.Objectjavax.swing.AbstractListModel
com.eireneh.bible.book.swing.DriversListModel
- All Implemented Interfaces:
- javax.swing.ListModel, java.io.Serializable
- Direct Known Subclasses:
- DriversComboBoxModel
- public class DriversListModel
- extends javax.swing.AbstractListModel
DriversListModel.
|
Distribution Licence: Project B is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2 as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. The License is available on the internet here, by writing to Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA, Or locally at the Licence link below. The copyright to this program is held by it's authors. |
- Version:
- D0.I0.T0
| Nested Class Summary | |
static class |
DriversListModel.BibleListCellRenderer
A custom list view that paints icons alongside the words. |
| Field Summary | |
protected com.eireneh.bible.book.BibleDriver[] |
drivers
The array of drivers |
protected static javax.swing.border.Border |
no_focus
border if we do not have focus |
private static javax.swing.ImageIcon |
small_icon
The small version icon |
| Fields inherited from class javax.swing.AbstractListModel |
listenerList |
| Constructor Summary | |
DriversListModel()
Basic constructor |
|
| Method Summary | |
com.eireneh.bible.book.BibleDriver |
getDriver(java.lang.Object test)
Given an item, work out the name of the Driver that it represents |
java.lang.String |
getDriverName(java.lang.Object test)
Given an item, work out the name of the Bible that it represents |
java.lang.Object |
getElementAt(int index)
Returns the value at the specified index. |
int |
getIndexOf(java.lang.Object test)
Returns the index-position of the specified object in the list. |
static javax.swing.ListCellRenderer |
getListCellRenderer()
Create a BibleListCellRenderer |
int |
getSize()
Returns the length of the list. |
| 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 |
| Field Detail |
drivers
protected com.eireneh.bible.book.BibleDriver[] drivers
- The array of drivers
small_icon
private static final javax.swing.ImageIcon small_icon
- The small version icon
no_focus
protected static javax.swing.border.Border no_focus
- border if we do not have focus
| Constructor Detail |
DriversListModel
public DriversListModel()
- Basic constructor
| Method Detail |
getSize
public int getSize()
- Returns the length of the list.
getElementAt
public java.lang.Object getElementAt(int index)
- Returns the value at the specified index.
getDriverName
public java.lang.String getDriverName(java.lang.Object test)
- Given an item, work out the name of the Bible that it represents
getDriver
public com.eireneh.bible.book.BibleDriver getDriver(java.lang.Object test)
- Given an item, work out the name of the Driver that it represents
getIndexOf
public int getIndexOf(java.lang.Object test)
- Returns the index-position of the specified object in the list.
getListCellRenderer
public static javax.swing.ListCellRenderer getListCellRenderer()
- Create a BibleListCellRenderer
|
|||||||||
| Home >> All >> com >> eireneh >> bible >> book >> [ swing overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC