org.openbp.cockpit.plugins.finder.treemodel
Interface DataMapper

All Known Implementing Classes:
SimpleMapper

public interface DataMapper

Mapper for an object that is displayed in the tree.

Author:
Baumgartner Michael

Method Summary
 LeafNode createLeafNode()
          Create the leaf node for the data object.
 PropertyNode createPropertyNode(int level)
          Create the propertyNode of the level.
 int getLevels()
          Get the number of levels without the leafnode.
 void init(java.lang.Object data)
          Initialize the mapper with a special object.
 

Method Detail

getLevels

int getLevels()
Get the number of levels without the leafnode.


createPropertyNode

PropertyNode createPropertyNode(int level)
Create the propertyNode of the level.

Parameters:
level - Node level
Returns:
The property node

createLeafNode

LeafNode createLeafNode()
Create the leaf node for the data object.

Returns:
The leaf node

init

void init(java.lang.Object data)
Initialize the mapper with a special object.

Parameters:
data - Initialization data passed by the caller


Copyright © 2011. All Rights Reserved.