|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.table.AbstractTableModel
javax.swing.table.DefaultTableModel
org.glite.wmsui.guij.JobTableModel
Implementation of the JobTableModel class
Field Summary |
Fields inherited from class javax.swing.table.DefaultTableModel |
columnIdentifiers, dataVector |
Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
Constructor Summary | |
JobTableModel(java.util.Vector columnNames,
int rowCount)
Constructor. |
|
JobTableModel(java.util.Vector data,
java.util.Vector columnNames)
Constructor. |
Method Summary | |
int |
getColumnPreferredWidth(javax.swing.JTable table,
javax.swing.table.TableColumn column)
Gets the column preferred width necessary to show the widest element present in the column. |
int |
getElementPresentInColumnCount(java.lang.String element,
int column)
Checks if the specified element is present in the specified column and returns the number of the element occurences. |
int |
getElementPresentInColumnCountCi(java.lang.String element,
int column)
Checks if the specified element is present in the specified column and returns the number of the element occurences. |
int |
getIndexOfElementInColumn(java.lang.String element,
int column)
Checks if the specified element is present in the specified column and returns the index of the first occurence of the element. |
int |
getIndexOfElementInColumnCi(java.lang.String element,
int column)
Checks if the specified element is present in the specified column and returns the index of the first occurence of the element. |
int |
getIndexOfRow(java.lang.String rowElement)
Checks if the specified row is present in the table and returns the index of the first occurence of the row. |
boolean |
isCellEditable(int row,
int column)
Checks if the specified table cell is editable or not. |
boolean |
isElementPresentInColumn(java.lang.String element,
int column)
Checks if the specified element is present in the specified column. |
boolean |
isElementPresentInColumnCi(java.lang.String element,
int column)
Checks if the specified element is present in the specified column. |
boolean |
isRowPresent(java.lang.String rowElement)
Checks if the specified row is present in the table. |
void |
removeAllRows()
Removes all table rows. |
void |
setColumnEditable(int index,
boolean bool)
Sets whether or not specified column is editable. |
Methods inherited from class javax.swing.table.DefaultTableModel |
addColumn, addColumn, addColumn, addRow, addRow, convertToVector, convertToVector, getColumnCount, getColumnName, getDataVector, getRowCount, getValueAt, insertRow, insertRow, moveRow, newDataAvailable, newRowsAdded, removeRow, rowsRemoved, setColumnCount, setColumnIdentifiers, setColumnIdentifiers, setDataVector, setDataVector, setNumRows, setRowCount, setValueAt |
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 |
Constructor Detail |
public JobTableModel(java.util.Vector columnNames, int rowCount)
public JobTableModel(java.util.Vector data, java.util.Vector columnNames)
Method Detail |
public void removeAllRows()
public boolean isCellEditable(int row, int column)
row
- cell row indexcolumn
- cell column index
public void setColumnEditable(int index, boolean bool)
index
- column indexbool
- true if this component should be editable, false otherwisepublic boolean isRowPresent(java.lang.String rowElement)
rowElement
- string concatenation of the table row cells
public int getIndexOfRow(java.lang.String rowElement)
rowElement
- string concatenation of the table row cells
public boolean isElementPresentInColumn(java.lang.String element, int column)
element
- element to findcolumn
- column index
public boolean isElementPresentInColumnCi(java.lang.String element, int column)
element
- element to findcolumn
- column index
public int getIndexOfElementInColumn(java.lang.String element, int column)
element
- element to findcolumn
- column index
public int getIndexOfElementInColumnCi(java.lang.String element, int column)
element
- element to findcolumn
- column index
public int getElementPresentInColumnCount(java.lang.String element, int column)
element
- element to findcolumn
- column index
public int getElementPresentInColumnCountCi(java.lang.String element, int column)
element
- element to findcolumn
- column index
public int getColumnPreferredWidth(javax.swing.JTable table, javax.swing.table.TableColumn column)
table
- the table containing the columncolumn
- table column
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |