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

events.system.application.model.TopicTreeNode Maven / Gradle / Ivy

package events.system.application.model;

import events.system.model.Topics;
import de.alpharogroup.tree.TreeNode;


/**
 * The Class TopicTreeNode.
 * 
 * @author Asterios Raptis
 */
public class TopicTreeNode extends TreeNode {

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

	/**
	 * Instantiates a new topic tree node.
	 * 
	 * @param value
	 *            the value
	 */
	public TopicTreeNode(final Topics value) {
		super(value);
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	public boolean isNode() {
		return getValue().getNode();
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	public String toString() {
		if(getDisplayValue() != null) {
			return getDisplayValue();
		}
		return getValue().getName();
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy