org.openbp.cockpit.plugins.finder
Class RefStrategy

java.lang.Object
  extended by org.openbp.cockpit.plugins.finder.RefStrategy
All Implemented Interfaces:
Strategy

public class RefStrategy
extends java.lang.Object
implements Strategy

Strategy for the reference tree.

Author:
Baumgartner Michael

Field Summary
static java.lang.String ITEMTYPE_KEY
          Property key for the itemtype display in the node.
static java.lang.String PRIORITY_KEY
          Property key for the priority of the nodes.
static java.lang.String REFERENCE_ITEMTYPE_KEY
          Property key for the itemtype of the reference item.
 
Constructor Summary
RefStrategy()
           
 
Method Summary
 DataMapper createDataMapper(java.lang.Object leafData)
          Create a datamapper for a data object.
 java.util.Comparator getTreeComparator()
          Get the comparator that is used in the tree.
 void setReferenceItemType(java.lang.String itemType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ITEMTYPE_KEY

public static final java.lang.String ITEMTYPE_KEY
Property key for the itemtype display in the node. Used by the renderer.

See Also:
Constant Field Values

REFERENCE_ITEMTYPE_KEY

public static final java.lang.String REFERENCE_ITEMTYPE_KEY
Property key for the itemtype of the reference item.

See Also:
Constant Field Values

PRIORITY_KEY

public static final java.lang.String PRIORITY_KEY
Property key for the priority of the nodes. Used by the comparator.

See Also:
Constant Field Values
Constructor Detail

RefStrategy

public RefStrategy()
Method Detail

setReferenceItemType

public void setReferenceItemType(java.lang.String itemType)

createDataMapper

public DataMapper createDataMapper(java.lang.Object leafData)
Description copied from interface: Strategy
Create a datamapper for a data object.

Specified by:
createDataMapper in interface Strategy
Parameters:
leafData - The data object to map
Returns:
data mapper

getTreeComparator

public java.util.Comparator getTreeComparator()
Description copied from interface: Strategy
Get the comparator that is used in the tree.

Specified by:
getTreeComparator in interface Strategy
Returns:
comparator or null if the tree should not be sorted


Copyright © 2011. All Rights Reserved.