com.google.code.validationframework.swing.resulthandler
Class AbstractColorFeedback<RHI>
java.lang.Object
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>
| 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 |
AbstractColorFeedback
public AbstractColorFeedback(JComponent componentToBeColored)
- Constructor specifying the component to attached to.
- Parameters:
componentToBeColored - Component to be colored to show the validation results.
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.