/** Copyright (c) 1996, 1998, Oracle and/or its affiliates. All rights reserved.* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.*********************/package java.beans;/*** Under some circumstances a bean may be run on servers where a GUI* is not available. This interface can be used to query a bean to* determine whether it absolutely needs a gui, and to advise the* bean whether a GUI is available.* <p>* This interface is for expert developers, and is not needed* for normal simple beans. To avoid confusing end-users we* avoid using getXXX setXXX design patterns for these methods.*/public interface Visibility {/*** Determines whether this bean needs a GUI.** @return True if the bean absolutely needs a GUI available in* order to get its work done.*/boolean needsGui();/*** This method instructs the bean that it should not use the Gui.*/void dontUseGui();/*** This method instructs the bean that it is OK to use the Gui.*/void okToUseGui();/*** Determines whether this bean is avoiding using a GUI.** @return true if the bean is currently avoiding use of the Gui.* e.g. due to a call on dontUseGui().*/boolean avoidingGui();}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。