|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.table.AbstractTableModel
org.esa.beam.visat.toolviews.bitmask.BitmaskDefTableModel
public class BitmaskDefTableModel
| Field Summary |
|---|
| Fields inherited from class javax.swing.table.AbstractTableModel |
|---|
listenerList |
| Constructor Summary | |
|---|---|
BitmaskDefTableModel()
|
|
BitmaskDefTableModel(boolean visibleFlagColumnEnabled)
|
|
| Method Summary | |
|---|---|
void |
addRow(BitmaskDef bitmaskDef)
|
void |
addRow(boolean visibleFlag,
BitmaskDef bitmaskDef)
|
void |
clear()
|
BitmaskDef |
getBitmaskDefAt(int rowIndex)
|
BitmaskDef[] |
getBitmaskDefs()
Returns all bitmask definitions in this model. |
Class |
getColumnClass(int columnIndex)
Returns a column's data type. |
int |
getColumnCount()
Returns the number of columns in the model. |
String |
getColumnName(int columnIndex)
Returns the name for the column. |
int |
getRowCount()
Returns the number of rows in the model. |
int |
getRowIndex(BitmaskDef bitmaskDef)
|
int |
getRowIndex(String bitmaskName)
|
Object |
getValueAt(int rowIndex,
int columnIndex)
Returns the value for the cell at columnIndex and rowIndex. |
boolean |
getVisibleFlagAt(int rowIndex)
|
Boolean[] |
getVisibleFlags()
Returns all bitmask visible flags in this model. |
void |
insertRowAt(BitmaskDef bitmaskDef,
int rowIndex)
|
void |
insertRowAt(boolean visibleFlag,
BitmaskDef bitmaskDef,
int rowIndex)
|
boolean |
isCellEditable(int rowIndex,
int columnIndex)
Returns true if this table model allows to switch BMD visiblity and column index is zero. |
boolean |
isVisibleFlagColumnEnabled()
|
void |
removeRowAt(int rowIndex)
|
void |
setBitmaskDefAt(BitmaskDef bitmaskDef,
int rowIndex)
|
void |
setRowAt(boolean visibleFlag,
BitmaskDef bitmaskDef,
int rowIndex)
|
void |
setValueAt(Object aValue,
int rowIndex,
int columnIndex)
This empty implementation is provided so users don't have to implement this method if their data model is not editable. |
void |
setVisibleFlag(boolean visibleFlag,
int rowIndex)
|
void |
setVisibleFlagColumnEnabled(boolean visibleFlagColumnEnabled)
|
| 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 |
|---|
public BitmaskDefTableModel()
public BitmaskDefTableModel(boolean visibleFlagColumnEnabled)
| Method Detail |
|---|
public boolean isVisibleFlagColumnEnabled()
public void setVisibleFlagColumnEnabled(boolean visibleFlagColumnEnabled)
public BitmaskDef[] getBitmaskDefs()
public BitmaskDef getBitmaskDefAt(int rowIndex)
public Boolean[] getVisibleFlags()
public boolean getVisibleFlagAt(int rowIndex)
public void setVisibleFlag(boolean visibleFlag,
int rowIndex)
public void setBitmaskDefAt(BitmaskDef bitmaskDef,
int rowIndex)
public void setRowAt(boolean visibleFlag,
BitmaskDef bitmaskDef,
int rowIndex)
public void addRow(BitmaskDef bitmaskDef)
public void addRow(boolean visibleFlag,
BitmaskDef bitmaskDef)
public void insertRowAt(BitmaskDef bitmaskDef,
int rowIndex)
public void insertRowAt(boolean visibleFlag,
BitmaskDef bitmaskDef,
int rowIndex)
public void removeRowAt(int rowIndex)
public int getRowIndex(String bitmaskName)
public int getRowIndex(BitmaskDef bitmaskDef)
public void clear()
public Class getColumnClass(int columnIndex)
getColumnClass in interface TableModelgetColumnClass in class AbstractTableModelcolumnIndex - the column being queried
public String getColumnName(int columnIndex)
getColumnName in interface TableModelgetColumnName in class AbstractTableModelcolumnIndex - the column being queried
column
public boolean isCellEditable(int rowIndex,
int columnIndex)
true if this table model allows to switch BMD visiblity and column index is zero.
isCellEditable in interface TableModelisCellEditable in class AbstractTableModelrowIndex - the row being queriedcolumnIndex - the column being queried
public int getColumnCount()
JTable uses this method to determine how many columns
it should create and display by default.
getRowCount()public int getRowCount()
JTable uses this method to determine how many rows it
should display. This method should be quick, as it is called frequently during rendering.
getColumnCount()
public Object getValueAt(int rowIndex,
int columnIndex)
columnIndex and rowIndex.
rowIndex - the row whose value is to be queriedcolumnIndex - the column whose value is to be queried
public void setValueAt(Object aValue,
int rowIndex,
int columnIndex)
setValueAt in interface TableModelsetValueAt in class AbstractTableModelaValue - value to assign to cellrowIndex - row of cellcolumnIndex - column of cell
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||