org.apache.wicket.extensions.markup.html.repeater.tree.table
Class NodeModel<T>

java.lang.Object
  extended by org.apache.wicket.extensions.markup.html.repeater.tree.table.NodeModel<T>
Type Parameters:
T - type of nodes
All Implemented Interfaces:
Serializable, IDetachable, IModel<T>, IWrapModel<T>, org.apache.wicket.util.io.IClusterable

public class NodeModel<T>
extends Object
implements IWrapModel<T>

A model wrapping the actual node model, carrying additional information about the parental branches.

Author:
svenmeier
See Also:
getBranches(), ITreeProvider.model(Object), Serialized Form

Constructor Summary
NodeModel(IModel<T> model, boolean[] branches)
          Wrap the given model.
 
Method Summary
 void detach()
           
 boolean equals(Object obj)
           
 boolean[] getBranches()
           
 int getDepth()
           
 T getObject()
           
 IModel<T> getWrappedModel()
          Get the wrapped model.
 int hashCode()
           
 void setObject(T object)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeModel

public NodeModel(IModel<T> model,
                 boolean[] branches)
Wrap the given model.

Parameters:
model - model to wrap
branches -
Method Detail

getWrappedModel

public IModel<T> getWrappedModel()
Get the wrapped model.

Specified by:
getWrappedModel in interface IWrapModel<T>
Returns:
wrapped model

getObject

public T getObject()
Specified by:
getObject in interface IModel<T>

setObject

public void setObject(T object)
Specified by:
setObject in interface IModel<T>

detach

public void detach()
Specified by:
detach in interface IDetachable

getDepth

public int getDepth()

getBranches

public boolean[] getBranches()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


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