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

org.butterfaces.model.tree.Node Maven / Gradle / Ivy

There is a newer version: 3.5.0
Show newest version
package org.butterfaces.model.tree;

import java.util.List;

/**
 * Created by larmic on 24.10.14.
 */
public interface Node {

    /**
     * @return the node title.
     */
    String getTitle();

    /**
     * @return the (optional) node description.
     */
    String getDescription();

    /**
     * @return optional object data.
     */
    T getData();

    /**
     * Returns an optional display icon. Will be rendered in front of the node title. Value should contain a relative
     * path to the webapp folder.
     *
     * @return optional display icon
     */
    String getImageIcon();

    /**
     * Returns an optional display glyphicon. Will be rendered in front of the node title. If image icon is set although
     * glyphicon icon will be ignored.
     *
     * @return optional glyphicon icon
     */
    String getGlyphiconIcon();

    /**
     * @return optional node style class.
     */
    String getStyleClass();

    /**
     * @return true if node and all sub nodes are collapsed.
     */
    boolean isCollapsed();

    /**
     * Sets collapsed flag.
     *
     * @param collapsed flag
     */
    void setCollapsed(final boolean collapsed);

    /**
     * @return a list of child nodes. An empty list if no sub nodes exits.
     */
    List getSubNodes();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy