| ... |
... |
@@ -98,7 +98,7 @@ public abstract class ContentListUIHandler<E extends IdDto, C extends DataDto, U |
|
98
|
98
|
model.addPropertyChangeListener(ContentListUIModel.PROPERTY_DATA, e -> updateList((List) e.getNewValue()));
|
|
99
|
99
|
}
|
|
100
|
100
|
|
|
101
|
|
- protected void updateList(List<DataReference<C>> data) {
|
|
|
101
|
+ private void updateList(List<DataReference<C>> data) {
|
|
102
|
102
|
BeanListHeader<DataReference<C>> list = ui.getListHeader();
|
|
103
|
103
|
if (CollectionUtils.isNotEmpty(data)) {
|
|
104
|
104
|
if (log.isDebugEnabled()) {
|
| ... |
... |
@@ -182,7 +182,7 @@ public abstract class ContentListUIHandler<E extends IdDto, C extends DataDto, U |
|
182
|
182
|
getUi().getListPane().setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED);
|
|
183
|
183
|
} else {
|
|
184
|
184
|
|
|
185
|
|
-getUi().getListPane().setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER);
|
|
|
185
|
+ getUi().getListPane().setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER);
|
|
186
|
186
|
}
|
|
187
|
187
|
});
|
|
188
|
188
|
|
| ... |
... |
@@ -262,7 +262,7 @@ getUi().getListPane().setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SC |
|
262
|
262
|
|
|
263
|
263
|
private final transient NavigationTree treeHelper;
|
|
264
|
264
|
|
|
265
|
|
- private final ThreadLocal<NavigationTreeNodeSupport> containerNode = new ThreadLocal<>();
|
|
|
265
|
+ private NavigationTreeNodeSupport containerNode;
|
|
266
|
266
|
|
|
267
|
267
|
EntityListCellRenderer(ListCellRenderer<?> delegate, NavigationTree treeHelper) {
|
|
268
|
268
|
this.delegate = delegate;
|
| ... |
... |
@@ -270,7 +270,7 @@ getUi().getListPane().setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SC |
|
270
|
270
|
}
|
|
271
|
271
|
|
|
272
|
272
|
public void init() {
|
|
273
|
|
- containerNode.set(treeHelper.getSelectedNode());
|
|
|
273
|
+ containerNode =treeHelper.getSelectedNode();
|
|
274
|
274
|
}
|
|
275
|
275
|
|
|
276
|
276
|
@Override
|
| ... |
... |
@@ -283,14 +283,14 @@ getUi().getListPane().setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SC |
|
283
|
283
|
// obtain the text from the delegate renderer
|
|
284
|
284
|
JLabel comp = (JLabel) delegate.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);
|
|
285
|
285
|
|
|
286
|
|
- if (value == null || !(value instanceof AbstractReference) || containerNode.get() == null) {
|
|
|
286
|
+ if (value == null || !(value instanceof AbstractReference) || containerNode == null) {
|
|
287
|
287
|
|
|
288
|
288
|
// rien de plus a faire
|
|
289
|
289
|
return comp;
|
|
290
|
290
|
}
|
|
291
|
291
|
|
|
292
|
292
|
// recuperation du noeud correspondant dans l'arbre
|
|
293
|
|
- NavigationTreeNodeSupport node = treeHelper.getChild(containerNode.get(), ((AbstractReference) value).getId());
|
|
|
293
|
+ NavigationTreeNodeSupport node = treeHelper.getChild(containerNode , ((AbstractReference) value).getId());
|
|
294
|
294
|
|
|
295
|
295
|
if (node == null) {
|
|
296
|
296
|
|