jmri.jmrit.picker
Class PickListModel
java.lang.Object
javax.swing.table.AbstractTableModel
jmri.jmrit.picker.PickListModel
- All Implemented Interfaces:
- PropertyChangeListener, Serializable, EventListener, TableModel
- Direct Known Subclasses:
- OBlockTableModel
public abstract class PickListModel
- extends AbstractTableModel
- implements PropertyChangeListener
Table model for pick lists in IconAdder
- See Also:
- Serialized Form
|
Constructor Summary |
PickListModel()
Default constructor makes a table sorted by System Name. |
| Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_pickList
protected ArrayList<NamedBean> _pickList
_name
protected String _name
SNAME_COLUMN
public static final int SNAME_COLUMN
- See Also:
- Constant Field Values
UNAME_COLUMN
public static final int UNAME_COLUMN
- See Also:
- Constant Field Values
POSITION_COL
public static final int POSITION_COL
- See Also:
- Constant Field Values
rb
public static final ResourceBundle rb
PickListModel
public PickListModel()
- Default constructor makes a table sorted by System Name.
getNumInstances
public static int getNumInstances(String type)
init
public void init()
- Subclasses MUST call this method at creation
getBeanAt
public NamedBean getBeanAt(int index)
getIndexOf
public int getIndexOf(NamedBean bean)
getBeanList
public List<NamedBean> getBeanList()
getManager
public abstract Manager getManager()
getBySystemName
public abstract NamedBean getBySystemName(String name)
addBean
public abstract NamedBean addBean(String name)
- Return bean with name given in parameter. Create if needed and possible
addBean
public abstract NamedBean addBean(String sysName,
String userName)
canAddBean
public abstract boolean canAddBean()
- Return true if model can create beans
getColumnClass
public Class<?> getColumnClass(int c)
- Specified by:
getColumnClass in interface TableModel- Overrides:
getColumnClass in class AbstractTableModel
getColumnCount
public int getColumnCount()
- Specified by:
getColumnCount in interface TableModel
getColumnName
public String getColumnName(int c)
- Specified by:
getColumnName in interface TableModel- Overrides:
getColumnName in class AbstractTableModel
isCellEditable
public boolean isCellEditable(int r,
int c)
- Specified by:
isCellEditable in interface TableModel- Overrides:
isCellEditable in class AbstractTableModel
getRowCount
public int getRowCount()
- Specified by:
getRowCount in interface TableModel
getValueAt
public Object getValueAt(int r,
int c)
- Specified by:
getValueAt in interface TableModel
setValueAt
public void setValueAt(Object type,
int r,
int c)
- Specified by:
setValueAt in interface TableModel- Overrides:
setValueAt in class AbstractTableModel
getName
public String getName()
propertyChange
public void propertyChange(PropertyChangeEvent e)
- Specified by:
propertyChange in interface PropertyChangeListener
makePickTable
public JTable makePickTable()
- Make pick table, DND enabled
getTable
public JTable getTable()
dispose
public void dispose()
turnoutPickModelInstance
public static PickListModel turnoutPickModelInstance()
sensorPickModelInstance
public static PickListModel sensorPickModelInstance()
multiSensorPickModelInstance
public static PickListModel multiSensorPickModelInstance()
signalHeadPickModelInstance
public static PickListModel signalHeadPickModelInstance()
signalMastPickModelInstance
public static PickListModel signalMastPickModelInstance()
memoryPickModelInstance
public static PickListModel memoryPickModelInstance()
reporterPickModelInstance
public static PickListModel reporterPickModelInstance()
lightPickModelInstance
public static PickListModel lightPickModelInstance()
oBlockPickModelInstance
public static PickListModel oBlockPickModelInstance()
warrantPickModelInstance
public static PickListModel warrantPickModelInstance()
conditionalPickModelInstance
public static PickListModel conditionalPickModelInstance()
Copyright © 1997 - 2011 JMRI Community.
JMRI, DecoderPro, PanelPro, SoundPro, DispatcherPro and associated logos are our trademarks.
Additional information on copyright, trademarks and licenses is linked here.
Site hosted by: