public interface ComponentRestriction
A component restriction represents a type of security restriction that can be applied to a component.
Different components may expose different kinds of restrictions that are specific to them. See CommonBeanInfo for more.
It is crucial that each component restriction implements .equals and .hashcode to be equavalent to other restrictions of their kind. For example, it is suggested to implement these functions like so:
@Override public boolean equals(Object obj) { return obj instanceof EnabledRestriction; } @Override public int hashCode() { return "EnabledRestriction".hashCode(); }
Modifier and Type | Method and Description |
---|---|
void |
apply(javax.swing.JComponent component) |
java.lang.String |
getDisplayKey() |