|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.swing.table.DefaultTableColumnModel | +--dyntable.ProxyColumnModel
$Id: ProxyColumnModel.java,v 1.0 2005/09/25 jDynTable@gmx.de $
The ProxyColumnModel contains all columns in the table that are both visible and not locked.
A locked column is a column, which is displayed on the left side of the table even
when the user scrolls the other columns. See Jdyntable for more information.
Both the setModel method, and the constructor, take an EntityTableColumnModel
as a parameter. The EntityTableColumnModel
is used to retrieve the columns that are both visible and not locked.
This EntityTableColumnModel will be referred to as the original
model for the remainder of this document.
Constructor Summary | |
---|---|
ProxyColumnModel()
Constructs a new ProxyColumnModel. |
|
ProxyColumnModel(EntityTableColumnModel m)
Constructs a new ProxyColumnModel with the given EntityTableColumnModel. |
Method Summary | |
---|---|
void |
columnAdded(javax.swing.event.TableColumnModelEvent e)
Fires the change event for adding a column. |
void |
columnMarginChanged(javax.swing.event.ChangeEvent e)
Fires the column margin changed event. |
void |
columnMoved(javax.swing.event.TableColumnModelEvent e)
Fires the column moved event on behalf of the original model. |
void |
columnRemoved(javax.swing.event.TableColumnModelEvent e)
Fires the column removed event on behalf of the original model. |
void |
columnSelectionChanged(javax.swing.event.ListSelectionEvent e)
Fires the column selection changed event on behalf of the original model. |
EntityTableColumnModel |
getModel()
Returns the model being used for managing the columns of the table. |
void |
revalidate()
Sets the properties and listeners for the original model (EntityTableColumnModel). |
void |
setModel(EntityTableColumnModel m)
Sets the model that will be used to manage the columns in the table. |
Methods inherited from class javax.swing.table.DefaultTableColumnModel |
---|
addColumn, addColumnModelListener, getColumn, getColumnCount, getColumnIndex, getColumnIndexAtX, getColumnMargin, getColumnModelListeners, getColumns, getColumnSelectionAllowed, getListeners, getSelectedColumnCount, getSelectedColumns, getSelectionModel, getTotalColumnWidth, moveColumn, propertyChange, removeColumn, removeColumnModelListener, setColumnMargin, setColumnSelectionAllowed, setSelectionModel, valueChanged |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.swing.table.TableColumnModel |
---|
addColumn, addColumnModelListener, getColumn, getColumnCount, getColumnIndex, getColumnIndexAtX, getColumnMargin, getColumns, getColumnSelectionAllowed, getSelectedColumnCount, getSelectedColumns, getSelectionModel, getTotalColumnWidth, moveColumn, removeColumn, removeColumnModelListener, setColumnMargin, setColumnSelectionAllowed, setSelectionModel |
Constructor Detail |
public ProxyColumnModel()
public ProxyColumnModel(EntityTableColumnModel m)
m
- the EntityTableColumnModel that defines the
table columnsMethod Detail |
public EntityTableColumnModel getModel()
public void setModel(EntityTableColumnModel m)
m
- the EntityTableColumnModel which stores the columns in
the tablepublic void revalidate()
public void columnAdded(javax.swing.event.TableColumnModelEvent e)
columnAdded
in interface javax.swing.event.TableColumnModelListener
e
- the TableColumnModelEvent generated.public void columnMarginChanged(javax.swing.event.ChangeEvent e)
columnMarginChanged
in interface javax.swing.event.TableColumnModelListener
e
- the ChangeEvent generated.public void columnMoved(javax.swing.event.TableColumnModelEvent e)
columnMoved
in interface javax.swing.event.TableColumnModelListener
e
- the TableColumnModeEvent generated.public void columnRemoved(javax.swing.event.TableColumnModelEvent e)
columnRemoved
in interface javax.swing.event.TableColumnModelListener
e
- the TableColumnModeEvent generated.public void columnSelectionChanged(javax.swing.event.ListSelectionEvent e)
columnSelectionChanged
in interface javax.swing.event.TableColumnModelListener
e
- the ListSelectionEvent generated.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |