getting fullpath of a Subtreefolder inside reactOnSelect()

Hi Guys

I use a Client tree to mirror a directory, everything works fine but i need the fullpath of the folder the User selected.

Code is here:
public void reactOnSelect(){
System.out.println(Params.getApplicationDirectoryName(“AjaxLayout”));
}
This gives me the Fullpath to the Project what i need is the full path to the selected Folder.

I need something like Params.getSelectedFolderPath(this.getText());

Thankx for Help

Soulbrother

Hello,
the easiest way is to store the full path in each node object.

Instantiate your TreeItems :. For example

public class TreeItem extends NODEInfo
{
String m_path;

public TreeItem(String path  )
{   

	m_path = path;
}



public void reactOnSelect()
{

// Identify your selected node here and do something with m_path…
}