org.pm4j.core.pm.impl.title
Class TitleProviderAttrValueBased

java.lang.Object
  extended by org.pm4j.core.pm.impl.title.TitleProviderPmResBased<PmObjectBase>
      extended by org.pm4j.core.pm.impl.title.TitleProviderAttrValueBased
All Implemented Interfaces:
PmTitleProvider<PmObjectBase>

public class TitleProviderAttrValueBased
extends TitleProviderPmResBased<PmObjectBase>

A simple provider that provides titles based on attribute values.

FIXME olaf: No attribute value change listener implemented yet...


Field Summary
 
Fields inherited from class org.pm4j.core.pm.impl.title.TitleProviderPmResBased
INSTANCE
 
Constructor Summary
TitleProviderAttrValueBased(java.lang.String attrName, boolean usedForPmElement)
          Default constructor.
 
Method Summary
 java.lang.String getTitle(PmObjectBase pm)
          
 
Methods inherited from class org.pm4j.core.pm.impl.title.TitleProviderPmResBased
canSetTitle, getIconPath, getShortTitle, getToolTip, setTitle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TitleProviderAttrValueBased

public TitleProviderAttrValueBased(java.lang.String attrName,
                                   boolean usedForPmElement)
Default constructor.

Method Detail

getTitle

public java.lang.String getTitle(PmObjectBase pm)
Description copied from class: TitleProviderPmResBased

Specified by:
getTitle in interface PmTitleProvider<PmObjectBase>
Overrides:
getTitle in class TitleProviderPmResBased<PmObjectBase>
Parameters:
pm - An item to get a title for.
Returns:
The value of the attribute with the name attrName.