Class AbstractNode<T>

    • Field Detail

      • object

        protected T object
        Business object behind this node (model)
      • displayName

        protected String displayName
        Node's displayName. If null, the toString method of the business object will be used
      • iconUrl

        protected String iconUrl
      • hasChildren

        protected boolean hasChildren
    • Constructor Detail

      • AbstractNode

        public AbstractNode​(T object)
    • Method Detail

      • getDisplayName

        public String getDisplayName()
      • setDisplayName

        public void setDisplayName​(String displayName)
      • getIconUrl

        public String getIconUrl()
      • setIconUrl

        public void setIconUrl​(String iconUrl)
      • isHasChildren

        public boolean isHasChildren()
      • setHasChildren

        public void setHasChildren​(boolean hasChildren)
      • getObject

        public T getObject()
        Retrieves the business object behind the node
        Returns:
        The business object, whose type is specified in the template (T)
      • getActions

        public abstract AbstractAction[] getActions()
        Actions associated to this node
        Returns:
        An array of actions
      • refresh

        public abstract void refresh​(boolean recursive)
        What to do when commanded to refresh the node.
        Parameters:
        recursive - Refresh the children nodes.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object