AI2 Component  (Version nb184)
DesignerComponent.java
Go to the documentation of this file.
1 // -*- mode: java; c-basic-offset: 2; -*-
2 // Copyright 2009-2011 Google, All Rights reserved
3 // Copyright 2011-2018 MIT, All rights reserved
4 // Released under the Apache License, Version 2.0
5 // http://www.apache.org/licenses/LICENSE-2.0
6 
7 package com.google.appinventor.components.annotations;
8 
11 
12 import java.lang.annotation.ElementType;
13 import java.lang.annotation.Retention;
14 import java.lang.annotation.RetentionPolicy;
15 import java.lang.annotation.Target;
16 
20 @Retention(RetentionPolicy.RUNTIME)
21 @Target(ElementType.TYPE)
22 public @interface DesignerComponent {
27 
33  String description() default "";
34 
41  // TODO(user): Add more robust character escaping.
42  String designerHelpDescription() default "";
43 
48  boolean showOnPalette() default true;
49 
55  boolean nonVisible() default false;
56 
66  String iconName() default "";
67 
71  // Constants for all component version numbers must be defined in
72  // com.google.appinventor.components.common.YaVersion, and specified when the DesignerComponent
73  // annotation is used.
74  int version(); // There is no default value.
75 
79  String helpUrl() default "";
80 
85  int androidMinSdk() default ComponentConstants.APP_INVENTOR_MIN_SDK;
86 
94  String versionName() default "";
95 
104  String dateBuilt() default "";
105 }
com.google.appinventor.components.common.ComponentCategory.UNINITIALIZED
UNINITIALIZED
Definition: ComponentCategory.java:64
com.google.appinventor.components
com.google.appinventor.components.annotations.DesignerComponent
Definition: DesignerComponent.java:22
com.google.appinventor.components.common.ComponentConstants.APP_INVENTOR_MIN_SDK
static final int APP_INVENTOR_MIN_SDK
Definition: ComponentConstants.java:21
com.google.appinventor.components.common
Definition: ComponentCategory.java:7
com.google.appinventor.components.common.ComponentCategory
Definition: ComponentCategory.java:48
com.google
com
com.google.appinventor.components.common.ComponentConstants
Definition: ComponentConstants.java:13
com.google.appinventor