< prev index next >

src/java.desktop/share/classes/java/beans/DesignMode.java

Print this page




  46  * @see java.beans.PropertyChangeEvent
  47  */
  48 
  49 public interface DesignMode {
  50 
  51     /**
  52      * The standard value of the propertyName as fired from a BeanContext or
  53      * other source of PropertyChangeEvents.
  54      */
  55 
  56     static String PROPERTYNAME = "designTime";
  57 
  58     /**
  59      * Sets the "value" of the "designTime" property.
  60      * <p>
  61      * If the implementing object is an instance of java.beans.beancontext.BeanContext,
  62      * or a subinterface thereof, then that BeanContext should fire a
  63      * PropertyChangeEvent, to its registered BeanContextMembershipListeners, with
  64      * parameters:
  65      * <ul>
  66      *    <li><code>propertyName</code> - <code>java.beans.DesignMode.PROPERTYNAME</code>
  67      *    <li><code>oldValue</code> - previous value of "designTime"
  68      *    <li><code>newValue</code> - current value of "designTime"
  69      * </ul>
  70      * Note it is illegal for a BeanContextChild to invoke this method
  71      * associated with a BeanContext that it is nested within.
  72      *
  73      * @param designTime  the current "value" of the "designTime" property
  74      * @see java.beans.beancontext.BeanContext
  75      * @see java.beans.beancontext.BeanContextMembershipListener
  76      * @see java.beans.PropertyChangeEvent
  77      */
  78 
  79     void setDesignTime(boolean designTime);
  80 
  81     /**
  82      * A value of true denotes that JavaBeans should behave in design time
  83      * mode, a value of false denotes runtime behavior.
  84      *
  85      * @return the current "value" of the "designTime" property.
  86      */
  87 
  88     boolean isDesignTime();


  46  * @see java.beans.PropertyChangeEvent
  47  */
  48 
  49 public interface DesignMode {
  50 
  51     /**
  52      * The standard value of the propertyName as fired from a BeanContext or
  53      * other source of PropertyChangeEvents.
  54      */
  55 
  56     static String PROPERTYNAME = "designTime";
  57 
  58     /**
  59      * Sets the "value" of the "designTime" property.
  60      * <p>
  61      * If the implementing object is an instance of java.beans.beancontext.BeanContext,
  62      * or a subinterface thereof, then that BeanContext should fire a
  63      * PropertyChangeEvent, to its registered BeanContextMembershipListeners, with
  64      * parameters:
  65      * <ul>
  66      *    <li>{@code propertyName} - {@code java.beans.DesignMode.PROPERTYNAME}
  67      *    <li>{@code oldValue} - previous value of "designTime"
  68      *    <li>{@code newValue} - current value of "designTime"
  69      * </ul>
  70      * Note it is illegal for a BeanContextChild to invoke this method
  71      * associated with a BeanContext that it is nested within.
  72      *
  73      * @param designTime  the current "value" of the "designTime" property
  74      * @see java.beans.beancontext.BeanContext
  75      * @see java.beans.beancontext.BeanContextMembershipListener
  76      * @see java.beans.PropertyChangeEvent
  77      */
  78 
  79     void setDesignTime(boolean designTime);
  80 
  81     /**
  82      * A value of true denotes that JavaBeans should behave in design time
  83      * mode, a value of false denotes runtime behavior.
  84      *
  85      * @return the current "value" of the "designTime" property.
  86      */
  87 
  88     boolean isDesignTime();
< prev index next >