android.widget
Class ListPopupWindow

java.lang.Object
  extended by android.widget.ListPopupWindow

public class ListPopupWindow
extends Object


Field Summary
static int INPUT_METHOD_FROM_FOCUSABLE
           
static int INPUT_METHOD_NEEDED
           
static int INPUT_METHOD_NOT_NEEDED
           
static int MATCH_PARENT
           
static int POSITION_PROMPT_ABOVE
           
static int POSITION_PROMPT_BELOW
           
static int WRAP_CONTENT
           
 
Constructor Summary
ListPopupWindow(Context context)
           
ListPopupWindow(Context context, AttributeSet attrs)
           
ListPopupWindow(Context context, AttributeSet attrs, int defStyleAttr)
           
ListPopupWindow(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes)
           
 
Method Summary
 void clearListSelection()
           
 void dismiss()
           
 View getAnchorView()
           
 int getAnimationStyle()
           
 Drawable getBackground()
           
 int getHeight()
           
 int getHorizontalOffset()
           
 int getInputMethodMode()
           
 ListView getListView()
           
 int getPromptPosition()
           
 Object getSelectedItem()
           
 long getSelectedItemId()
           
 int getSelectedItemPosition()
           
 View getSelectedView()
           
 int getSoftInputMode()
           
 int getVerticalOffset()
           
 int getWidth()
           
 boolean isInputMethodNotNeeded()
           
 boolean isModal()
           
 boolean isShowing()
           
 boolean onKeyDown(int keyCode, KeyEvent event)
           
 boolean onKeyPreIme(int keyCode, KeyEvent event)
           
 boolean onKeyUp(int keyCode, KeyEvent event)
           
 boolean performItemClick(int position)
           
 void postShow()
           
 void setAdapter(ListAdapter adapter)
           
 void setAnchorView(View anchor)
           
 void setAnimationStyle(int animationStyle)
           
 void setBackgroundDrawable(Drawable d)
           
 void setContentWidth(int width)
           
 void setHeight(int height)
           
 void setHorizontalOffset(int offset)
           
 void setInputMethodMode(int mode)
           
 void setListSelector(Drawable selector)
           
 void setModal(boolean modal)
           
 void setOnDismissListener(PopupWindow.OnDismissListener listener)
           
 void setOnItemClickListener(AdapterView.OnItemClickListener clickListener)
           
 void setOnItemSelectedListener(AdapterView.OnItemSelectedListener selectedListener)
           
 void setPromptPosition(int position)
           
 void setPromptView(View prompt)
           
 void setSelection(int position)
           
 void setSoftInputMode(int mode)
           
 void setVerticalOffset(int offset)
           
 void setWidth(int width)
           
 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

MATCH_PARENT

public static final int MATCH_PARENT
See Also:
Constant Field Values

WRAP_CONTENT

public static final int WRAP_CONTENT
See Also:
Constant Field Values

INPUT_METHOD_FROM_FOCUSABLE

public static final int INPUT_METHOD_FROM_FOCUSABLE
See Also:
Constant Field Values

INPUT_METHOD_NEEDED

public static final int INPUT_METHOD_NEEDED
See Also:
Constant Field Values

INPUT_METHOD_NOT_NEEDED

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

ListPopupWindow

public ListPopupWindow(Context context)

ListPopupWindow

public ListPopupWindow(Context context,
                       AttributeSet attrs)

ListPopupWindow

public ListPopupWindow(Context context,
                       AttributeSet attrs,
                       int defStyleAttr)

ListPopupWindow

public ListPopupWindow(Context context,
                       AttributeSet attrs,
                       int defStyleAttr,
                       int defStyleRes)
Method Detail

setAdapter

public void setAdapter(ListAdapter adapter)

setPromptPosition

public void setPromptPosition(int position)

getPromptPosition

public int getPromptPosition()

setModal

public void setModal(boolean modal)

isModal

public boolean isModal()

setSoftInputMode

public void setSoftInputMode(int mode)

getSoftInputMode

public int getSoftInputMode()

setListSelector

public void setListSelector(Drawable selector)

getBackground

public Drawable getBackground()

setBackgroundDrawable

public void setBackgroundDrawable(Drawable d)

setAnimationStyle

public void setAnimationStyle(int animationStyle)

getAnimationStyle

public int getAnimationStyle()

getAnchorView

public View getAnchorView()

setAnchorView

public void setAnchorView(View anchor)

getHorizontalOffset

public int getHorizontalOffset()

setHorizontalOffset

public void setHorizontalOffset(int offset)

getVerticalOffset

public int getVerticalOffset()

setVerticalOffset

public void setVerticalOffset(int offset)

getWidth

public int getWidth()

setWidth

public void setWidth(int width)

setContentWidth

public void setContentWidth(int width)

getHeight

public int getHeight()

setHeight

public void setHeight(int height)

setOnItemClickListener

public void setOnItemClickListener(AdapterView.OnItemClickListener clickListener)

setOnItemSelectedListener

public void setOnItemSelectedListener(AdapterView.OnItemSelectedListener selectedListener)

setPromptView

public void setPromptView(View prompt)

postShow

public void postShow()

show

public void show()

dismiss

public void dismiss()

setOnDismissListener

public void setOnDismissListener(PopupWindow.OnDismissListener listener)

setInputMethodMode

public void setInputMethodMode(int mode)

getInputMethodMode

public int getInputMethodMode()

setSelection

public void setSelection(int position)

clearListSelection

public void clearListSelection()

isShowing

public boolean isShowing()

isInputMethodNotNeeded

public boolean isInputMethodNotNeeded()

performItemClick

public boolean performItemClick(int position)

getSelectedItem

public Object getSelectedItem()

getSelectedItemPosition

public int getSelectedItemPosition()

getSelectedItemId

public long getSelectedItemId()

getSelectedView

public View getSelectedView()

getListView

public ListView getListView()

onKeyDown

public boolean onKeyDown(int keyCode,
                         KeyEvent event)

onKeyUp

public boolean onKeyUp(int keyCode,
                       KeyEvent event)

onKeyPreIme

public boolean onKeyPreIme(int keyCode,
                           KeyEvent event)


Copyright © 2008-2012. All Rights Reserved.