se.liu.ida.critiquer.gui
Class CriticTextArea

java.lang.Object
  extended by se.liu.ida.critiquer.gui.CriticTextArea
All Implemented Interfaces:
ConstraintStatusListener

public class CriticTextArea
extends Object
implements ConstraintStatusListener

This class models the critic text area and makes cure to clear

Author:
olale

Constructor Summary
CriticTextArea()
           
 
Method Summary
 void activeStatusChanged(StandardConstraint c)
          Replace the controlling critic with this one if there is a new text critic active
 JComponent getComponent()
           
 void violationStatusChanged(StandardConstraint c)
          Render critique if it is our constraint that fired this and it is active
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CriticTextArea

public CriticTextArea()
Method Detail

getComponent

public JComponent getComponent()

activeStatusChanged

public void activeStatusChanged(StandardConstraint c)
Replace the controlling critic with this one if there is a new text critic active

Specified by:
activeStatusChanged in interface ConstraintStatusListener
See Also:
ConstraintStatusListener.activeStatusChanged(se.liu.ida.critiquer.constraints.StandardConstraint)

violationStatusChanged

public void violationStatusChanged(StandardConstraint c)
Render critique if it is our constraint that fired this and it is active

Specified by:
violationStatusChanged in interface ConstraintStatusListener
See Also:
ConstraintStatusListener.violationStatusChanged(se.liu.ida.critiquer.constraints.StandardConstraint)