com.tssap.util.ui.reuse.tree
Interface ITreeSelectorCallback

All Superinterfaces:
IAddRemoveCallback

public interface ITreeSelectorCallback
extends IAddRemoveCallback


Method Summary
 java.lang.String okToChangeSelection(IReuseable currentUIComponent)
          Called when the UI user of the @see TreeSelector changes the selection in the tree.
 void selectionAboutToChange(java.lang.Object currentSelection, IReuseable currentUIComponent)
          Informs the reciver that the selection changed in the @see com.tssap.util.ui.reuse.tree.TreeSelector right side tree.
 void selectionChanged(java.lang.Object currentSelection, IReuseable currentUIComponent)
          Informs the reciver that the prcess of performing a selection change in the @see TreeSelector is completed
 
Methods inherited from interface com.tssap.util.ui.reuse.tree.IAddRemoveCallback
addElement, canAddElement, canRemoveElement, removeElement
 

Method Detail

selectionAboutToChange

public void selectionAboutToChange(java.lang.Object currentSelection,
                                   IReuseable currentUIComponent)
Informs the reciver that the selection changed in the @see com.tssap.util.ui.reuse.tree.TreeSelector right side tree. The right side component wasn't updated yet
Parameters:
currentSelection - the selection before the change
currentUIComponent - the currently shown right side component
See Also:
selectionChanged(Object, IReuseable)

selectionChanged

public void selectionChanged(java.lang.Object currentSelection,
                             IReuseable currentUIComponent)
Informs the reciver that the prcess of performing a selection change in the @see TreeSelector is completed
Parameters:
currentSelection - the new selection
currentUIComponent - the new right side component

okToChangeSelection

public java.lang.String okToChangeSelection(IReuseable currentUIComponent)
Called when the UI user of the @see TreeSelector changes the selection in the tree. This method can veto (probably by testing the state of the right side component) this change is allowed. When a message != null is returned the @see TreeSelector will try to reset the selection and display the given message in it's status line.
Parameters:
currentUIComponent - the current right side component
Returns:
message explaining why the selection can not be changed or null when there is no veto against the selection change


Copyright © 2005 SAP AG. All Rights Reserved.