com.google.code.validationframework.swing.resulthandler
Class AbstractColorFeedback<RHI>

java.lang.Object
  extended by com.google.code.validationframework.swing.resulthandler.AbstractColorFeedback<RHI>
All Implemented Interfaces:
com.google.code.validationframework.api.resulthandler.ResultHandler<RHI>

public abstract class AbstractColorFeedback<RHI>
extends Object
implements com.google.code.validationframework.api.resulthandler.ResultHandler<RHI>


Constructor Summary
AbstractColorFeedback(JComponent componentToBeColored)
          Constructor specifying the component to attached to.
 
Method Summary
 void attach(JComponent componentToBeColored)
          Attaches the feedback to the specified component.
 void detach()
          Detaches the feedback from the previously attached component.
protected  Color getBackground()
           
protected  Color getForeground()
           
protected  void hideColors()
           
protected  void setBackground(Color background)
           
protected  void setForeground(Color foreground)
           
protected  void showColors()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.google.code.validationframework.api.resulthandler.ResultHandler
handleResult
 

Constructor Detail

AbstractColorFeedback

public AbstractColorFeedback(JComponent componentToBeColored)
Constructor specifying the component to attached to.

Parameters:
componentToBeColored - Component to be colored to show the validation results.
Method Detail

attach

public void attach(JComponent componentToBeColored)
Attaches the feedback to the specified component.

Parameters:
componentToBeColored - Component to be colored to show the validation results.

detach

public void detach()
Detaches the feedback from the previously attached component.


getForeground

protected Color getForeground()

setForeground

protected void setForeground(Color foreground)

getBackground

protected Color getBackground()

setBackground

protected void setBackground(Color background)

showColors

protected void showColors()

hideColors

protected void hideColors()


Copyright © 2013. All Rights Reserved.