Package | Class | Use | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## automotoras06
Class VehiculoTableModel

    java.lang.Object
      javax.swing.table.AbstractTableModel
          automotoras06.VehiculoTableModel

All Implemented Interfaces:
  java.io.Serializable, javax.swing.table.TableModel

    public class VehiculoTableModel

extends javax.swing.table.AbstractTableModel

See Also:
  Serialized Form

Field Summary

Fields inherited from class javax.swing.table.AbstractTableModel
`listenerList`

Constructor Summary
`VehiculoTableModel()` crea el modelo de la tabla cuando no existen vehiculos
`VehiculoTableModel(java.util.ArrayList<Vehiculo> datos)` crea el modelo de la tabla

Method Summary
`boolean` | `add(Vehiculo e)`
`java.lang.Class` | `getColumnClass(int columna)`
`int` | `getColumnCount()`
`java.lang.String` | `getColumnName(int columna)`
`java.util.ArrayList<Vehiculo>` | `getDatos()` metodo que obtiene la lista de autos
`int` | `getRowCount()`
`java.lang.Object` | `getValueAt(int fila, int columna)`
`boolean` | `isCellEditable(int fila, int columna)`
`void` | `setDatos(java.util.ArrayList<Vehiculo> datos)` metodo para setiar nuevos vehiculos
`void` | `setValueAt(java.lang.Object valor, int fila, int columna)`

Methods inherited from class javax.swing.table.AbstractTableModel
`addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### VehiculoTableModel

    public VehiculoTableModel(java.util.ArrayList<Vehiculo> datos)

  crea el modelo de la tabla

  Parameters:
    `datos` - sirve para dimensionar el tamañode la tabla

### VehiculoTableModel

    public VehiculoTableModel()

  crea el modelo de la tabla cuando no existen vehiculos

Method Detail

### getDatos

    public java.util.ArrayList<Vehiculo> getDatos()

  metodo que obtiene la lista de autos

  Returns:
    lista con todos los autos

### setDatos

    public void setDatos(java.util.ArrayList<Vehiculo> datos)

  metodo para setiar nuevos vehiculos

  Parameters:
    `datos` - es una lista de vehiculos que seran los valores nuevos

### add

    public boolean add(Vehiculo e)

  Parameters:
    `e` - vehiculo que va a ser agreado a una lista
  Returns:
    un booleano que simbolisa si se agrego de forma exitosa

### getRowCount

    public int getRowCount()

### getColumnCount

    public int getColumnCount()

### getValueAt

    public java.lang.Object getValueAt(int fila,
                                       int columna)

### getColumnName

    public java.lang.String getColumnName(int columna)

  Specified by:
    `getColumnName` in interface `javax.swing.table.TableModel`
  Overrides:
    `getColumnName` in class `javax.swing.table.AbstractTableModel`

### getColumnClass

    public java.lang.Class getColumnClass(int columna)

  Specified by:
    `getColumnClass` in interface `javax.swing.table.TableModel`
  Overrides:
    `getColumnClass` in class `javax.swing.table.AbstractTableModel`

### isCellEditable

    public boolean isCellEditable(int fila,
                                  int columna)

  Specified by:
    `isCellEditable` in interface `javax.swing.table.TableModel`
  Overrides:
    `isCellEditable` in class `javax.swing.table.AbstractTableModel`

### setValueAt

    public void setValueAt(java.lang.Object valor,
                           int fila,
                           int columna)

  Specified by:
    `setValueAt` in interface `javax.swing.table.TableModel`
  Overrides:
    `setValueAt` in class `javax.swing.table.AbstractTableModel`

Package | Class | Use | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD