[followup] Let screen reader voice a composite icon

This commit is contained in:
Anton Tarasov
2018-10-16 13:57:37 +03:00
parent b30f28d84e
commit ee4493530e
2 changed files with 5 additions and 3 deletions

View File

@@ -8,7 +8,7 @@ import javax.swing.*;
/**
* An icon composing and painting a number of icons.
*/
public interface CompositeIcon {
public interface CompositeIcon extends Icon {
/**
* Returns the icon count.
*/

View File

@@ -22,10 +22,12 @@ import javax.swing.*;
/**
* This class is mostly for testing purposes: in case an icon is hidden behind a private or a restricted interface,
* marking it as RetrievableIcon will help get the actual icon and perform checks.
* An icon wrapping and painting another icon.
*/
public interface RetrievableIcon extends Icon {
/**
* Returns the wrapped icon.
*/
@Nullable
Icon retrieveIcon();
}