OLD | NEW |
| (Empty) |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 package org.chromium.chrome.browser.autofill; | |
6 | |
7 /** | |
8 * Autofill dialog field container to store information needed for each Autofill
dialog entry. | |
9 */ | |
10 public class AutofillDialogField { | |
11 final int mNativePointer; | |
12 final int mFieldType; | |
13 final String mPlaceholder; | |
14 private String mValue; | |
15 | |
16 /** | |
17 * @param nativePointer The pointer to the corresponding native object. | |
18 * @param fieldType The input field type that got determined by the server. | |
19 * @param placeholder Placeholder text for this input field. | |
20 * @param value Autofill value for this input field. | |
21 */ | |
22 public AutofillDialogField(int nativePointer, int fieldType, String placehol
der, String value) { | |
23 mNativePointer = nativePointer; | |
24 mFieldType = fieldType; | |
25 mPlaceholder = placeholder; | |
26 mValue = value; | |
27 } | |
28 | |
29 /** | |
30 * @return The current value of the field string. | |
31 */ | |
32 public String getValue() { | |
33 return mValue; | |
34 } | |
35 | |
36 /** | |
37 * Set the value to be shown for this field. | |
38 * @param value The string for the value. | |
39 */ | |
40 public void setValue(String value) { | |
41 mValue = value; | |
42 } | |
43 } | |
OLD | NEW |