com.ibm.di.admin.ui
Class WorkEntryTableUI.WorkEntryTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by com.ibm.di.admin.ui.WorkEntryTableUI.WorkEntryTableModel
All Implemented Interfaces:
MetamergeConfigChangeListener, Serializable, TableModel
Enclosing class:
WorkEntryTableUI

public class WorkEntryTableUI.WorkEntryTableModel
extends AbstractTableModel
implements MetamergeConfigChangeListener

GUI table for the work entry.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
WorkEntryTableUI.WorkEntryTableModel(AssemblyLineConfig config)
          Constructor for the WorkEntryTableModel object
 
Method Summary
 Object[] buildTables(boolean allConnectors, String untilConnector)
          Creates the tables.
 void configurationChanged(MetamergeConfigChange mcc)
          Called when the configuration has changed.
 int getColumnCount()
          Gets the columnCount attribute of the WorkEntryTableModel object
 String getColumnName(int col)
          Gets the columnName attribute of the WorkEntryTableModel object
 int getRowCount()
          Gets the rowCount attribute of the WorkEntryTableModel object
 Object getValueAt(int row, int col)
          Gets the valueAt attribute of the WorkEntryTableModel object
 void init()
          Initializes the object.
 void shouldBeFocusable()
          Set all rows but the first one to be able to receive the input focus.
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkEntryTableUI.WorkEntryTableModel

public WorkEntryTableUI.WorkEntryTableModel(AssemblyLineConfig config)
Constructor for the WorkEntryTableModel object

Parameters:
config - the configuration of the AssemblyLine
Method Detail

configurationChanged

public void configurationChanged(MetamergeConfigChange mcc)
Called when the configuration has changed.

Specified by:
configurationChanged in interface MetamergeConfigChangeListener
Parameters:
mcc - the type of configuration change

init

public void init()
Initializes the object.


buildTables

public Object[] buildTables(boolean allConnectors,
                            String untilConnector)
Creates the tables.

Parameters:
allConnectors - Should all connectors be included, or only connectors in the Feed folder
untilConnector - Include all connectors up to, but not including, this connector
Returns:
an Object[], first element is Attribute names, the other is where those names stem from

shouldBeFocusable

public void shouldBeFocusable()
Set all rows but the first one to be able to receive the input focus.


getRowCount

public int getRowCount()
Gets the rowCount attribute of the WorkEntryTableModel object

Specified by:
getRowCount in interface TableModel
Returns:
The rowCount value

getColumnCount

public int getColumnCount()
Gets the columnCount attribute of the WorkEntryTableModel object

Specified by:
getColumnCount in interface TableModel
Returns:
The columnCount value

getColumnName

public String getColumnName(int col)
Gets the columnName attribute of the WorkEntryTableModel object

Specified by:
getColumnName in interface TableModel
Overrides:
getColumnName in class AbstractTableModel
Parameters:
col - the number of the column
Returns:
The columnName value

getValueAt

public Object getValueAt(int row,
                         int col)
Gets the valueAt attribute of the WorkEntryTableModel object

Specified by:
getValueAt in interface TableModel
Parameters:
row - the number of the row
col - the number of the column
Returns:
The valueAt value