org.apache.wicket.examples.tree.content
Class Content

java.lang.Object
  extended by org.apache.wicket.examples.tree.content.Content
All Implemented Interfaces:
Serializable, IDetachable, IClusterable
Direct Known Subclasses:
BookmarkableFolderContent, CheckedFolderContent, EditableFolderContent, FolderContent, LabelContent, MixedContent, MultiLineLabelContent, MultiSelectableFolderContent, PanelContent, SelectableFolderContent

public abstract class Content
extends Object
implements IDetachable

Tree content factory for the TreePage. Note: This indirection is used for demonstration purposes only! Don't jump through similar hoops if you're just using one type of content for your application's trees.

Author:
Sven Meier
See Also:
Serialized Form

Constructor Summary
Content()
           
 
Method Summary
 void detach()
          Detaches model after use.
abstract  Component newContentComponent(String id, AbstractTree<Foo> tree, IModel<Foo> model)
          Create new content.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Content

public Content()
Method Detail

newContentComponent

public abstract Component newContentComponent(String id,
                                              AbstractTree<Foo> tree,
                                              IModel<Foo> model)
Create new content.


detach

public void detach()
Description copied from interface: IDetachable
Detaches model after use. This is generally used to null out transient references that can be re-attached later.

Specified by:
detach in interface IDetachable


Copyright © 2006-2012 Apache Software Foundation. All Rights Reserved.