public abstract class AbstractColorFeedback<RHI> extends Object implements com.google.code.validationframework.api.resulthandler.ResultHandler<RHI>
| Constructor and Description |
|---|
AbstractColorFeedback(JComponent componentToBeColored)
Constructor specifying the component to attached to.
|
| Modifier and Type | Method and Description |
|---|---|
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() |
public AbstractColorFeedback(JComponent componentToBeColored)
componentToBeColored - Component to be colored to show the validation results.public void attach(JComponent componentToBeColored)
componentToBeColored - Component to be colored to show the validation results.public void detach()
protected Color getForeground()
protected void setForeground(Color foreground)
protected Color getBackground()
protected void setBackground(Color background)
protected void showColors()
protected void hideColors()
Copyright © 2015. All Rights Reserved.