org.bibalex.daf.managers.checkin
Class PreAssignDialog.AvailableUsersComboBoxes

java.lang.Object
  extended by javax.swing.AbstractCellEditor
      extended by javax.swing.DefaultCellEditor
          extended by org.bibalex.daf.managers.checkin.PreAssignDialog.AvailableUsersComboBoxes
All Implemented Interfaces:
java.io.Serializable, javax.swing.CellEditor, javax.swing.table.TableCellEditor, javax.swing.table.TableCellRenderer, javax.swing.tree.TreeCellEditor
Enclosing class:
PreAssignDialog

protected class PreAssignDialog.AvailableUsersComboBoxes
extends javax.swing.DefaultCellEditor
implements javax.swing.table.TableCellRenderer

Internal Class for the purpose of rendering one of the JTable Columns as ComboBoxes List.

Author:
Fadi.Edward
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.DefaultCellEditor
javax.swing.DefaultCellEditor.EditorDelegate
 
Field Summary
private  java.util.ArrayList<javax.swing.JComboBox> comboBoxArrList
           
 
Fields inherited from class javax.swing.DefaultCellEditor
clickCountToStart, delegate, editorComponent
 
Fields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList
 
Constructor Summary
PreAssignDialog.AvailableUsersComboBoxes(DataTable dataTable, int phaseIDCol, int jobTypeID)
          Constructor
PreAssignDialog.AvailableUsersComboBoxes(DataTable dataTable, int phaseIDCol, int jobTypeID, java.lang.Object[] phaseUserPreAssignedEntries)
          Constructor
 
Method Summary
 java.awt.Component getTableCellEditorComponent(javax.swing.JTable table, java.lang.Object value, boolean isSelected, int row, int column)
          Gets a Cell Editor Component
 java.awt.Component getTableCellRendererComponent(javax.swing.JTable table, java.lang.Object value, boolean isSelected, boolean hasFocus, int row, int column)
          Gets a Cell Editor Component
 
Methods inherited from class javax.swing.DefaultCellEditor
cancelCellEditing, getCellEditorValue, getClickCountToStart, getComponent, getTreeCellEditorComponent, isCellEditable, setClickCountToStart, shouldSelectCell, stopCellEditing
 
Methods inherited from class javax.swing.AbstractCellEditor
addCellEditorListener, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, removeCellEditorListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.swing.CellEditor
addCellEditorListener, removeCellEditorListener
 
Methods inherited from interface javax.swing.CellEditor
addCellEditorListener, removeCellEditorListener
 

Field Detail

comboBoxArrList

private java.util.ArrayList<javax.swing.JComboBox> comboBoxArrList
Constructor Detail

PreAssignDialog.AvailableUsersComboBoxes

public PreAssignDialog.AvailableUsersComboBoxes(DataTable dataTable,
                                                int phaseIDCol,
                                                int jobTypeID)
Constructor

Parameters:
dataTable - A DataTable containing the Phase available for Pre-Assign.
phaseIDCol - The Column containing the Phase the ID.
jobTypeID - The Job Type of this Job, to help create the ComboBoxes list.

PreAssignDialog.AvailableUsersComboBoxes

public PreAssignDialog.AvailableUsersComboBoxes(DataTable dataTable,
                                                int phaseIDCol,
                                                int jobTypeID,
                                                java.lang.Object[] phaseUserPreAssignedEntries)
Constructor

Parameters:
dataTable - A DataTable containing the Phase available for Pre-Assign.
phaseIDCol - The Column containing the Phase the ID.
jobTypeID - The Job Type of this Job, to help create the ComboBoxes list.
phaseUserPreAssignedEntries - An array of objects, used to initialize the ComboBoxes with previously Pre-Assigned entries.
Method Detail

getTableCellEditorComponent

public java.awt.Component getTableCellEditorComponent(javax.swing.JTable table,
                                                      java.lang.Object value,
                                                      boolean isSelected,
                                                      int row,
                                                      int column)
Gets a Cell Editor Component

Specified by:
getTableCellEditorComponent in interface javax.swing.table.TableCellEditor
Overrides:
getTableCellEditorComponent in class javax.swing.DefaultCellEditor
See Also:
DefaultCellEditor.getTableCellEditorComponent(javax.swing.JTable, java.lang.Object, boolean, int, int)

getTableCellRendererComponent

public java.awt.Component getTableCellRendererComponent(javax.swing.JTable table,
                                                        java.lang.Object value,
                                                        boolean isSelected,
                                                        boolean hasFocus,
                                                        int row,
                                                        int column)
Gets a Cell Editor Component

Specified by:
getTableCellRendererComponent in interface javax.swing.table.TableCellRenderer
See Also:
TableCellRenderer.getTableCellRendererComponent(javax.swing.JTable, java.lang.Object, boolean, boolean, int, int)