RHI - Type of result handler input.public abstract class AbstractIconFeedback<RHI> extends Object implements com.google.code.validationframework.api.resulthandler.ResultHandler<RHI>, com.google.code.validationframework.api.common.Disposable
IconComponentDecoration to show feedback to the user on
component.
Concrete classes only need to implement the ResultHandler.handleResult(Object) method by calling the showIcon()
and hideIcon() methods according to the result.| Constructor and Description |
|---|
AbstractIconFeedback(JComponent decoratedComponent) |
| Modifier and Type | Method and Description |
|---|---|
void |
attach(JComponent decoratedComponent) |
void |
attach(JComponent decoratedComponent,
AnchorLink anchorLinkWithOwner) |
void |
detach() |
void |
dispose() |
AnchorLink |
getAnchorLink() |
JComponent |
getClippingAncestor() |
JComponent |
getDecoratedComponent() |
protected Icon |
getIcon() |
protected String |
getToolTipText() |
protected void |
hideIcon() |
void |
setAnchorLink(AnchorLink anchorLink) |
void |
setClippingAncestor(JComponent decorationClippingAncestor) |
protected void |
setIcon(Icon icon) |
protected void |
setToolTipText(String text) |
protected void |
showIcon() |
public AbstractIconFeedback(JComponent decoratedComponent)
public void attach(JComponent decoratedComponent)
public void attach(JComponent decoratedComponent, AnchorLink anchorLinkWithOwner)
public void detach()
public JComponent getDecoratedComponent()
public JComponent getClippingAncestor()
public void setClippingAncestor(JComponent decorationClippingAncestor)
public AnchorLink getAnchorLink()
public void setAnchorLink(AnchorLink anchorLink)
protected Icon getIcon()
IconComponentDecoration.getIcon()protected void setIcon(Icon icon)
protected String getToolTipText()
protected void setToolTipText(String text)
protected void showIcon()
protected void hideIcon()
public void dispose()
dispose in interface com.google.code.validationframework.api.common.DisposableDisposable.dispose()Copyright © 2015. All Rights Reserved.