net.sf.doolin.gui.swing
Class DefaultTextLabelInfoProvider

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

public class DefaultTextLabelInfoProvider
extends Object
implements LabelInfoProvider

Generates a text-only label info, using the text representation of the given object or a default text if the given object is null or blank.

Author:
Damien Coraboeuf

Constructor Summary
DefaultTextLabelInfoProvider()
           
 
Method Summary
 LabelInfo getLabelIcon(Object item)
          Gets the label information.
 void setDefaultTextExpression(String defaultTextExpression)
          Default text
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultTextLabelInfoProvider

public DefaultTextLabelInfoProvider()
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

setDefaultTextExpression

public void setDefaultTextExpression(String defaultTextExpression)
Default text

Parameters:
defaultTextExpression - Expression


Copyright © 2011. All Rights Reserved.