net.sf.doolin.gui.swing
Class ExpressionLabelInfoProvider

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

public class ExpressionLabelInfoProvider
extends Object
implements LabelInfoProvider

LabelInfoProvider based on a GUIExpression.

Author:
Damien Coraboeuf

Constructor Summary
ExpressionLabelInfoProvider()
          Default constructor
ExpressionLabelInfoProvider(String expression)
          Constructor with a default expression
 
Method Summary
 String getExpression()
          Returns the expression
 String getIconExpression()
          Returns the expression used to get icon id
 LabelInfo getLabelIcon(Object item)
          Gets the label information.
 void setExpression(String expression)
          Sets the expression to use
 void setIconExpression(String iconExpression)
          Sets the expression to use to get the icon id
 void setIconService(IconService iconService)
          Sets the icon service used to access icons
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExpressionLabelInfoProvider

public ExpressionLabelInfoProvider()
Default constructor


ExpressionLabelInfoProvider

public ExpressionLabelInfoProvider(String expression)
Constructor with a default expression

Parameters:
expression - Expression to use
Method Detail

getExpression

public String getExpression()
Returns the expression

Returns:
Expression

getIconExpression

public String getIconExpression()
Returns the expression used to get icon id

Returns:
Expression

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

setExpression

public void setExpression(String expression)
Sets the expression to use

Parameters:
expression - Expression

setIconExpression

public void setIconExpression(String iconExpression)
Sets the expression to use to get the icon id

Parameters:
iconExpression - Expression

setIconService

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

Parameters:
iconService - Icon service


Copyright © 2011. All Rights Reserved.