< prev index next >

core/JemmyCore/src/org/jemmy/dock/DefaultParent.java

Print this page




  25 
  26 package org.jemmy.dock;
  27 
  28 import java.lang.annotation.Documented;
  29 import java.lang.annotation.ElementType;
  30 import java.lang.annotation.Target;
  31 import org.jemmy.interfaces.Parent;
  32 
  33 /**
  34  * Putting this on a public static method allows to generate constructors which
  35  * do not take parent as a parameter, taking whatever is coming from this method
  36  * instead. An annotated method should take one parameter - class of the controls
  37  * to by looked for and should return parent for that type.
  38  * @see Parent
  39  * @author shura
  40  */
  41 @Target(ElementType.METHOD)
  42 @Documented
  43 public @interface DefaultParent {
  44     /**
  45      * Description of a parent represented by the annotated method.
  46      */
  47     String value();
  48 }


  25 
  26 package org.jemmy.dock;
  27 
  28 import java.lang.annotation.Documented;
  29 import java.lang.annotation.ElementType;
  30 import java.lang.annotation.Target;
  31 import org.jemmy.interfaces.Parent;
  32 
  33 /**
  34  * Putting this on a public static method allows to generate constructors which
  35  * do not take parent as a parameter, taking whatever is coming from this method
  36  * instead. An annotated method should take one parameter - class of the controls
  37  * to by looked for and should return parent for that type.
  38  * @see Parent
  39  * @author shura
  40  */
  41 @Target(ElementType.METHOD)
  42 @Documented
  43 public @interface DefaultParent {
  44     /**
  45      * @return description of a parent represented by the annotated method.
  46      */
  47     String value();
  48 }
< prev index next >