4,10 → 4,10 |
* Coded by: Group 5, software practice summer 2003 |
* University of Bielefeld, Germany |
* |
* @version $Revision: 1.47 $ |
* @version $Revision: 1.48 $ |
* |
* Last modification: $Date: 2003/07/22 13:41:54 $ |
* $Id: UpdateView.java,v 1.47 2003/07/22 13:41:54 cstollen Exp $ |
* Last modification: $Date: 2003/07/22 14:11:26 $ |
* $Id: UpdateView.java,v 1.48 2003/07/22 14:11:26 smcsporr Exp $ |
*/ |
|
package src.gui; |
46,7 → 46,7 |
* |
* @author Christian Stollenwerk |
* |
* @version $Revision: 1.47 $ Last modification: $Date: 2003/07/22 13:41:54 $ |
* @version $Revision: 1.48 $ Last modification: $Date: 2003/07/22 14:11:26 $ |
*/ |
public class UpdateView implements ActionListener, UpdateViewInterface, |
OurEventListener, TreeModelListener, TreeExpansionListener, TreeSelectionListener { |
109,7 → 109,30 |
} |
} |
} |
|
|
/** |
* Returns the TreePath of the actual selected element |
* |
* author Matthias Donner |
* |
* @return The TreePath of the actual selected element. null if no Node is selected. |
* |
* Last revision: 23-Jul-2003 |
*/ |
|
public TreePath getActualSelectedPath() { |
|
treeVisibleList = documentManagerInterface.getActualVisibleTree(); |
|
if(treeVisibleList.size() != 0) { |
int selectedRow=((Integer)treeVisibleList.getFirst()).intValue(); |
return newPopUpJTree.getPathForRow(selectedRow); |
}else{ |
return null; |
} |
} |
|
|
/** |
* Method makes an update of the actual tree view. |