Tabnine Logo
Field.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
com.lzh.courier.annoapi.Field
constructor

Best Java code snippets using com.lzh.courier.annoapi.Field.<init> (Showing top 6 results out of 315)

origin: yjfnypeu/Courier

@Params(fields = {
    @Field(name = "admin", type = User.class),
    @Field(name = "listUser", type = User.class, fieldType = FieldType.list),
    @Field(name = "arrayUser", type = User.class, fieldType = FieldType.array),
    @Field(name = "setUser", type = User.class, fieldType = FieldType.set)
})
public class MultiTypeActivity extends Activity {

  @Bind(R.id.userInfos)
  TextView userInfos;

  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_multi_type);
    ButterKnife.bind(this);
    MultiTypeActivityArgsData arguments = MultiTypeActivityArgsData.getArguments(getIntent());
    StringBuffer buffer = new StringBuffer();
    buffer.append("admin:" + arguments.getAdmin())
        .append("\n")
        .append("listUser:" + arguments.getListUser())
        .append("\n")
        .append("arrsyUser:" + Arrays.toString(arguments.getArrayUser()));
    userInfos.setText(buffer.toString());
  }
}

origin: yjfnypeu/Courier

@Params(fields = {
    @Field(name = "password",type = String.class)
})
public class SubActivity extends ParentActivity {

  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    SubActivityArgsData data = SubActivityArgsData.getArguments(getIntent());
    password.setText(data.getPassword());
  }
}

origin: yjfnypeu/Courier

@Params(fields = {
    @Field(name = "username",type = String.class,doc = "用户名",defValue = "admin"),
    @Field(name = "password",type = String.class,doc = "密码"),
})
public class ParamsActivity extends Activity {

  @Bind(R.id.username)
  TextView username;
  @Bind(R.id.password)
  TextView password;

  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_params);
    ButterKnife.bind(this);
    // 获取传参
    ParamsActivityArgsData data = ParamsActivityArgsData.getArguments(getIntent());
    username.setText(data.getUsername());
    password.setText(data.getPassword());

  }
}

origin: yjfnypeu/Courier

@Params(fields = {
    @Field(name = "username", type = String.class)
})
public class ParentActivity extends Activity {

  @Bind(R.id.username)
  Button username;
  @Bind(R.id.password)
  Button password;

  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_parent);
    ButterKnife.bind(this);

    ParentActivityArgsData data = ParentActivityArgsData.getArguments(getIntent());
    username.setText(data.getUsername());

  }
}

origin: yjfnypeu/Courier

/**
 * @author Administrator
 */
@Params(fields = {
    @Field(name = "password", type = String.class, doc = "用户密码")
})
public class SubFragment extends TestFragment {
  public static final String TAG = SubFragment.class.getCanonicalName();
  SubFragmentArgsData requestData;

  @Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    requestData = SubFragmentArgsData.getArguments(this);
  }

  @Override
  public void onViewCreated(View view, Bundle savedInstanceState) {
    super.onViewCreated(view, savedInstanceState);
    password.setText(requestData.getPassword());
  }
}

origin: yjfnypeu/Courier

inherited = false,
fields = {
@Field(name = "username", type = CharSequence.class, defValue = "\"username\"",doc = "用户名")
com.lzh.courier.annoapiField<init>

Popular methods of Field

  • defValue
  • doc
  • fieldType
  • name
  • type

Popular in Java

  • Reading from database using SQL prepared statement
  • onRequestPermissionsResult (Fragment)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • scheduleAtFixedRate (ScheduledExecutorService)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • Socket (java.net)
    Provides a client-side TCP socket.
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now