Class NodeModel<T>
- java.lang.Object
-
- 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>
,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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
detach()
Calls getWrappedModel().detach();boolean
equals(Object obj)
boolean[]
getBranches()
int
getDepth()
T
getObject()
Gets the model object.IModel<T>
getWrappedModel()
Get the wrapped model.int
hashCode()
void
setObject(T object)
Sets the model object.
-
-
-
Method Detail
-
getWrappedModel
public IModel<T> getWrappedModel()
Get the wrapped model.- Specified by:
getWrappedModel
in interfaceIWrapModel<T>
- Returns:
- wrapped model
-
setObject
public void setObject(T object)
Description copied from interface:IModel
Sets the model object.
-
detach
public void detach()
Description copied from interface:IWrapModel
Calls getWrappedModel().detach();- Specified by:
detach
in interfaceIDetachable
- Specified by:
detach
in interfaceIModel<T>
- Specified by:
detach
in interfaceIWrapModel<T>
- See Also:
IDetachable.detach()
-
getDepth
public int getDepth()
-
getBranches
public boolean[] getBranches()
-
-