net.sf.doolin.gui.swing
Class DefaultTextLabelInfoProvider
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultTextLabelInfoProvider
public DefaultTextLabelInfoProvider()
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.