RHI - Type of result handler input.public abstract class AbstractCellIconFeedback<RHI> extends AbstractIconFeedback<RHI>
IconComponentDecoration to show feedback to the user on
a table cell.
Concrete classes only need to implement the ResultHandler.handleResult(Object) method by calling the AbstractIconFeedback.showIcon()
and AbstractIconFeedback.hideIcon() methods according to the result.AbstractIconFeedback| Constructor and Description |
|---|
AbstractCellIconFeedback(JTable table,
int modelRowIndex,
int modelColumnIndex)
Constructor specifying the table and the cell to be decorated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
attach(JComponent decoratedComponent,
AnchorLink anchorLinkWithOwner) |
void |
detach() |
AnchorLink |
getAnchorLink()
Gets the anchor link between the cell and its decoration.
|
int |
getCellColumnIndex()
Gets the column model index of the decorated cell.
|
int |
getCellRowIndex()
Gets the row model index of the decorated cell.
|
void |
setAnchorLink(AnchorLink anchorLinkWithTableCell)
Sets the anchor link between the cell and its decoration.
|
void |
setCellColumnIndex(int cellModelColumnIndex)
Sets the column model index of the cell to be decorated.
|
void |
setCellRowIndex(int cellModelRowIndex)
Sets the row model index of the cell to be decorated.
|
attach, dispose, getClippingAncestor, getDecoratedComponent, getIcon, getToolTipText, hideIcon, setClippingAncestor, setIcon, setToolTipText, showIconpublic AbstractCellIconFeedback(JTable table, int modelRowIndex, int modelColumnIndex)
table - Table containing the cell to be decorated.modelRowIndex - Model row index of the cell to be decorated.modelColumnIndex - Model column index of the cell to be decorated.public void attach(JComponent decoratedComponent, AnchorLink anchorLinkWithOwner)
attach in class AbstractIconFeedback<RHI>AbstractIconFeedback.detach()public void detach()
detach in class AbstractIconFeedback<RHI>AbstractIconFeedback.detach()public int getCellRowIndex()
public void setCellRowIndex(int cellModelRowIndex)
cellModelRowIndex - Row model index of the cell to be decorated.public int getCellColumnIndex()
public void setCellColumnIndex(int cellModelColumnIndex)
cellModelColumnIndex - Column model index of the cell to be decorated.public AnchorLink getAnchorLink()
getAnchorLink in class AbstractIconFeedback<RHI>AbstractComponentDecoration.getAnchorLink()public void setAnchorLink(AnchorLink anchorLinkWithTableCell)
setAnchorLink in class AbstractIconFeedback<RHI>anchorLinkWithTableCell - Anchor link between the cell and its decoration.AbstractComponentDecoration.setAnchorLink(AnchorLink)Copyright © 2015. All Rights Reserved.