Interface ViewNodeContainer

All Superinterfaces:
BrickListener
All Known Implementing Classes:
RootBrick, ViewNode

public interface ViewNodeContainer extends BrickListener
interface of nodes which can contain view nodes
  • Method Details

    • add

      void add(List<BeanProxy<?>> beanProxies)
      Add the views to this node
      Parameters:
      beanProxies - the views to add to this node
    • insertSiblings

      void insertSiblings(List<BeanProxy<?>> beanProxies)
      Insert the views in this node beginning at the specified index
      Parameters:
      beanProxies - the views to add to this node
    • addNodes

      void addNodes(List<BeanNode<?>> nodes)
      Add the views nodes to this node
      Parameters:
      nodes - the nodes to add to this node
    • getTreeIndexOffsetFromViewIndex

      int getTreeIndexOffsetFromViewIndex()
      Get the tree index offset from the view index
      Returns:
      the tree index offset
    • insertViewNode

      void insertViewNode(ViewNode node, int viewIndex)
      Insert the bean nodes in this node beginning at the specified index
      Parameters:
      node - the node to add to this node
      viewIndex - the initial index at which to begin inserting the nodes
    • insertSiblingNodes

      void insertSiblingNodes(List<BeanNode<?>> nodes)
      Insert the view nodes in this node beginning at the specified index
      Parameters:
      nodes - the nodes to add to this node
    • moveDownNodes

      void moveDownNodes(List<BeanNode<?>> nodes)
      Move the specified nodes down
    • moveUpNodes

      void moveUpNodes(List<BeanNode<?>> nodes)
      Move the specified nodes up
    • removeNode

      void removeNode(BeanNode<?> node)
      Remove the view node from this container
      Parameters:
      node - the node to remove
    • removeNodes

      void removeNodes(List<BeanNode<?>> nodes)
      Remove the view nodes from this container
      Parameters:
      nodes - the nodes to remove
    • canAdd

      boolean canAdd(BeanProxy<?> beanProxy)
      Determine if the brick can add the specified view
      Returns:
      true if it can add the specified view and false if not
    • canBeSibling

      boolean canBeSibling(BeanProxy<?> beanProxy)
      Determine if the brick can be inserted in this view's parent
      Returns:
      true the view can be a sibling to this view and false if not
    • canAllBeSiblings

      boolean canAllBeSiblings(List<BeanProxy<?>> beanProxies)
      Determine if all views can be sibling views
      Returns:
      true if all views can be siblings and false if not
    • canAddAll

      boolean canAddAll(List<BeanProxy<?>> views)
      Determine if the brick can add all of the specified views
      Returns:
      true if it can add the specified view and false if not
    • canAddNode

      boolean canAddNode(BeanNode<?> node)
      Determine if the brick can add the specified view node
      Returns:
      true if it can add the specified view node and false if not
    • canAddAllNodes

      boolean canAddAllNodes(List<BeanNode<?>> nodes)
      Determine if the brick can add all of the specified view nodes
      Returns:
      true if it can add all of the specified view nodes and false if not
    • canAllNodesBeSiblings

      boolean canAllNodesBeSiblings(List<BeanNode<?>> nodes)
      Determine if all views can be sibling views
      Returns:
      true if all views can be siblings and false if not