So that nodes have internally different name but shows other name, that would be easy for me to apply searching constraints on original name, but display modified name.
treePanel = new JUResourceTypeTreeStructurePanel
(I18N_ID, "menu.title", _panelBinding,VIEW_NAME,
masterBindings,MASTER_VIEW_SYNC,
wizard,archiveAction,toggleAction,unArchiveAction,
copyAction, pasteAction
);
JUCtrlHierTypeBinding[] masterBindings = new JUCtrlHierTypeBinding[]
{
new JUTreeAccessorTypeBinding("NodeType1", MASTER_VIEW_CLASS, "NameDate", "Children", masterIcon, masterIcon, masterIcon)
};
so here in master binf=ding namedate is passed, get path returns path of namedate type which is then selected through binding, whether the searching is made through any id,name etc. i want this NAMEDATE to be NAMEDATEID, for unique search path creation but to show only name as nodename.
DefaultTreeCellRenderer renderer = new DefaultTreeCellRenderer()
{
public Component getTreeCellRendererComponent(JTree tree, Object value, Boolean selected, Boolean expanded, Boolean leaf, int row, Boolean hasFocus)
{
return super.getTreeCellRendererComponent(tree, value, selected, expanded, leaf, row, hasFocus);
}
};
_SelectPanel.getJUTree().setCellRenderer(renderer);
what methos is there to change the node name, can anybody suggest.