net.sf.doolin.gui.action.path.statusbar
Class ExpressionLabelConnector

java.lang.Object
  extended by net.sf.doolin.gui.action.path.statusbar.ExpressionLabelConnector
All Implemented Interfaces:
LabelConnector

public class ExpressionLabelConnector
extends Object
implements LabelConnector

Connector that binds the label text to the result of an expression. The model bean for the expression is the action context data.

Author:
Damien Coraboeuf

Constructor Summary
ExpressionLabelConnector()
           
 
Method Summary
 void connect(ActionContext actionContext, JLabel label)
          Connects the label's text to the application state
 String getExpression()
          Gets the expression
 void setExpression(String expression)
          Sets the expression
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExpressionLabelConnector

public ExpressionLabelConnector()
Method Detail

connect

public void connect(ActionContext actionContext,
                    JLabel label)
Description copied from interface: LabelConnector
Connects the label's text to the application state

Specified by:
connect in interface LabelConnector
Parameters:
actionContext - Action context the label belongs to.
label - Label to bind

getExpression

public String getExpression()
Gets the expression

Returns:
Expression

setExpression

public void setExpression(String expression)
Sets the expression

Parameters:
expression - Expression to set


Copyright © 2011. All Rights Reserved.