Line 47... |
Line 47... |
47 |
import org.openconcerto.ui.FontUtils;
|
47 |
import org.openconcerto.ui.FontUtils;
|
48 |
import org.openconcerto.ui.FormatEditor;
|
48 |
import org.openconcerto.ui.FormatEditor;
|
49 |
import org.openconcerto.ui.MenuUtils;
|
49 |
import org.openconcerto.ui.MenuUtils;
|
50 |
import org.openconcerto.ui.PopupMouseListener;
|
50 |
import org.openconcerto.ui.PopupMouseListener;
|
51 |
import org.openconcerto.ui.SwingThreadUtils;
|
51 |
import org.openconcerto.ui.SwingThreadUtils;
|
- |
|
52 |
import org.openconcerto.ui.WrapLayout;
|
52 |
import org.openconcerto.ui.list.selection.BaseListStateModel;
|
53 |
import org.openconcerto.ui.list.selection.BaseListStateModel;
|
53 |
import org.openconcerto.ui.list.selection.ListSelection;
|
54 |
import org.openconcerto.ui.list.selection.ListSelection;
|
54 |
import org.openconcerto.ui.list.selection.ListSelectionState;
|
55 |
import org.openconcerto.ui.list.selection.ListSelectionState;
|
55 |
import org.openconcerto.ui.state.JTableStateManager;
|
56 |
import org.openconcerto.ui.state.JTableStateManager;
|
56 |
import org.openconcerto.ui.table.AlternateTableCellRenderer;
|
57 |
import org.openconcerto.ui.table.AlternateTableCellRenderer;
|
Line 600... |
Line 601... |
600 |
});
|
601 |
});
|
601 |
// this.jTable.setEnabled(!updating) ne sert à rien
|
602 |
// this.jTable.setEnabled(!updating) ne sert à rien
|
602 |
// car les updates du ITableModel se font de manière synchrone dans la EDT
|
603 |
// car les updates du ITableModel se font de manière synchrone dans la EDT
|
603 |
// donc on ne peut faire aucune action pendant les maj
|
604 |
// donc on ne peut faire aucune action pendant les maj
|
604 |
|
605 |
|
605 |
this.btnPanel = new JPanel(new FlowLayout(FlowLayout.LEADING));
|
606 |
this.btnPanel = new JPanel(new WrapLayout());
|
606 |
this.addListenerOnModel(new PropertyChangeListener() {
|
607 |
this.addListenerOnModel(new PropertyChangeListener() {
|
607 |
@Override
|
608 |
@Override
|
608 |
public void propertyChange(PropertyChangeEvent evt) {
|
609 |
public void propertyChange(PropertyChangeEvent evt) {
|
609 |
// let the header buttons know that the rows have changed
|
610 |
// let the header buttons know that the rows have changed
|
610 |
final boolean doneUpdating = "updating".equals(evt.getPropertyName()) && Boolean.FALSE.equals(evt.getNewValue());
|
611 |
final boolean doneUpdating = "updating".equals(evt.getPropertyName()) && Boolean.FALSE.equals(evt.getNewValue());
|