Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

screengen.gui
Class ComponentAttributeTableModel  view ComponentAttributeTableModel download ComponentAttributeTableModel.java

java.lang.Object
  extended byjavax.swing.table.AbstractTableModel
      extended byscreengen.gui.ComponentAttributeTableModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel

class ComponentAttributeTableModel
extends javax.swing.table.AbstractTableModel


Field Summary
(package private)  java.lang.String[] columnNames
           
(package private)  java.util.Vector oAttributes
           
(package private)  BuildComponentBase oBaseObj
           
(package private)  java.lang.Object oObj
           
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
(package private) ComponentAttributeTableModel()
           
(package private) ComponentAttributeTableModel(java.util.Vector oNewAttributes)
           
 
Method Summary
 java.lang.String getAttributeName(java.lang.Object oItem)
           
(package private)  java.util.Vector getAttributes()
           
 java.lang.Object getAttributeValue(java.lang.Object oItem)
           
 int getColumnCount()
          Returns the number of columns in the model.
 java.lang.String getColumnName(int col)
          Returns the name of the specified column.
 int getRowCount()
          Returns the number of rows in the model.
 java.lang.Object getValueAt(int row, int col)
          Returns the value (Object) at a particular cell in the table.
 boolean isAttributeEditable(java.lang.Object oItem)
           
 boolean isCellEditable(int row, int col)
          Returns true if the specified cell is editable, and false if it is not.
(package private)  void setAttributes(java.util.Vector oNew)
           
 void setAttributeValue(java.lang.Object oItem, java.lang.Object oNewValue)
           
(package private)  void setObject(java.lang.Object oNewObj)
           
 void setValueAt(java.lang.Object value, int row, int col)
          Sets the value of the given cell.
 
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
 

Field Detail

oAttributes

java.util.Vector oAttributes

oObj

java.lang.Object oObj

oBaseObj

BuildComponentBase oBaseObj

columnNames

final java.lang.String[] columnNames
Constructor Detail

ComponentAttributeTableModel

ComponentAttributeTableModel(java.util.Vector oNewAttributes)

ComponentAttributeTableModel

ComponentAttributeTableModel()
Method Detail

setAttributes

void setAttributes(java.util.Vector oNew)

getAttributes

java.util.Vector getAttributes()

setObject

void setObject(java.lang.Object oNewObj)

getColumnCount

public int getColumnCount()
Description copied from interface: javax.swing.table.TableModel
Returns the number of columns in the model.


getRowCount

public int getRowCount()
Description copied from interface: javax.swing.table.TableModel
Returns the number of rows in the model.


getColumnName

public java.lang.String getColumnName(int col)
Description copied from class: javax.swing.table.AbstractTableModel
Returns the name of the specified column. This method generates default names in a sequence (starting with column 0): A, B, C, ..., Z, AA, AB, AC, ..., AZ, BA, BB, BC, and so on. Subclasses may override this method to allow column names to be specified on some other basis.


getAttributeName

public java.lang.String getAttributeName(java.lang.Object oItem)

getAttributeValue

public java.lang.Object getAttributeValue(java.lang.Object oItem)

isAttributeEditable

public boolean isAttributeEditable(java.lang.Object oItem)

setAttributeValue

public void setAttributeValue(java.lang.Object oItem,
                              java.lang.Object oNewValue)

getValueAt

public java.lang.Object getValueAt(int row,
                                   int col)
Description copied from interface: javax.swing.table.TableModel
Returns the value (Object) at a particular cell in the table.


isCellEditable

public boolean isCellEditable(int row,
                              int col)
Description copied from class: javax.swing.table.AbstractTableModel
Returns true if the specified cell is editable, and false if it is not. This implementation returns false for all arguments, subclasses should override the method if necessary.


setValueAt

public void setValueAt(java.lang.Object value,
                       int row,
                       int col)
Description copied from class: javax.swing.table.AbstractTableModel
Sets the value of the given cell. This implementation ignores all arguments and does nothing, subclasses should override the method if necessary.