Javadoc
Provides the model that will be used to feed the node text.
Example implementation: return new PropertyModel(nodeModel, "object.name");
which will translate to YourTreeNodeSubclass.getObject().getName();
NOTE: remember that the nodeModel represents the TreeNode object, not the model object inside
it
NOTE: this method is called from the default implementation of
#newNodeComponent(String,IModel), so if it is subclassed this method may no longer
be called unless the subclassing code maintains the callback explicitly