Skip to content
Snippets Groups Projects
Commit cb6ab1ef authored by Alexander Diewald's avatar Alexander Diewald
Browse files

JFX: Content Provider for Lists/Streams of no-child elements

parent b87b5ff5
No related branches found
No related tags found
1 merge request!1263541
......@@ -9,5 +9,6 @@ DynamicTreeTableViewer.java 129fdcd259e5b7f2528dfeb407676528dcc694be YELLOW
DynamicTreeUIProviderBase.java e9b68607683de279d0cb8712a28dc131c5c33ece GREEN
DynamicTreeViewer.java 8c20c0941bd299afce1cf237c8e29e21821c2631 YELLOW
DynamicTreeViewerBase.java a2013538b62d86f6a09efdf2cd78babac2072484 GREEN
EmptyChildrenContentProvider.java 51b4468f9df8423abeea5ac6aa2f6cf99c2eb512 YELLOW
IDoubleClickHandler.java 447f7769dead9a106b3ea3139ef0da51eb0b9a89 GREEN
IDynamicItem.java 083d02459e7ec33542d9910c04abe2581e0b5422 YELLOW
/*-------------------------------------------------------------------------+
| Copyright 2019 fortiss GmbH |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
+--------------------------------------------------------------------------*/
package org.fortiss.tooling.common.ui.javafx.control.treetableview;
import static java.util.Collections.emptyList;
import java.util.Collection;
/**
* Dummy {@link DynamicListContentProvider} for collections whose elements do not provide further
* children.
*
* @author diewald
*/
public class EmptyChildrenContentProvider<T> extends DynamicListContentProvider<T> {
/** {@inheritDoc} */
@Override
protected Collection<T> getChildren(T parent) {
return emptyList();
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment