ui.table.model
Class ServerWorkstationTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by ui.table.model.ServerWorkstationTableModel
All Implemented Interfaces:
java.io.Serializable, java.util.Observer, javax.swing.table.TableModel

public class ServerWorkstationTableModel
extends javax.swing.table.AbstractTableModel
implements java.util.Observer

See Also:
Serialized Form

Field Summary
static int WORKSTATION_ADDRESS_COLUMN
           
static int WORKSTATION_DESCRIPTION_COLUMN
           
static int WORKSTATION_ID_COLUMN
           
static int WORKSTATION_IN_USE_COLUMN
           
static int WORKSTATION_LOCATION_COLUMN
           
static int WORKSTATION_NAME_COLUMN
           
static int WORKSTATION_PORT_COLUMN
           
static int WORKSTATION_ROLE_COLUMN
           
static int WORKSTATION_TYPE_COLUMN
           
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
ServerWorkstationTableModel()
           
 
Method Summary
 java.lang.Class getColumnClass(int column)
           
 int getColumnCount()
           
 java.lang.String getColumnName(int column)
           
 int getRowCount()
           
 java.lang.Object getValueAt(int row, int column)
           
 boolean isCellEditable(int row, int column)
           
 void setValueAt(java.lang.Object value, int row, int column)
           
 void update(java.util.Observable observable, java.lang.Object changedObject)
           
 
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
 

Field Detail

WORKSTATION_ID_COLUMN

public static final int WORKSTATION_ID_COLUMN
See Also:
Constant Field Values

WORKSTATION_NAME_COLUMN

public static final int WORKSTATION_NAME_COLUMN
See Also:
Constant Field Values

WORKSTATION_LOCATION_COLUMN

public static final int WORKSTATION_LOCATION_COLUMN
See Also:
Constant Field Values

WORKSTATION_DESCRIPTION_COLUMN

public static final int WORKSTATION_DESCRIPTION_COLUMN
See Also:
Constant Field Values

WORKSTATION_TYPE_COLUMN

public static final int WORKSTATION_TYPE_COLUMN
See Also:
Constant Field Values

WORKSTATION_ADDRESS_COLUMN

public static final int WORKSTATION_ADDRESS_COLUMN
See Also:
Constant Field Values

WORKSTATION_PORT_COLUMN

public static final int WORKSTATION_PORT_COLUMN
See Also:
Constant Field Values

WORKSTATION_IN_USE_COLUMN

public static final int WORKSTATION_IN_USE_COLUMN
See Also:
Constant Field Values

WORKSTATION_ROLE_COLUMN

public static final int WORKSTATION_ROLE_COLUMN
See Also:
Constant Field Values
Constructor Detail

ServerWorkstationTableModel

public ServerWorkstationTableModel()
Method Detail

getColumnCount

public int getColumnCount()
Specified by:
getColumnCount in interface javax.swing.table.TableModel

getRowCount

public int getRowCount()
Specified by:
getRowCount in interface javax.swing.table.TableModel

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

getValueAt

public java.lang.Object getValueAt(int row,
                                   int column)
Specified by:
getValueAt in interface javax.swing.table.TableModel

getColumnClass

public java.lang.Class getColumnClass(int column)
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

setValueAt

public void setValueAt(java.lang.Object value,
                       int row,
                       int column)
Specified by:
setValueAt in interface javax.swing.table.TableModel
Overrides:
setValueAt in class javax.swing.table.AbstractTableModel

update

public void update(java.util.Observable observable,
                   java.lang.Object changedObject)
Specified by:
update in interface java.util.Observer


Copyright © 2006 SF.net. All Rights Reserved.