All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.eclipse.fx.ui.controls.sceneviewer.OpenItemEvent Maven / Gradle / Ivy

There is a newer version: 2.2.0
Show newest version
/*******************************************************************************
 * Copyright (c) 2014 BestSolution.at and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     Tom Schindl  - initial API and implementation
 *******************************************************************************/
package org.eclipse.fx.ui.controls.sceneviewer;

import javafx.event.Event;
import javafx.event.EventType;
import javafx.scene.Node;

/**
 * Event fired when an item of the viewer has to be opened
 *
 * @since 1.1
 */
public class OpenItemEvent extends Event {

	/**
	 *
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * Event type
	 */
	public static final EventType OPEN_ITEM = new EventType(
			Event.ANY, "OPEN_ITEM"); //$NON-NLS-1$

	private final Node itemNode;

	/**
	 * Create a new open event
	 *
	 * @param itemNode
	 *            the node to open
	 */
	public OpenItemEvent(Node itemNode) {
		super(OPEN_ITEM);
		this.itemNode = itemNode;
	}

	/**
	 * @return the item node
	 */
	public Node getItemNode() {
		return this.itemNode;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy