|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--javax.swing.table.DefaultTableColumnModel
|
+--edu.buffalo.fs7.qsymbol2.GateTableColumnModel
class replacing the DefaultTableColumnModel for the GateTable class. It implements methods to add and remove gateContainers to the ColumnModel and sets the correct renderer classes. It as well implements methods to increase and decrease the width of the table columns.
GateTable,
GateTableModel,
QubitRenderer,
QubitHeaderRenderer, Serialized Form| Field Summary | |
protected int |
columnWidth
|
protected javax.swing.table.TableCellRenderer |
headerRenderer
|
protected javax.swing.table.TableCellRenderer |
renderer
|
| Fields inherited from class javax.swing.table.DefaultTableColumnModel |
changeEvent, columnMargin, columnSelectionAllowed, listenerList, selectionModel, tableColumns, totalColumnWidth |
| Constructor Summary | |
GateTableColumnModel()
creates the GateTableColumnModel |
|
| Method Summary | |
void |
addGateContainer(GateContainer gateContainer)
creates a TableColumn object for the given GateContainer object. |
void |
changeColumnWidth(int delta)
changes the column width of each column. |
int |
getPreferredColumnWidth()
returns the preferred width of a column |
void |
removeGateContainer(GateContainer gateContainer)
removes the correspondig TableColumn object from the TableColumn model. |
| Methods inherited from class javax.swing.table.DefaultTableColumnModel |
addColumn, addColumnModelListener, createSelectionModel, fireColumnAdded, fireColumnMarginChanged, fireColumnMoved, fireColumnRemoved, fireColumnSelectionChanged, getColumn, getColumnCount, getColumnIndex, getColumnIndexAtX, getColumnMargin, getColumns, getColumnSelectionAllowed, getListeners, getSelectedColumnCount, getSelectedColumns, getSelectionModel, getTotalColumnWidth, moveColumn, propertyChange, recalcWidthCache, removeColumn, removeColumnModelListener, setColumnMargin, setColumnSelectionAllowed, setSelectionModel, valueChanged |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected javax.swing.table.TableCellRenderer renderer
protected javax.swing.table.TableCellRenderer headerRenderer
protected int columnWidth
| Constructor Detail |
public GateTableColumnModel()
| Method Detail |
public void addGateContainer(GateContainer gateContainer)
GateContainerpublic void removeGateContainer(GateContainer gateContainer)
public int getPreferredColumnWidth()
public void changeColumnWidth(int delta)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||