public static class InsertLocation.Factory extends Object
Constructor and Description |
---|
Factory() |
Modifier and Type | Method and Description |
---|---|
static InsertLocation |
createAfter(Item item)
Inserts the
Item after the specified sibling into its parent. |
static InsertLocation |
createAtIndex(int index)
Inserts the
Item at the specified index into its parent. |
static InsertLocation |
createBefore(Item item)
Inserts the
Item before the specified sibling into its parent. |
static InsertLocation |
createFirst()
Inserts the
Item as first child into its parent. |
static InsertLocation |
createLast()
Inserts the
Item as last child into its parent. |
public static InsertLocation createFirst()
Item
as first child into its parent.public static InsertLocation createLast()
Item
as last child into its parent.public static InsertLocation createBefore(Item item)
Item
before the specified sibling into its parent.item
- the reference item.public static InsertLocation createAfter(Item item)
Item
after the specified sibling into its parent.item
- the reference item.public static InsertLocation createAtIndex(int index)
Item
at the specified index into its parent.index
- the reference index.