Skip navigation links 
 
oracle.javatools.ui.combo
Class CheckComboModel
java.lang.Object
  
javax.swing.table.AbstractTableModel
      
javax.swing.table.DefaultTableModel
          
oracle.javatools.ui.combo.CheckComboModel
- All Implemented Interfaces:
 
- java.io.Serializable, javax.swing.ComboBoxModel, javax.swing.ListModel, javax.swing.table.TableModel
 
- 
public class CheckComboModel
 
- extends javax.swing.table.DefaultTableModel
 
- implements javax.swing.ComboBoxModel
 
A model for use in a JCheckCombo. The model is a table model with the a column representing the checked status of items, and a second column for the description of the each item.
- See Also:
 
- Serialized Form
 
 
| Field Summary | 
static int | 
COLUMN_ITEM 
          A Constant for the index of the table column representing the item description data | 
static int | 
COLUMN_SEL 
          A Constant for the index of the table column representing the selection data | 
 
| Fields inherited from class javax.swing.table.DefaultTableModel | 
columnIdentifiers, dataVector | 
 
| Fields inherited from class javax.swing.table.AbstractTableModel | 
listenerList | 
  
 
| Constructor Summary | 
CheckComboModel(javax.swing.ListModel listModel) 
          Creates a CheckComboModel with the given list of items and nothing selected | 
CheckComboModel(javax.swing.ListModel listModel, javax.swing.ListSelectionModel selModel) 
          Creates a CheckComboModel with the given list of items and a list of their corresponding selectedness. | 
  
 
 
| Methods inherited from class javax.swing.table.DefaultTableModel | 
addColumn, addColumn, addColumn, addRow, addRow, convertToVector, convertToVector, getColumnName, getDataVector, insertRow, insertRow, moveRow, newDataAvailable, newRowsAdded, removeRow, rowsRemoved, setColumnCount, setColumnIdentifiers, setColumnIdentifiers, setDataVector, setDataVector, setNumRows, setRowCount | 
 
| Methods inherited from class javax.swing.table.AbstractTableModel | 
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener | 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
 
COLUMN_SEL
public static final int COLUMN_SEL
- A Constant for the index of the table column representing the selection data
- See Also:
 
- Constant Field Values
 
 
COLUMN_ITEM
public static final int COLUMN_ITEM
- A Constant for the index of the table column representing the item description data
- See Also:
 
- Constant Field Values
 
 
CheckComboModel
public CheckComboModel(javax.swing.ListModel listModel,
                       javax.swing.ListSelectionModel selModel)
- Creates a CheckComboModel with the given list of items and a list of their corresponding selectedness.
- Parameters:
 
listModel - 
selModel - 
 
CheckComboModel
public CheckComboModel(javax.swing.ListModel listModel)
- Creates a CheckComboModel with the given list of items and nothing selected
- Parameters:
 
listModel - 
 
getSelectedItem
public java.lang.Object[] getSelectedItem()
- 
- Specified by:
 
getSelectedItem in interface javax.swing.ComboBoxModel 
 
- 
- Returns:
 
- an object array of selected indices
 
 
setSelectedItem
public void setSelectedItem(java.lang.Object anItem)
- Select an item in the list.
 
- 
- Specified by:
 
setSelectedItem in interface javax.swing.ComboBoxModel 
 
- 
- Parameters:
 
anItem - 
 
addListDataListener
public void addListDataListener(javax.swing.event.ListDataListener l)
- Currently does nothing
 
- 
- Specified by:
 
addListDataListener in interface javax.swing.ListModel 
 
- 
- Parameters:
 
l - 
 
removeListDataListener
public void removeListDataListener(javax.swing.event.ListDataListener l)
- Currently does nothing
 
- 
- Specified by:
 
removeListDataListener in interface javax.swing.ListModel 
 
- 
- Parameters:
 
l - 
 
getElementAt
public java.lang.Object getElementAt(int index)
- 
- Specified by:
 
getElementAt in interface javax.swing.ListModel 
 
getSize
public int getSize()
- 
- Specified by:
 
getSize in interface javax.swing.ListModel 
 
getColumnCount
public int getColumnCount()
- 
- Specified by:
 
getColumnCount in interface javax.swing.table.TableModel 
- Overrides:
 
getColumnCount in class javax.swing.table.DefaultTableModel 
 
getRowCount
public int getRowCount()
- 
- Specified by:
 
getRowCount in interface javax.swing.table.TableModel 
- Overrides:
 
getRowCount in class javax.swing.table.DefaultTableModel 
 
getValueAt
public java.lang.Object getValueAt(int row,
                                   int column)
- 
- Specified by:
 
getValueAt in interface javax.swing.table.TableModel 
- Overrides:
 
getValueAt in class javax.swing.table.DefaultTableModel 
 
- 
- Parameters:
 
row - 
column - 
- Returns:
 
 
isCellEditable
public boolean isCellEditable(int row,
                              int column)
- 
- Specified by:
 
isCellEditable in interface javax.swing.table.TableModel 
- Overrides:
 
isCellEditable in class javax.swing.table.DefaultTableModel 
 
setValueAt
public void setValueAt(java.lang.Object aValue,
                       int row,
                       int column)
- 
- Specified by:
 
setValueAt in interface javax.swing.table.TableModel 
- Overrides:
 
setValueAt in class javax.swing.table.DefaultTableModel 
 
Skip navigation links 
 
Copyright © 1997, 2011, Oracle. All rights reserved.