Skip to content

Instantly share code, notes, and snippets.

View amiroslaw's full-sized avatar

Arkadiusz amiroslaw

View GitHub Profile
@andytill
andytill / HierarchyTreeCell.java
Created November 4, 2012 00:44
A JavaFX TreeCell implementation with drag and drop.
package projmon.hierarchical;
import javafx.event.EventHandler;
import javafx.geometry.Point2D;
import javafx.scene.control.TreeCell;
import javafx.scene.control.TreeItem;
import javafx.scene.effect.InnerShadow;
import javafx.scene.input.ClipboardContent;
import javafx.scene.input.DragEvent;
import javafx.scene.input.Dragboard;
@rotty3000
rotty3000 / LoginPortletActionFilter.java
Last active December 3, 2019 01:34
Example of using OSGi-DS Component as a portlet filter in future versions of Liferay.
/**
* Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
@manuel-mauky
manuel-mauky / RecursiveTreeItem.java
Created May 31, 2015 18:44
Recursive DataModel for JavaFX TreeView/TreeTableView
import javafx.collections.ListChangeListener;
import javafx.collections.ObservableList;
import javafx.scene.Node;
import javafx.scene.control.TreeItem;
import javafx.util.Callback;
import java.util.List;
import java.util.stream.Collectors;
public class RecursiveTreeItem<T> extends TreeItem<T> {