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

public class NodeModel<T> extends Object implements org.apache.wicket.model.IWrapModel<T>
A model wrapping the actual node model, carrying additional information about the parental branches.
Author:
svenmeier
See Also:
  • Constructor Details

    • NodeModel

      public NodeModel(org.apache.wicket.model.IModel<T> model, boolean[] branches)
      Wrap the given model.
      Parameters:
      model - model to wrap
      branches -
  • Method Details

    • getWrappedModel

      public org.apache.wicket.model.IModel<T> getWrappedModel()
      Get the wrapped model.
      Specified by:
      getWrappedModel in interface org.apache.wicket.model.IWrapModel<T>
      Returns:
      wrapped model
    • getObject

      public T getObject()
      Specified by:
      getObject in interface org.apache.wicket.model.IModel<T>
      Specified by:
      getObject in interface org.apache.wicket.model.IWrapModel<T>
    • setObject

      public void setObject(T object)
      Specified by:
      setObject in interface org.apache.wicket.model.IModel<T>
      Specified by:
      setObject in interface org.apache.wicket.model.IWrapModel<T>
    • detach

      public void detach()
      Specified by:
      detach in interface org.apache.wicket.model.IDetachable
      Specified by:
      detach in interface org.apache.wicket.model.IModel<T>
      Specified by:
      detach in interface org.apache.wicket.model.IWrapModel<T>
    • 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