/** * Adds the icon and content components to the panel. You can override this method if you want * custom components to be added * * @param model * model that can be used to retrieve the TreeNode * * @param tree */ protected void addComponents(IModel<Object> model, BaseTree tree) { add(newImageComponent("icon", tree, model)); add(newContentComponent("content", tree, model)); }