LabelValueRow.Builder
Stay organized with collections
Save and categorize content based on your preferences.
Inherited Method Summary
From class java.lang.Object
Object
|
clone()
|
boolean |
|
void |
finalize()
|
final Class<?>
|
getClass()
|
int |
hashCode()
|
final void |
notify()
|
final void |
notifyAll()
|
String
|
toString()
|
final void |
wait(long arg0, int arg1)
|
final void |
wait(long arg0)
|
final void |
wait()
|
Public Methods
Adds the specified columns to this builder instance.
Parameters
columns |
The columns to add. |
Returns
- A reference to the invoking instance.
This method is deprecated.
This value is unused by the platform and will be removed in the future.
Sets background color for the row.
Color should have the format #hhhhhh where h is a hex digit.
This method is deprecated.
This value is unused by the platform and will be removed in the future.
Sets the color for the font in the row.
Color should have the format #hhhhhh where h is a hex digit.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[null,null,["Last updated 2024-10-31 UTC."],[[["\u003cp\u003e\u003ccode\u003eLabelValueRow.Builder\u003c/code\u003e is used to construct instances of \u003ccode\u003eLabelValueRow\u003c/code\u003e, which represent rows of data with labels and values.\u003c/p\u003e\n"],["\u003cp\u003eYou can add columns (represented by \u003ccode\u003eLabelValue\u003c/code\u003e objects) individually using \u003ccode\u003eaddColumn\u003c/code\u003e or in bulk using \u003ccode\u003eaddColumns\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eOnce configured, call \u003ccode\u003ebuild\u003c/code\u003e to create the immutable \u003ccode\u003eLabelValueRow\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003eThe methods \u003ccode\u003esetHexBackgroundColor\u003c/code\u003e and \u003ccode\u003esetHexFontColor\u003c/code\u003e are deprecated and should no longer be used.\u003c/p\u003e\n"]]],["The `LabelValueRow.Builder` class allows creating a `LabelValueRow` object. Key actions include adding individual `LabelValue` columns using `addColumn` or multiple columns at once with `addColumns`. The `build` method finalizes the creation of the `LabelValueRow`. Two deprecated methods, `setHexBackgroundColor` and `setHexFontColor`, were previously used to set colors but are no longer in use. Inherited methods are available as well.\n"],null,["# LabelValueRow.Builder\n\npublic final class **LabelValueRow.Builder** extends [Object](//developer.android.com/reference/java/lang/Object.html) \nBuilder to create an [LabelValueRow](/android/reference/com/google/android/gms/wallet/wobs/LabelValueRow). \n\n### Public Method Summary\n\n|------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [LabelValueRow.Builder](/android/reference/com/google/android/gms/wallet/wobs/LabelValueRow.Builder) | [addColumn](/android/reference/com/google/android/gms/wallet/wobs/LabelValueRow.Builder#addColumn(com.google.android.gms.wallet.wobs.LabelValue))([LabelValue](/android/reference/com/google/android/gms/wallet/wobs/LabelValue) column) |\n| [LabelValueRow.Builder](/android/reference/com/google/android/gms/wallet/wobs/LabelValueRow.Builder) | [addColumns](/android/reference/com/google/android/gms/wallet/wobs/LabelValueRow.Builder#addColumns(java.util.Collection\u003ccom.google.android.gms.wallet.wobs.LabelValue\u003e))([Collection](//developer.android.com/reference/java/util/Collection.html)\\\u003c[LabelValue](/android/reference/com/google/android/gms/wallet/wobs/LabelValue)\\\u003e columns) Adds the specified columns to this builder instance. |\n| [LabelValueRow](/android/reference/com/google/android/gms/wallet/wobs/LabelValueRow) | [build](/android/reference/com/google/android/gms/wallet/wobs/LabelValueRow.Builder#build())() |\n| [LabelValueRow.Builder](/android/reference/com/google/android/gms/wallet/wobs/LabelValueRow.Builder) | [setHexBackgroundColor](/android/reference/com/google/android/gms/wallet/wobs/LabelValueRow.Builder#setHexBackgroundColor(java.lang.String))([String](//developer.android.com/reference/java/lang/String.html) color) *This method is deprecated. This value is unused by the platform and will be removed in the future.* |\n| [LabelValueRow.Builder](/android/reference/com/google/android/gms/wallet/wobs/LabelValueRow.Builder) | [setHexFontColor](/android/reference/com/google/android/gms/wallet/wobs/LabelValueRow.Builder#setHexFontColor(java.lang.String))([String](//developer.android.com/reference/java/lang/String.html) color) *This method is deprecated. This value is unused by the platform and will be removed in the future.* |\n\n### Inherited Method Summary\n\nFrom class java.lang.Object \n\n|----------------------------------------------------------------------------|--------------------------------------------------------------------------------|\n| [Object](//developer.android.com/reference/java/lang/Object.html) | clone() |\n| boolean | equals([Object](//developer.android.com/reference/java/lang/Object.html) arg0) |\n| void | finalize() |\n| final [Class](//developer.android.com/reference/java/lang/Class.html)\\\u003c?\\\u003e | getClass() |\n| int | hashCode() |\n| final void | notify() |\n| final void | notifyAll() |\n| [String](//developer.android.com/reference/java/lang/String.html) | toString() |\n| final void | wait(long arg0, int arg1) |\n| final void | wait(long arg0) |\n| final void | wait() |\n\nPublic Methods\n--------------\n\n#### public [LabelValueRow.Builder](/android/reference/com/google/android/gms/wallet/wobs/LabelValueRow.Builder)\n**addColumn** ([LabelValue](/android/reference/com/google/android/gms/wallet/wobs/LabelValue) column)\n\n#### public [LabelValueRow.Builder](/android/reference/com/google/android/gms/wallet/wobs/LabelValueRow.Builder)\n**addColumns** ([Collection](//developer.android.com/reference/java/util/Collection.html)\\\u003c[LabelValue](/android/reference/com/google/android/gms/wallet/wobs/LabelValue)\\\u003e columns)\n\nAdds the specified columns to this builder instance. \n\n##### Parameters\n\n| columns | The columns to add. |\n|---------|---------------------|\n\n##### Returns\n\n- A reference to the invoking instance. \n\n#### public [LabelValueRow](/android/reference/com/google/android/gms/wallet/wobs/LabelValueRow)\n**build** ()\n\n#### public [LabelValueRow.Builder](/android/reference/com/google/android/gms/wallet/wobs/LabelValueRow.Builder)\n**setHexBackgroundColor** ([String](//developer.android.com/reference/java/lang/String.html) color)\n\n**This method is deprecated.** \n\nThis value is unused by the platform and will be removed in the future. \nSets background color for the row.\n\nColor should have the format #hhhhhh where h is a hex digit. \n\n#### public [LabelValueRow.Builder](/android/reference/com/google/android/gms/wallet/wobs/LabelValueRow.Builder)\n**setHexFontColor** ([String](//developer.android.com/reference/java/lang/String.html) color)\n\n**This method is deprecated.** \n\nThis value is unused by the platform and will be removed in the future. \nSets the color for the font in the row.\n\nColor should have the format #hhhhhh where h is a hex digit."]]