< prev index next >

core/JemmyCore/src/org/jemmy/control/Property.java

Print this page




  32 import java.lang.annotation.Target;
  33 
  34 /**
  35  * This annotates a method which provides a property value for the provided
  36  * name of a wrapped control. To be used on public Wrap inheritors methods
  37  * with no parameters. Property value is then accessible through
  38  * <code>Wrap.getProperty(String)</code>
  39  * @see Wrap#getProperty(java.lang.String)
  40  * @author shura
  41  */
  42 @Retention(RetentionPolicy.RUNTIME)
  43 @Target(ElementType.METHOD)
  44 @Documented
  45 public @interface Property {
  46     /**
  47      *
  48      * @return a property name.
  49      */
  50     String value();
  51     /**
  52      * Are the properties worth a waiter.
  53      */
  54     boolean waitable() default false;
  55 }


  32 import java.lang.annotation.Target;
  33 
  34 /**
  35  * This annotates a method which provides a property value for the provided
  36  * name of a wrapped control. To be used on public Wrap inheritors methods
  37  * with no parameters. Property value is then accessible through
  38  * <code>Wrap.getProperty(String)</code>
  39  * @see Wrap#getProperty(java.lang.String)
  40  * @author shura
  41  */
  42 @Retention(RetentionPolicy.RUNTIME)
  43 @Target(ElementType.METHOD)
  44 @Documented
  45 public @interface Property {
  46     /**
  47      *
  48      * @return a property name.
  49      */
  50     String value();
  51     /**
  52      * @return are the properties worth a waiter.
  53      */
  54     boolean waitable() default false;
  55 }
< prev index next >