public interface TableColumnModelExtListener extends TableColumnModelListener
TableColumnModelListener
which is interested
in property changes of contained TableColumn
s.
Enhanced TableColumnModelExt
guarantees to notify
these extended column listeners. An example of a client which
adjusts itself based on headerValue
property of visible columns:
TableColumnModelExtListener l = new TableColumnModelExtListener() {
public void columnPropertyChange(PropertyChangeEvent event) {
if ("headerValue".equals(event.getPropertyName())) {
TableColumn column = (TableColumn) event.getSource();
if ((column instanceof TableColumnExt)
&& !((TableColumnExt) column).isVisible()) {
return;
}
resizeAndRepaint();
}
}
public void columnAdded(TableColumnModelEvent e) {
}
public void columnMarginChanged(ChangeEvent e) {
}
public void columnMoved(TableColumnModelEvent e) {
}
public void columnRemoved(TableColumnModelEvent e) {
}
public void columnSelectionChanged(ListSelectionEvent e) {
}
};
columnModel.addColumnModelListener(l);
TableColumnModelExt
Modifier and Type | Method and Description |
---|---|
void |
columnPropertyChange(PropertyChangeEvent event)
Notifies listeners about property changes of contained columns.
|
columnAdded, columnMarginChanged, columnMoved, columnRemoved, columnSelectionChanged
void columnPropertyChange(PropertyChangeEvent event)
TableColumn
.event
- a PropertyChangeEvent
fired by a TableColumn
contained in a TableColumnModel
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses