public static class

HtcAlertController.AlertParams

extends Object
java.lang.Object
   ↳ com.htc.app.HtcAlertController.AlertParams

Class Overview

The parameters for the alert.

Summary

Nested Classes
interface HtcAlertController.AlertParams.OnPrepareListViewListener Interface definition for a callback to be invoked before the ListView will be bound to an adapter. 
Fields
public ListAdapter mAdapter Adapter of the listview
public boolean mCancelable Whether the dialog is cancelable
public int mCheckedItem The checked item
public boolean[] mCheckedItems Status of check items
public final Context mContext Context of the dialog
public Cursor mCursor Cursor to data
public View mCustomTitleView Title view
public boolean mForceInverseBackground Whether to inverse background or not
public Drawable mIcon Icon drawable for this dialog
public int mIconId Icon resource id for this dialog
public String mIsCheckedColumn Column checked
public boolean mIsMultiChoice Is multi-choice
public boolean mIsSingleChoice Is single-choice
public CharSequence[] mItems Content of the list items
public String mLabelColumn Column Index
public CharSequence mMessage Message text for this dialog
public DialogInterface.OnClickListener mNegativeButtonListener Click listener for the negative button
public CharSequence mNegativeButtonText Text on the negative button
public DialogInterface.OnClickListener mNeutralButtonListener Click listener for the neutral button
public CharSequence mNeutralButtonText Text on the neutral button
public DialogInterface.OnCancelListener mOnCancelListener Listener when the dialog is canceled
public DialogInterface.OnMultiChoiceClickListener mOnCheckboxClickListener Listener of checkbox
public DialogInterface.OnClickListener mOnClickListener Listener when clicked
public AdapterView.OnItemSelectedListener mOnItemSelectedListener Listener to be invoked when an item in the list is selected.
public DialogInterface.OnKeyListener mOnKeyListener The callback that will be called if a key is dispatched to the dialog.
public HtcAlertController.AlertParams.OnPrepareListViewListener mOnPrepareListViewListener Callback to be invoked before the ListView will be bound to an adapter
public DialogInterface.OnClickListener mPositiveButtonListener Click listener for the positive button
public CharSequence mPositiveButtonText Text on the positive button
public CharSequence mTitle Title text for this dialog
public View mView View of the dialog
public int mViewSpacingBottom Padding bottom of the view
public int mViewSpacingLeft Padding left of the view
public int mViewSpacingRight Padding right of the view
public boolean mViewSpacingSpecified If the padding of the view was specified
public int mViewSpacingTop Padding top of the view
Public Constructors
HtcAlertController.AlertParams(Context context)
Public Methods
void apply(HtcAlertController dialog)
Apply alert parameters to a dialog
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public ListAdapter mAdapter

Since: API Level 2.0

Adapter of the listview

public boolean mCancelable

Since: API Level 2.0

Is the dialog cancelable

public int mCheckedItem

Since: API Level 2.0

The checked item

public boolean[] mCheckedItems

Since: API Level 2.0

Status of check items

public final Context mContext

Since: API Level 2.0

Context of the dialog

public Cursor mCursor

Since: API Level 2.0

Cursor to data

public View mCustomTitleView

Since: API Level 2.0

Title view

public boolean mForceInverseBackground

Since: API Level 2.0

Is inverse background

public Drawable mIcon

Since: API Level 2.0

Icon drawable for this dialog

public int mIconId

Since: API Level 2.0

Icon resource id for this dialog

public String mIsCheckedColumn

Since: API Level 2.0

Column checked

public boolean mIsMultiChoice

Since: API Level 2.0

Is multi-choice

public boolean mIsSingleChoice

Since: API Level 2.0

Is single-choice

public CharSequence[] mItems

Since: API Level 2.0

Content of the list items

public String mLabelColumn

Since: API Level 2.0

Column Index

public CharSequence mMessage

Since: API Level 2.0

Message text for this dialog

public DialogInterface.OnClickListener mNegativeButtonListener

Since: API Level 2.0

Click listener for the negative button

public CharSequence mNegativeButtonText

Since: API Level 2.0

Text on the negative button

public DialogInterface.OnClickListener mNeutralButtonListener

Since: API Level 2.0

Click listener for the neutral button

public CharSequence mNeutralButtonText

Since: API Level 2.0

Text on the neutral button

public DialogInterface.OnCancelListener mOnCancelListener

Since: API Level 2.0

Listener when the dialog is canceled

public DialogInterface.OnMultiChoiceClickListener mOnCheckboxClickListener

Since: API Level 2.0

Listener of checkbox

public DialogInterface.OnClickListener mOnClickListener

Since: API Level 2.0

Listener when clicked

public AdapterView.OnItemSelectedListener mOnItemSelectedListener

Since: API Level 2.0

Listener to be invoked when an item in the list is selected.

public DialogInterface.OnKeyListener mOnKeyListener

Since: API Level 2.0

The callback that will be called if a key is dispatched to the dialog.

public HtcAlertController.AlertParams.OnPrepareListViewListener mOnPrepareListViewListener

Since: API Level 2.0

Callback to be invoked before the ListView will be bound to an adapter

public DialogInterface.OnClickListener mPositiveButtonListener

Since: API Level 2.0

Click listener for the positive button

public CharSequence mPositiveButtonText

Since: API Level 2.0

Text on the positive button

public CharSequence mTitle

Since: API Level 2.0

Title text for this dialog

public View mView

Since: API Level 2.0

View of the dialog

public int mViewSpacingBottom

Since: API Level 2.0

Padding bottom of the view

public int mViewSpacingLeft

Since: API Level 2.0

Padding left of the view

public int mViewSpacingRight

Since: API Level 2.0

Padding right of the view

public boolean mViewSpacingSpecified

Since: API Level 2.0

If the padding of the view was specified

public int mViewSpacingTop

Since: API Level 2.0

Padding top of the view

Public Constructors

public HtcAlertController.AlertParams (Context context)

Since: API Level 2.0

See Also
  • AlertController.AlertParams#AlertParams(Context)

Public Methods

public void apply (HtcAlertController dialog)

Since: API Level 2.0

Apply alert parameters to a dialog

Parameters
dialog The target dialog