net.sf.doolin.gui.swing
Class PropertyLabelInfoProvider

java.lang.Object
  extended by net.sf.doolin.gui.swing.PropertyLabelInfoProvider
All Implemented Interfaces:
LabelInfoProvider

public class PropertyLabelInfoProvider
extends Object
implements LabelInfoProvider

Creates a LabelInfo according to some properties in the item.

Author:
Damien Coraboeuf

Constructor Summary
PropertyLabelInfoProvider()
           
 
Method Summary
 LabelInfo getLabelIcon(Object item)
          Gets the label information.
 void setIconPropertyPath(String iconPropertyPath)
          Sets the path to the property that contains the icon
 void setIconService(IconService iconService)
          Sets the icon service used to access the icon
 void setTextPropertyPath(String textPropertyPath)
          Sets the path to the property that contains the text
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyLabelInfoProvider

public PropertyLabelInfoProvider()
Method Detail

getLabelIcon

public LabelInfo getLabelIcon(Object item)
Description copied from interface: LabelInfoProvider
Gets the label information.

Specified by:
getLabelIcon in interface LabelInfoProvider
Parameters:
item - the item
Returns:
the label information

setTextPropertyPath

public void setTextPropertyPath(String textPropertyPath)
Sets the path to the property that contains the text

Parameters:
textPropertyPath - Path to the property that contains the text

setIconPropertyPath

public void setIconPropertyPath(String iconPropertyPath)
Sets the path to the property that contains the icon

Parameters:
iconPropertyPath - Property path

setIconService

public void setIconService(IconService iconService)
Sets the icon service used to access the icon

Parameters:
iconService - Icon service


Copyright © 2011. All Rights Reserved.