|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--javax.swing.table.DefaultTableColumnModel
|
+--org.fopps.ui.PersistentColumnModel
PersistentColumnModel
| Field Summary |
| Fields inherited from class javax.swing.table.DefaultTableColumnModel |
changeEvent, columnMargin, columnSelectionAllowed, listenerList, selectionModel, tableColumns, totalColumnWidth |
| Constructor Summary | |
PersistentColumnModel()
|
|
| Method Summary | |
void |
addColumn(javax.swing.table.TableColumn aColumn)
Appends aColumn to the end of the
tableColumns array.
|
protected void |
fireColumnMarginChanged()
Notifies all listeners that have registered interest for notification on this event type. |
void |
moveColumn(int columnIndex,
int newIndex)
Moves the column and heading at columnIndex to
newIndex. |
void |
removeColumn(javax.swing.table.TableColumn column)
Deletes the column from the
tableColumns array. |
void |
setColumnMargin(int newMargin)
Sets the column margin to newMargin. |
| Methods inherited from class javax.swing.table.DefaultTableColumnModel |
addColumnModelListener, createSelectionModel, fireColumnAdded, fireColumnMoved, fireColumnRemoved, fireColumnSelectionChanged, getColumn, getColumnCount, getColumnIndex, getColumnIndexAtX, getColumnMargin, getColumnModelListeners, getColumns, getColumnSelectionAllowed, getListeners, getSelectedColumnCount, getSelectedColumns, getSelectionModel, getTotalColumnWidth, propertyChange, recalcWidthCache, removeColumnModelListener, setColumnSelectionAllowed, setSelectionModel, valueChanged |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PersistentColumnModel()
| Method Detail |
public void addColumn(javax.swing.table.TableColumn aColumn)
aColumn to the end of the
tableColumns array.
This method also posts the columnAdded
event to its listeners and restores the column widths, if possible.
addColumn in interface javax.swing.table.TableColumnModeladdColumn in class javax.swing.table.DefaultTableColumnModeljava.lang.IllegalArgumentException - if aColumn is
nullremoveColumn(javax.swing.table.TableColumn)protected void fireColumnMarginChanged()
fireColumnMarginChanged in class javax.swing.table.DefaultTableColumnModelEventListenerListpublic void setColumnMargin(int newMargin)
newMargin. This method
also posts a columnMarginChanged event to its
listeners.
setColumnMargin in interface javax.swing.table.TableColumnModelsetColumnMargin in class javax.swing.table.DefaultTableColumnModelnewMargin - the new margin width, in pixelsDefaultTableColumnModel.getColumnMargin(),
DefaultTableColumnModel.getTotalColumnWidth()public void removeColumn(javax.swing.table.TableColumn column)
column from the
tableColumns array. This method will do nothing if
column is not in the table's columns list.
tile is called
to resize both the header and table views.
This method also posts a columnRemoved
event to its listeners.
removeColumn in interface javax.swing.table.TableColumnModelremoveColumn in class javax.swing.table.DefaultTableColumnModelcolumn - the TableColumn to be removedaddColumn(javax.swing.table.TableColumn)
public void moveColumn(int columnIndex,
int newIndex)
columnIndex to
newIndex. The old column at columnIndex
will now be found at newIndex. The column
that used to be at newIndex is shifted
left or right to make room. This will not move any columns if
columnIndex equals newIndex. This method
also posts a columnMoved event to its listeners.
moveColumn in interface javax.swing.table.TableColumnModelmoveColumn in class javax.swing.table.DefaultTableColumnModelcolumnIndex - the index of column to be movednewIndex - new index to move the column
java.lang.IllegalArgumentException - if column or
newIndex
are not in the valid range
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||