@Override @Nonnull public Node decorate (final @Nonnull Node node) { return new LookupFilterDecoratorNode(node, LOOKUP_FILTER); } }
@Override @Nonnull public Node decorate (final @Nonnull Node node) { return new LookupFilterDecoratorNode(node, LOOKUP_FILTER); } }
/******************************************************************************************************************* * * ******************************************************************************************************************/ private void populateDisplays (final @Nonnull Finder<ProfiledDisplay> finder) { final Node presentationModel = new NodePresentationModel(new DefaultSimpleComposite<ProfiledDisplay>(finder)); presentation.populateDisplays(new LookupFilterDecoratorNode(presentationModel, displaysCapabilityInjectorLookupFilter)); }
@Override @Nonnull public Node decorate (final @Nonnull Node node) { final DefaultSortable sortable = new DefaultSortable(); final Node sortableNode = new LookupFilterDecoratorNode(node, new SortableCompositeLookupFilter(sortable)); sortable.addPropertyChangeListener(new PropertyChangeListener() { @Override public void propertyChange (final @Nonnull PropertyChangeEvent event) { // Forces the reloading of children in sortableNode //@bluebook-ignore-begin final RearrangingChildren children = (RearrangingChildren)sortableNode.getChildren(); children.loadNodes(); //@bluebook-ignore-end } }); return sortableNode; } }
/******************************************************************************************************************* * * ******************************************************************************************************************/ private void populateMeasurementsArchive (final @Nonnull Finder<UniformityMeasurements> finder) { final Node pm = new NodePresentationModel(new DefaultSimpleComposite<UniformityMeasurements>(finder.sort(BY_DATE_TIME, DESCENDING))); presentation.populateMeasurementsArchive(new LookupFilterDecoratorNode(pm, measurementsCapabilityInjectorLookupFilter)); }