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

com.github.bordertech.wcomponents.examples.menu.StringTreeNode Maven / Gradle / Ivy

There is a newer version: 1.5.36
Show newest version
package com.github.bordertech.wcomponents.examples.menu;

import com.github.bordertech.wcomponents.util.AbstractTreeNode;

/**
 * Trivial implementation of a tree node, in order to show how to transform a tree structure into a menu structure.
 *
 * @author Yiannis Paschalidis
 */
final class StringTreeNode extends AbstractTreeNode {

	/**
	 * The data for this node.
	 */
	private final String data;

	/**
	 * Creates a StringTreeNode.
	 *
	 * @param data the node data.
	 */
	StringTreeNode(final String data) {
		this.data = data;
	}

	/**
	 * @return the node data.
	 */
	public String getData() {
		return data;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy