/**
* Checks if the given {@link MouseEvent} is on the selected cell.
*
* @param pMouseEvent the {@link MouseEvent}.
* @return {@code true} if the given event is on the selected cell.
*/
private boolean isOnSelectedCell(MouseEvent pMouseEvent)
{
EventTarget target = pMouseEvent.getTarget();
if (target instanceof Node)
{
Node targetNode = (Node)target;
while (targetNode != null && !(targetNode instanceof FXDataBooksTree))
{
if (targetNode instanceof TreeCell<?>)
{
return ((TreeCell<?>)targetNode).isSelected();
}
targetNode = targetNode.getParent();
}
}
return false;
}
JavaFXTree.java 文件源码
java
阅读 24
收藏 0
点赞 0
评论 0
项目:JVx.javafx
作者:
评论列表
文章目录