| com.vividsolutions.jump.workbench.plugin.EnableCheck
All known Subclasses: com.vividsolutions.jump.workbench.plugin.MultiEnableCheck,
EnableCheck | public interface EnableCheck (Code) | | A test for whether to enable or disable a menu, toolbar button, or other
component. Provides a handy message about why a component is disabled.
See Also: EnableCheckFactory See Also: |
check | public String check(JComponent component)(Code) | | Returns a non-null value if the check failed. Sometimes the return value
is used (for example, it is displayed as a tooltip for menu-items);
sometimes it is not (for example, toolbar buttons don't do anything with
the return value). An advanced use of an EnableCheck is simply to change
some property of a menu item (such as the text), as it is called when
menu items are displayed.
an error message if the check failed, or null if the checkpassed |
|
|