org.sf.cafebabe.gadget.bodyeditor
Class BodyTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by org.sf.cafebabe.gadget.bodyeditor.BodyTableModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel

public class BodyTableModel
extends javax.swing.table.AbstractTableModel

See Also:
Serialized Form

Field Summary
(package private) static java.lang.String[] names
           
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
BodyTableModel(org.sf.classfile.MethodEntry methodEntry, org.sf.classfile.ConstPool constPool)
           
 
Method Summary
 void addInstruction(org.sf.classfile.instruction.Instruction instruction, int pos)
           
 void editInstruction(org.sf.classfile.instruction.Instruction instruction, int pos)
           
 org.sf.classfile.attribute.CodeAttribute getCodeAttribute()
           
 java.lang.Class getColumnClass(int c)
           
 int getColumnCount()
           
 java.lang.String getColumnName(int column)
           
 org.sf.classfile.instruction.Instruction getInstruction(int pos)
           
 short getOffset(int pos)
           
 int getRowCount()
           
 java.lang.String getTooltipAt(int row, int column)
           
 java.lang.Object getValueAt(int row, int column)
           
 boolean isBodyChanged()
           
 boolean isCellEditable(int row, int column)
           
 void removeInstructions(org.sf.classfile.instruction.Instruction[] instructions)
           
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener, setValueAt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

names

static final java.lang.String[] names
Constructor Detail

BodyTableModel

public BodyTableModel(org.sf.classfile.MethodEntry methodEntry,
                      org.sf.classfile.ConstPool constPool)
Method Detail

editInstruction

public void editInstruction(org.sf.classfile.instruction.Instruction instruction,
                            int pos)

addInstruction

public void addInstruction(org.sf.classfile.instruction.Instruction instruction,
                           int pos)

removeInstructions

public void removeInstructions(org.sf.classfile.instruction.Instruction[] instructions)

getOffset

public short getOffset(int pos)

isBodyChanged

public boolean isBodyChanged()

getCodeAttribute

public org.sf.classfile.attribute.CodeAttribute getCodeAttribute()

getInstruction

public org.sf.classfile.instruction.Instruction getInstruction(int pos)

getColumnCount

public int getColumnCount()

getRowCount

public int getRowCount()

getValueAt

public java.lang.Object getValueAt(int row,
                                   int column)

getTooltipAt

public java.lang.String getTooltipAt(int row,
                                     int column)

getColumnName

public java.lang.String getColumnName(int column)
Specified by:
getColumnName in interface javax.swing.table.TableModel
Overrides:
getColumnName in class javax.swing.table.AbstractTableModel

getColumnClass

public java.lang.Class getColumnClass(int c)
Specified by:
getColumnClass in interface javax.swing.table.TableModel
Overrides:
getColumnClass in class javax.swing.table.AbstractTableModel

isCellEditable

public boolean isCellEditable(int row,
                              int column)
Specified by:
isCellEditable in interface javax.swing.table.TableModel
Overrides:
isCellEditable in class javax.swing.table.AbstractTableModel


Copyright 2006 Dream Programs Inc.. All Rights Reserved.