KEYTYPE - The key type.DATATYPE - The value type to be contained in tree items.ITEMTYPE - tree item typepublic interface ITreeItemWithIDFactory<KEYTYPE,DATATYPE,ITEMTYPE extends ITreeItemWithID<KEYTYPE,DATATYPE,ITEMTYPE>> extends Serializable
| Modifier and Type | Method and Description |
|---|---|
ITEMTYPE |
create(ITEMTYPE aParent,
KEYTYPE aDataID)
Create a child entry.
|
ITEMTYPE |
createRoot()
Create a root entry.
|
void |
onAddItem(ITEMTYPE aItem)
To be called once a tree item is added to the owning tree.
|
void |
onRemoveItem(ITEMTYPE aItem)
To be called once a tree item is removed from the owning tree.
|
@Nonnull ITEMTYPE createRoot()
null.ITEMTYPE create(@Nonnull ITEMTYPE aParent, @Nonnull KEYTYPE aDataID)
aParent - The parent entry to use. May not be null.aDataID - The data ID of the new elementnull.void onRemoveItem(@Nonnull ITEMTYPE aItem)
aItem - The item that was removed.Copyright © 2014–2021 Philip Helger. All rights reserved.