Class InsertLocation.Factory

  • Enclosing interface:
    InsertLocation

    public static class InsertLocation.Factory
    extends Object
    The factory provides methods to instantiate a particular insert location.
    • Method Detail

      • createFirst

        public static InsertLocation createFirst()
        Inserts the Item as first child into its parent.
        Returns:
        the location for item to insert.
      • createLast

        public static InsertLocation createLast()
        Inserts the Item as last child into its parent.
        Returns:
        the location for item to insert.
      • createBefore

        public static InsertLocation createBefore​(Item item)
        Inserts the Item before the specified sibling into its parent.
        Parameters:
        item - the reference item.
        Returns:
        the location for item to insert.
      • createAfter

        public static InsertLocation createAfter​(Item item)
        Inserts the Item after the specified sibling into its parent.
        Parameters:
        item - the reference item.
        Returns:
        the location for item to insert.
      • createAtIndex

        public static InsertLocation createAtIndex​(int index)
        Inserts the Item at the specified index into its parent.
        Parameters:
        index - the reference index.
        Returns:
        the location for item to insert.