com.actionbarsherlock.internal.widget
Class IcsListPopupWindow

java.lang.Object
  extended by com.actionbarsherlock.internal.widget.IcsListPopupWindow

public class IcsListPopupWindow
extends Object

A proxy between pre- and post-Honeycomb implementations of this class.


Field Summary
static int POSITION_PROMPT_ABOVE
           
static int POSITION_PROMPT_BELOW
           
 
Constructor Summary
IcsListPopupWindow(android.content.Context context)
           
IcsListPopupWindow(android.content.Context context, android.util.AttributeSet attrs, int defStyleAttr)
           
IcsListPopupWindow(android.content.Context context, android.util.AttributeSet attrs, int defStyleAttr, int defStyleRes)
           
 
Method Summary
 void clearListSelection()
           
 void dismiss()
           
 android.widget.ListView getListView()
           
 boolean isShowing()
           
 void setAdapter(android.widget.ListAdapter adapter)
           
 void setAnchorView(android.view.View anchor)
           
 void setBackgroundDrawable(android.graphics.drawable.Drawable d)
           
 void setContentWidth(int width)
           
 void setHorizontalOffset(int offset)
           
 void setInputMethodMode(int mode)
           
 void setModal(boolean modal)
           
 void setOnDismissListener(android.widget.PopupWindow.OnDismissListener listener)
           
 void setOnItemClickListener(android.widget.AdapterView.OnItemClickListener clickListener)
           
 void setPromptPosition(int position)
           
 void setSelection(int position)
          Set the selected position of the list.
 void setVerticalOffset(int offset)
           
 void show()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

POSITION_PROMPT_ABOVE

public static final int POSITION_PROMPT_ABOVE
See Also:
Constant Field Values

POSITION_PROMPT_BELOW

public static final int POSITION_PROMPT_BELOW
See Also:
Constant Field Values
Constructor Detail

IcsListPopupWindow

public IcsListPopupWindow(android.content.Context context)

IcsListPopupWindow

public IcsListPopupWindow(android.content.Context context,
                          android.util.AttributeSet attrs,
                          int defStyleAttr)

IcsListPopupWindow

public IcsListPopupWindow(android.content.Context context,
                          android.util.AttributeSet attrs,
                          int defStyleAttr,
                          int defStyleRes)
Method Detail

setAdapter

public void setAdapter(android.widget.ListAdapter adapter)

setPromptPosition

public void setPromptPosition(int position)

setModal

public void setModal(boolean modal)

setBackgroundDrawable

public void setBackgroundDrawable(android.graphics.drawable.Drawable d)

setAnchorView

public void setAnchorView(android.view.View anchor)

setHorizontalOffset

public void setHorizontalOffset(int offset)

setVerticalOffset

public void setVerticalOffset(int offset)

setContentWidth

public void setContentWidth(int width)

setOnItemClickListener

public void setOnItemClickListener(android.widget.AdapterView.OnItemClickListener clickListener)

show

public void show()

dismiss

public void dismiss()

setOnDismissListener

public void setOnDismissListener(android.widget.PopupWindow.OnDismissListener listener)

setInputMethodMode

public void setInputMethodMode(int mode)

setSelection

public void setSelection(int position)
Set the selected position of the list. Only valid when isShowing() == true.

Parameters:
position - List position to set as selected.

clearListSelection

public void clearListSelection()

isShowing

public boolean isShowing()

getListView

public android.widget.ListView getListView()


Copyright © 2012-2013. All Rights Reserved.