Oracle Fusion Middleware extensions for Seed Data Framework
11g Release 1 (11.1.2)

E22564-02

oracle.apps.fnd.applseed.config.ui.table
Class SDTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by oracle.apps.fnd.applseed.config.ui.table.SDAbstractTableModel
          extended by oracle.apps.fnd.applseed.config.ui.table.SDTableModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel

public class SDTableModel
extends SDAbstractTableModel

Class provides the table model for field(s) list. Class adds two additional columns for add and remove actions for each row. Default icons are provided for the actions.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class oracle.apps.fnd.applseed.config.ui.table.SDAbstractTableModel
SDAbstractTableModel.ActionMask, SDAbstractTableModel.ComponentSetterMask, SDAbstractTableModel.DeleteMask, SDAbstractTableModel.EditMask, SDAbstractTableModel.IconSetterMask
 
Field Summary
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
SDTableModel()
          Default Constructor.
SDTableModel(java.util.Collection columnList)
          Constructor based on List column names.
SDTableModel(java.util.List dataListofList, java.util.List columnNameList)
          Constructor baed on data and column list.
SDTableModel(java.lang.Object[][] paramData, java.lang.String[] paramColumnNames)
          Constructor based on array of data and column names.
 
Method Summary
static javax.swing.ImageIcon getDisabledMinus()
          Method returns disabled remove row icon.
static javax.swing.ImageIcon getMinus()
          Method returns remove row icon.
static javax.swing.ImageIcon getPlus()
          Method returns add row icon.
 int getSpecialColumnCount()
          Method returns count of special columns that will be provided by this class.
 java.util.List<java.lang.String> getSpecialColumnNames()
          Method provides names of the special columns.
protected  void getSpecialColumnNamesList(java.util.List<java.lang.String> list)
           
 java.util.List getSpecialColumnsList()
          Method returns list of special columns that will be provided by this class.
protected  void initSpecialColumns()
           
static void setDisabledMinus(javax.swing.ImageIcon icon)
          Method sets disabled remove row icon.
static void setMinus(javax.swing.ImageIcon icon)
          Method sets remove row icon.
static void setPlus(javax.swing.ImageIcon icon)
          Method sets add row icon.
protected  void setSpecialList(java.util.List list)
           
 
Methods inherited from class oracle.apps.fnd.applseed.config.ui.table.SDAbstractTableModel
addComponentMask, addDeleteMask, addEditMask, addIconMask, addRow, fireTableCellUpdated, fireTableRowsInserted, fireTableRowsUpdated, getColumnClass, getColumnCount, getColumnName, getRowCount, getValueAt, insertRow, isCellEditable, isEmpty, removeAll, removeComponentMask, removeDeleteMask, removeEditMask, removeIconMask, removeRow, removeRowsByMask, removeRowsByMasks, setValueAt, showData
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SDTableModel

public SDTableModel()
Default Constructor.


SDTableModel

public SDTableModel(java.util.Collection columnList)
Constructor based on List column names.

Parameters:
columnList - list of column names

SDTableModel

public SDTableModel(java.util.List dataListofList,
                    java.util.List columnNameList)
Constructor baed on data and column list.

Parameters:
dataListofList - data as list of lists
columnNameList - columns list

SDTableModel

public SDTableModel(java.lang.Object[][] paramData,
                    java.lang.String[] paramColumnNames)
Constructor based on array of data and column names. Data is expected to consist of array of Objects, each element containing another array of Objects representing a row of data.

Parameters:
paramData - array of array of data
paramColumnNames - column names
Method Detail

setSpecialList

protected void setSpecialList(java.util.List list)

getSpecialColumnNamesList

protected void getSpecialColumnNamesList(java.util.List<java.lang.String> list)

initSpecialColumns

protected void initSpecialColumns()

getMinus

public static javax.swing.ImageIcon getMinus()
Method returns remove row icon.

Returns:
returns remove row icon

getDisabledMinus

public static javax.swing.ImageIcon getDisabledMinus()
Method returns disabled remove row icon.

Returns:
returns remove row icon

getPlus

public static javax.swing.ImageIcon getPlus()
Method returns add row icon.

Returns:
returns add row icon

setMinus

public static void setMinus(javax.swing.ImageIcon icon)
Method sets remove row icon.

Parameters:
icon - icon for remove row

setDisabledMinus

public static void setDisabledMinus(javax.swing.ImageIcon icon)
Method sets disabled remove row icon.

Parameters:
icon - icon for remove row

setPlus

public static void setPlus(javax.swing.ImageIcon icon)
Method sets add row icon.

Parameters:
icon - icon for add row

getSpecialColumnsList

public java.util.List getSpecialColumnsList()
Description copied from class: SDAbstractTableModel
Method returns list of special columns that will be provided by this class.

Specified by:
getSpecialColumnsList in class SDAbstractTableModel
Returns:
List of control components

getSpecialColumnCount

public int getSpecialColumnCount()
Description copied from class: SDAbstractTableModel
Method returns count of special columns that will be provided by this class.

Specified by:
getSpecialColumnCount in class SDAbstractTableModel
Returns:
column count

getSpecialColumnNames

public java.util.List<java.lang.String> getSpecialColumnNames()
Description copied from class: SDAbstractTableModel
Method provides names of the special columns.

Specified by:
getSpecialColumnNames in class SDAbstractTableModel
Returns:
column name list

Oracle Fusion Middleware extensions for Seed Data Framework
11g Release 1 (11.1.2)

E22564-02

Copyright © 2011 Oracle. All Rights Reserved.