com.tssap.util.ui.reuse.tree
Interface IAddRemoveCallback
- All Known Subinterfaces:
- ITreeSelectorCallback
- public interface IAddRemoveCallback
|
Method Summary |
java.lang.Object |
addElement(java.lang.Object currentSelection)
Performs the adding of the new element at the given position.
|
boolean |
canAddElement(java.lang.Object currentSelection)
Answers if the implementation is able to a add a new Element at the given position. |
boolean |
canRemoveElement(java.lang.Object currentSelection)
Answers if the implementation is able to remove the given Object from the model |
boolean |
removeElement(java.lang.Object currentSelection)
Performs removing of the given Element from the model
It's garanteed that @see #canRemoveElement(Object) returned true. |
canAddElement
public boolean canAddElement(java.lang.Object currentSelection)
- Answers if the implementation is able to a add a new Element at the given position.
- Parameters:
currentSelection - a Object discribing the position in the tree sturcture where an "Add Element" is requested- Returns:
- if the implementation is able to a add a new Element at the given position.
- See Also:
addElement(Object)
addElement
public java.lang.Object addElement(java.lang.Object currentSelection)
- Performs the adding of the new element at the given position.
It's garanteed that @see #canAddElement(Object) returned true.
The implementation is free to add the new Element as a child or a sibling of the current position
- Parameters:
currentSelection - a Object discribing the position in the tree sturcture where an "Add Element" is requested- Returns:
- the new Element added to the model. May be null when creation fails.
canRemoveElement
public boolean canRemoveElement(java.lang.Object currentSelection)
- Answers if the implementation is able to remove the given Object from the model
- Parameters:
currentSelection - the Object to remove- Returns:
- if the implementation is able to remove the given Object from the model
removeElement
public boolean removeElement(java.lang.Object currentSelection)
- Performs removing of the given Element from the model
It's garanteed that @see #canRemoveElement(Object) returned true.
- Parameters:
currentSelection - the Object to remove from the model- Returns:
- whether the Object was removed succesfully
Copyright © 2005 SAP AG. All Rights Reserved.